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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors