Forum Discussion

homboy27's avatar
homboy27
Helper III
7 years ago
Solved

Difference column in a matrix

ClientHoursRevenue
X12320000
Y10010000
 2310000
   

I created the above table in PowerBI. How do i create the 3rd column that subtracts client x from y?

11 Replies

  • I created the first 2 columns and would like to create the 3rd column that subracts the first 2 columns

  • Hi,

    Assuming Hours and Revenue are measures, try this measure

    =[Revenue]-CALCULATE([Revenue],Data[Client]="Client X")

    Hope this helps.

    • homboy27's avatar
      homboy27
      Helper III

      That didnt work. Also hours and revenues are not measures.

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Super User

        Hi,

        Share the link from where i can download your PBI file.  Also show the expected result.