Forum Discussion

Winniethewinner's avatar
3 years ago

Month over Month calculation

Hello PBI experts, 

I have a sample FactTable:

And a Month_Order table:

I'm trying to create a measure to compare Month over Month sales:

 
Sales last Month = 
CALCULATE(
    SUM(FactTable[Sales]),
    PARALLELPERIOD(
        Month_Order[Year/Month].[Date],
        -1,
        MONTH)
)

But I'm not sure how to correct the above DAX, and I'm getting the same value as Sum of Sales:

(on a side note - we use 10,11,12,01,02...... as month column because these are the values retrieved from our db and used to connect different tables in the real life PBI file.)

Can anyone please advise? Thanks. 

 

 

1 Reply