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

YTD, QTD, MTD

Hello,

 

I have a messure

Fees = sumx(filter('FeeTable','FeeTable'[Type]="Personal"),'FeeTable'[Ammt]) /-10

 

Then I have a Date Table

Has Fiscal Year (Date Data Type)  like , Fiscal QTR Num (Whole Number Data Type),  Fiscal Monnth (Whole Number Data Type)
2018

2017

2016

Both tables are connected via Month_ID (Which is a text field).

 

How do I find YTD, QTD, MTD data?

 

Apprecite your help.

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

Hi irehman,

 

DAX has built-in function TOTALQTD, TOTALMTD, TOTALYTD to calculate QTD, MTD, YTD, please refer to: https://msdn.microsoft.com/en-us/query-bi/dax/time-intelligence-functions-dax. For more details about when to use these functions and how to use these functions, please refer to: https://www.mssqltips.com/sqlservertip/4841/calculating-mtd-qtd-ytd-running-and-cumulative-total-in-....

 

Regards,

Jimmy Tao

View solution in original post

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

Hi irehman,

 

DAX has built-in function TOTALQTD, TOTALMTD, TOTALYTD to calculate QTD, MTD, YTD, please refer to: https://msdn.microsoft.com/en-us/query-bi/dax/time-intelligence-functions-dax. For more details about when to use these functions and how to use these functions, please refer to: https://www.mssqltips.com/sqlservertip/4841/calculating-mtd-qtd-ytd-running-and-cumulative-total-in-....

 

Regards,

Jimmy Tao

Greg_Deckler
Super User
Super User

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.