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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
abc_777
Post Prodigy
Post Prodigy

hi

hi,

 

Please help me to calculate 

 

same week but previous year measure

 

so i can compaire 

 

2023 sale by week number to compaire 2022 sale by week number (head to head Weekly sale comparison)

 

Week number 2023 sale same week previous year sale  2022 for referance same week previous year sale ( no need to show this in calculation, this is just a check)
1 2 1 1
2 3 3 3
3 4 4 4
4 5 5 5
5 6 5 5

 

thanks,

2 REPLIES 2
Ritaf1983
Super User
Super User

Hi @abc_777 ,
Any of the two solutions in the attached links may be helpful
https://www.youtube.com/watch?v=pgjnWBqZuNo
https://datacornering.com/get-data-from-same-week-last-year-in-power-bi/

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

hi,

 

the link you given he create a table and two measures where he use sales amount column but i want to use measure insteal of sales amount column

 

Week Table =
  SUMMARIZE(
                BMCalendar,BMCalendar[Year], BMCalendar[Week Number], "Week Total",
    CALCULATE([Total in Piece and KG (Measure)],   <<<< this is my measure i want to use
    ALLEXCEPT(BMCalendar, BMCalendar[Year], BMCalendar[Week Number])))
 
please help me how to do
 
thx

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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