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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Community Champion
Community Champion

@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
Community Champion
Community Champion

@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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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