Forum Discussion
Need to append running difference between two categories in a row in a report table
- 5 years ago
Hi Miska ,
In PowerBI, the newly added data exists in the form of rows, and different dax are created to calculate different columns. I did the following test. I need to transpose the rows and columns in the power query first, and then create a measure in the desktop to calculate the Gross Profit for the sales column and the cost column.
Gross-Profit = MAX('Table (2)'[Sales])-MAX('Table (2)'[Cost])
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
We have like Category and subcategories under the categories so it will be like around 100 subcategories and couple million records for this. I tried it but does not seem to work .
Thanks
Hi Miska ,
What is the specific error display, transpose the rows and columns in the power query should not affect the calculation. Can you provide detailed test data model information (delete sensitive information), I will answer you as soon as possible.
Looking forward to your reply.
Best Regards,
Henry