Forum Discussion
shanjaf
10 years agoNew Member
Analyzing data in Matrix
Hi, I am trying to analyze data in matrix, its a budget vs actual report. i have data in rows like below. Type Code Amount Actual ABC ...
ankitpatira
10 years agoCommunity Champion
shanjaf In powerbi desktop click on Query Editor. Select your table -> select column -> Under Transform tab -> pivot column. Use that to convert rows in your Type column to columns and use Amount as values field. To calculate percentage create new measure of total amount using DAX. Then divide actual amount by total amount and change column type of that to percentage. If you're unsure with DAX let me know and I will post the code.
Sean
10 years agoCommunity Champion
shanjaf I think this is what you are trying to do... Just create these 4 Measures and organize as in the picture
Let me know if it works.
- shanjaf10 years agoNew Member
I didn't try it, i think this will work, one more question. will that calculated field work in direct query?