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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AishwariyaV
Helper IV
Helper IV

previous and current YTD,QTD and MTD.

Hi everyone,

I need DAX formula for calculating previous and current YTD, previous and current QTD and  previous and current MTD.

1 ACCEPTED SOLUTION

Hi @AishwariyaV 

You may try below measures. Below is the similar post for your reference.

Sales_YTD = TOTALYTD(SUM('Table'[Sales]),'Table'[Date])
Sales_YTD_Previous = CALCULATE([Sales_YTD],SAMEPERIODLASTYEAR('Table'[Date]))

https://community.powerbi.com/t5/Desktop/Prior-Year-YTD-won-t-calculate/td-p/463729

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @AishwariyaV , You can use quick measures to do that!

 

aaaaaa.png

It is not working Smiley Sad

Hi @AishwariyaV 

You may try below measures. Below is the similar post for your reference.

Sales_YTD = TOTALYTD(SUM('Table'[Sales]),'Table'[Date])
Sales_YTD_Previous = CALCULATE([Sales_YTD],SAMEPERIODLASTYEAR('Table'[Date]))

https://community.powerbi.com/t5/Desktop/Prior-Year-YTD-won-t-calculate/td-p/463729

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors