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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.