Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Winniethewinner
Helper IV
Helper IV

Month over Month calculation

Hello PBI experts, 

I have a sample FactTable:

Winniethewinner_0-1666123839063.png

And a Month_Order table:

Winniethewinner_1-1666123912635.png

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:

Winniethewinner_2-1666124126602.png

(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 1
amitchandak
Super User
Super User

@Winniethewinner , Use date table, Marked as date table

 

example

Month behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Month))

 

Why Time Intelligence Fails - Powerbi 6 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors