Forum Discussion

Eagle's avatar
Eagle
New Member
9 years ago
Solved

Difference between two measures

Hi,    I am so happy that I found this forum. I have on question.   In power querry I have one column called Value which has few attributes like quantities, sales, COGS. In this querry we can fin...
  • Anonymous's avatar
    Anonymous
    9 years ago

    The important realization (I think...?) is that measures can references other measures.

     

    Sales := SUM(Transactions[SaleAmt])

    SalesPY := CALCULATE([Sales], SAMEPERIODLASTYEAR(Dates[Date])

    Sales Delta := [Sales] - [SalesPY]

     

    So, the general answer to "how do I take the difference between 2 measures" is... well, just subtract them :)