Forum Discussion

Tan_LC's avatar
Tan_LC
Icon for Helper II rankHelper II
3 years ago
Solved

Use the first Weekday displayed when the Count <> 0 with conditions

Hi,

 

In below table, any idea how to use Power Query to have the 1st Weekday displays when the Count <> 0 with the condition of Serial and Week of Year are the same. Else it should be no Weekday shows. 

 

SerialWeek of YearWeekdayCountExpected Result
1W8Y32Monday0 
1W8Y32Tuesday0 
1W8Y32Wednesday0 
1W8Y32Thursday0 
1W8Y32Friday0 
1W8Y32Saturday0 
1W8Y32Sunday0 
1W8Y33Monday0 
1W8Y33Tuesday3Tuesday
1W8Y33Wednesday3Tuesday
1W8Y33Thursday3Tuesday
1W8Y33Friday3Tuesday
1W8Y33Saturday3Tuesday
1W8Y33Sunday0Tuesday
22W232Monday0 
22W232Tuesday0 
22W232Wednesday0 
22W232Thursday0 
22W232Friday0 
22W232Saturday0 
22W232Sunday0 
22W233Monday0 
22W233Tuesday0 
22W233Wednesday0 
22W233Thursday3Thursday
22W233Friday3Thursday
22W233Saturday3Thursday
22W233Sunday0Thursday

 

Thanks.

LC