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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.