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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Tan_LC
Helper II
Helper II

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

1 ACCEPTED SOLUTION
Manoj_Nair
Solution Supplier
Solution Supplier

@Tan_LC 

Please check this out, let me know if this works. If this fix your problem, please tick this a solution and a thumps up.

https://github.com/msncps/PowerBI/blob/main/2023_08_09_Use%20the%20first%20Weekday%20displayed%20whe... 

View solution in original post

1 REPLY 1
Manoj_Nair
Solution Supplier
Solution Supplier

@Tan_LC 

Please check this out, let me know if this works. If this fix your problem, please tick this a solution and a thumps up.

https://github.com/msncps/PowerBI/blob/main/2023_08_09_Use%20the%20first%20Weekday%20displayed%20whe... 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.