Forum Discussion
pivot after Summing by categories.
So i have data in which i need to create new column which will be the sum of categories and after that i need to pivot them within Power Bi. I tryed Creating Calculated Column cash Paid Sum = CALCULATE(SUM(Table3[cash paid]),ALLEXCEPT(Table3,Table3[Category])) But after i tried to pivot them it showed me tottaly different numbers. For ex in shwon model from this formula after pivoting i would get in jan for AA category 6*176=1056 becouse it would summerize 176 for each line. How can i get results shown on the picture.
I got it working by creating the following calculated measure
New Measure = DIVIDE(SUM('Table1'[Paid]) , SUM('Table1'[Charged]))Here is a link to the PBIX file so you can have a play
https://1drv.ms/u/s!AtDlC2rep7a-oXqLNxZIwNhHJ9PB
2 Replies
- Phil_Seamark
Microsoft Employee
I got it working by creating the following calculated measure
New Measure = DIVIDE(SUM('Table1'[Paid]) , SUM('Table1'[Charged]))Here is a link to the PBIX file so you can have a play
https://1drv.ms/u/s!AtDlC2rep7a-oXqLNxZIwNhHJ9PB
- giorgilomidze
Resolver I
Thank you! works perfectly.
If anyone interested this will work for Hierarchies as well.