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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

MTD and QTD not working

In my date field in fact table I have data for end of all month. eg 31st Jan, 29th feb 2020, etc. Now upon selection of any date I need to calculate YTD QTD and MTD. I have data for 1 year i e. 2020. YTD expression is working fine. But MTD and QTD is showing blank result.

 

Expression I am using

 

TotalQTD(Sum(Values), Date, Filter(Table name, Date< = vCurDate)

vCurDate= selected input date.

 

TotalMTD(Sum(Values), Date, Filter(Table name, Date< = vCurDate)

 

MTD and QTD expression is not working.

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

So generally you need a separate date table for time intelligence functions to operate correctly.

 

See if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Anonymous
Not applicable
Greg_Deckler
Super User
Super User

So generally you need a separate date table for time intelligence functions to operate correctly.

 

See if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors