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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Measure to calculate total sales in the month

I want to create a measure that returns the total sales for that month. If there is no month in the context, I want it to return the total sales.

 

My measure is something like this:

 

total sales only month = CALCULATE(SUM(scanner_data[Sales_Amount]), FILTER(all(scanner_data), ALLEXCEPT('calendar', 'calendar'[Date])))
 
But is not working.
1 REPLY 1
SivaMani
Resident Rockstar
Resident Rockstar

@Anonymous, Can you share your model diagram and expected output in a screenshot?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.