Forum Discussion

Miska's avatar
Miska
Icon for Helper I rankHelper I
5 years ago
Solved

Need to append running difference between two categories in a row in a report table

Hi!   I have a report table where there is a first column with different categories and followed by Current Month amount, previous month amt, YTD amounts . I need to append a new row in the report ...
  • v-henryk-mstf's avatar
    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.