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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Sai_Kumar
Frequent Visitor

Regarding Sales LYTD Measure

Hey,

Hello Everyone, 

 

I am looking for a measure to calculate the sales Last Year to date (The requirement was it needs to calculate the last year sales up to the current Month last year)

 

The below image gives a brief idea.

Sales LYTD.PNG

If you see the FY22, Sales AUD was the current running sales and 000Sales LYTD was last year(FY21) sales. I got the data that I am looking for but if you see the total it was showing total sales for (FY21).
(If the total adds the above 2 months for 000 Sales LYTD then the problem was solved).

 

The current Measures I am using was 

Sales AUD was Total sales 

000 Sales LYTD = if([SalesAUD], CALCULATE([SalesAUD], DATEADD('Master Calendar'[Date],-1,YEAR)))

 

Thanks guys, 

 

Looking forward to hear from you.

 

 

 

1 REPLY 1
Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @Sai_Kumar ,

 

Use this measure in the values field to get the correct total:

 

Totalfixed= SUMX(VALUES( Fiscal Year Fiscal Month) , 000 Sales LYTD)

 

 

I hope this helps!

Mark this as a solution if I answered your question. Kudos are always appreciated.

Thanks!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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