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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.