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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ctvv3010
Regular Visitor

MTD calculation does not work

I was trying to calculate data filtered by date.

 

With past data it worked very well, but for MTD or when I'm trying to use the current month data, it just does not work as usual. The column returned the total number but not for individual rows.

 

 

For example, this one does work:

 

FY2019 Sales = CALCULATE([Total net sales], DATESBETWEEN(DateTable[Date].[Date], DATE(2018,09,01), DATE(2019,08,01)))

 

But for this month, this does not work:

 

MTD Sales = CALCULATE([Total net sales], DATESBETWEEN(DateTable[Date].[Date], DATE(2019,09,01), DATE(2019,10,01)))

Any suggestions? Much appreciated! Man Very Happy

 

1 REPLY 1
Anonymous
Not applicable

MTD Sales = CALCULATE([Total net sales], DATESBETWEEN(DateTable[Date].[Date], DATE(2019,09,01), today()))

Maybe since the end date has not happened yet it is having trouble with that. I'd try it with "today()" as the end date.

 

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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