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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
piotr_gor
Helper II
Helper II

Sales up to today's Month and Day with last year comparison

Hi there, 

I do struggle with writing measure that computes Last Year's Running Sales Amount but only up to today's date. 

Today is 26.01.2023. I want to calculate sales amount from 01.01.2022 to 26.01.2022. 

I tried many combinations and non got my correct results. 

Please help 😉

1 ACCEPTED SOLUTION
ribisht17
Super User
Super User

@piotr_gor 

 

Please check this blog here https://radacad.com/same-period-last-year-to-date-dax-calculation-in-power-bi

I have previously written about how to calculate the same period last year calculation and compare this year’s values with the last year’s values. However, sometimes, you don’t yet have the full year, especially for the current year. You might want to compare this year’s value with the last year’s value up until the same day but last year. This is what I call same period last year to date. Here in this blog article, I’ll explain how you can do that using DAX in Power BI. To learn more about Power BI

 

 

Regards,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !! PL 300 Certification Series

View solution in original post

3 REPLIES 3
RajPatel2000
Regular Visitor

I have 3 years sales like 2022,2023 & 2024 i want 2022 sales mesure only like i have used for 2023 sameperioedlastyear so if i want only 2022 sales mesures how should i do please hlep me out 

ribisht17
Super User
Super User

@piotr_gor 

 

Please check this blog here https://radacad.com/same-period-last-year-to-date-dax-calculation-in-power-bi

I have previously written about how to calculate the same period last year calculation and compare this year’s values with the last year’s values. However, sometimes, you don’t yet have the full year, especially for the current year. You might want to compare this year’s value with the last year’s value up until the same day but last year. This is what I call same period last year to date. Here in this blog article, I’ll explain how you can do that using DAX in Power BI. To learn more about Power BI

 

 

Regards,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !! PL 300 Certification Series

It works as intendent. Was struggling with it at least two hours 🙂 Cheers.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.