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
Tan_LC
Helper I
Helper I

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors