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
Anonymous
Not applicable

Comparison DAX

Hi,

 

I am trying to compare same weekday sales from prior year and also % difference. (It's a day level comparison)

Let me explain what I mean by that:

 

I want to compare sales between

 

"1st Jan 2019(Monday)" vs "2nd Jan 2018 (Tuesday) "  because they are the first tuesday of that month

                   and similarly

"2nd Jan 2019 (Wednesday)" vs "3rd Jan 2018 (Wednesday) " and so on. And I have to assign comparable weekday of each month as "P" and non comparable days as "T" and also If there is no sales for more than 6 days it should eliminate it and compare other days and assign "P" and  "T" accordingly.

 

Please help me to acheive this!!! 

TIA

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 


I want to compare sales between

 

"1st Jan 2019(Monday)" vs "2nd Jan 2018 (Tuesday) "  because they are the first tuesday of that month

                   and similarly

"2nd Jan 2019 (Wednesday)" vs "3rd Jan 2018 (Wednesday) " and so on. And I have to assign comparable weekday of each month as "P" and non comparable days as "T" and also If there is no sales for more than 6 days it should eliminate it and compare other days and assign "P" and  "T" accordingly.


Could you share more details about your requirement and expected result? If possible, please also share some sample data for further analysis.

 

Regards,

Jimmy Tao

Anonymous
Not applicable

Thnak you for your response. Please check the image below and help me.I want to achieve like this for each month of a yearI want to achieve like this for each month of a yearIf the shop is closed for particular period  then it assign P nd T with respect to the comparable daysIf the shop is closed for particular period then it assign P nd T with respect to the comparable days

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.