Forum Discussion

AnAnalyst's avatar
AnAnalyst
Helper III
6 years ago
Solved

Custom Work Week Calculation (DAX or M/PQ)

I have the [Date] and the [Day Name] in the below table. I need to calculate the [End of Week] Column. This is a Wedensday-Tuesday workweek. I am fine with doing this in DAX or Power Query.  Suggestions are much appreciated. 

 

 

DateDay NameEnd of Week
12/1/2019Sunday12/3/2019
12/2/2019Monday12/3/2019
12/3/2019Tuesday12/3/2019
12/4/2019Wednesday12/10/2019
12/5/2019Thursday12/10/2019
12/6/2019Friday12/10/2019
12/7/2019Saturday12/10/2019
12/8/2019Sunday12/10/2019
12/9/2019Monday12/10/2019
12/10/2019Tuesday12/10/2019
12/11/2019Wednesday12/17/2019
12/12/2019Thursday12/17/2019
12/13/2019Friday12/17/2019
12/14/2019Saturday12/17/2019
12/15/2019Sunday12/17/2019
12/16/2019Monday12/17/2019
12/17/2019Tuesday12/17/2019
12/18/2019Wednesday12/24/2019
12/19/2019Thursday12/24/2019
12/20/2019Friday12/24/2019
12/21/2019Saturday12/24/2019
12/22/2019Sunday12/24/2019
12/23/2019Monday12/24/2019
12/24/2019Tuesday12/24/2019

 

Thank you

4 Replies