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
Anonymous
Not applicable

DatesMTD query help please ?

HI Team,

 

i have data set with 2 years of info

when i use datesMTD i get the current month info , which is great

 

However if an user selects 2-3 months, i does not work intutively ( only shows MTD as expected)

How can i make this formula more efficient?

so if an user selected 3 months, it totals those 3 months?

or

 

How can I use sub filter in caluclate so only the current FY is looked at , then i would not have to use MTD?

 

luisClive_0-1706260070977.png

 

 

for the same reasom my Month/YTD switch also does not work

 

luisClive_1-1706260395976.png

 

1 REPLY 1
lbendlin
Super User
Super User

Those other months are fully in the past, so MTD is not required.  Or are you planning to compare these like-for-like, with the same number of days as in your current month?  (Which has all kinds of skewing issues, btw).

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