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
Nimai123
Post Patron
Post Patron

MoM error

I have a measure of MOM growth created 

 

 
Last Month GRS = CALCULATE( [GRS Distinct count] , DATEADD( 'Date Table'[FullDateAlternateKey],-1,MONTH))
 
 
I am not able to see the results of the past month, what should I do?
 
Capture.PNG
But when I choose the month slicer it works correctly.
 
 

 

 

 

@amitchandak 

1 ACCEPTED SOLUTION

@Nimai123 , Try like

 last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))

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

View solution in original post

5 REPLIES 5
V-lianl-msft
Community Support
Community Support

Hi @Nimai123 ,

 

Yes, this is related to the feature of measure, which is calculated according to the current context.

When you select slicer, it means that the context changes so that the measure you created will take effect.

Or you can recreate the measure, but you need to define your own filter conditions instead of using time intelligence functions.

You can refer to this thread:https://community.powerbi.com/t5/Desktop/calculate-the-total-sales-of-last-3-months-vs-current-month... 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Nimai123 , Is this date column [FullDateAlternateKey]

and the table is marked as Date?

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

Yes,

 

Capture.PNG

 

 

 

And the table is also marked as a date.

 

@amitchandak 

@Nimai123 , Try like

 last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))

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
parry2k
Super User
Super User

@Nimai123 of course with current visual it doesn't know which month to look at and that's why it is not working and when you select a month value, it works.

 

Ask a question to yourself what you expect the result to be when a month is not select? How you want it to behave?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.