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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Weekday DAX : Mon-Mon, Tue-Tue comparo

Hi people, Need your help to solve my query. Straight to my question- 

I want to compare (monday -monday) or (tuesday - tuesday) sales for the respective week. 

Example: June 1st week Monday - July 1st week Monday(Dates can vary). How do I do this? your help is very much appreciated.

I want this to be dynamic. irrespective of the months i compare. Always the respective week(Day - Mon,tue,wed etc..) data should map with another. 

 

 

   

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Thanks for reaching out to us.

One idea, you can use edate() function to get the date 1 or 2 months ago, then filter date by same weekday number, for example (sample file attached below)

vxiaotang_0-1668669201605.png

vxiaotang_1-1668669219098.png

 

Best Regards,

Community Support Team _Tang

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

View solution in original post

1 REPLY 1
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Thanks for reaching out to us.

One idea, you can use edate() function to get the date 1 or 2 months ago, then filter date by same weekday number, for example (sample file attached below)

vxiaotang_0-1668669201605.png

vxiaotang_1-1668669219098.png

 

Best Regards,

Community Support Team _Tang

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

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

Top Solution Authors
Top Kudoed Authors