将 QUERY 与 PIVOT 一起使用,并且需要总和空白金额为零
Use QUERY with PIVOT and need sum blank amount to be zero
共享 sheet 包括为什么我需要填充零只是为了让雷达图看起来更好
https://docs.google.com/spreadsheets/d/19rP-xmEsL11SyQg-2f8VGlyyZ33KbnWJogdqs_Di1Ns/edit?usp=sharing
尝试:
=ARRAYFORMULA(IFERROR(QUERY({A:C},
"select Col1,sum(Col3)
where Col1 is not null
group by Col1
pivot Col2", 1)*1, QUERY({A:C},
"select Col1,sum(Col3)
where Col1 is not null
group by Col1
pivot Col2", 1)))
共享 sheet 包括为什么我需要填充零只是为了让雷达图看起来更好
https://docs.google.com/spreadsheets/d/19rP-xmEsL11SyQg-2f8VGlyyZ33KbnWJogdqs_Di1Ns/edit?usp=sharing
尝试:
=ARRAYFORMULA(IFERROR(QUERY({A:C},
"select Col1,sum(Col3)
where Col1 is not null
group by Col1
pivot Col2", 1)*1, QUERY({A:C},
"select Col1,sum(Col3)
where Col1 is not null
group by Col1
pivot Col2", 1)))