cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
guyatisk
Helper I
Helper I

Highlight weekend rows in matrix

I have a requirement to highlight weekend (WEEKDAY 1 and 7) rows as shown in this graphic.  I do have a condition set on the value and if there are any values entered into a weekend, the cell does highlight yellow.  However, with or without any value, I would like to have the row highlight yellow (or a light yellow).  Thanks for the informationScreenshot 2022-05-27 061433.png

1 ACCEPTED SOLUTION
sturlaws
Resident Rockstar
Resident Rockstar

Hi,

do this for each field you have added to your table visual:

sturlaws_0-1653775625935.png

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

View solution in original post

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @guyatisk ,

Did you apply the date field to your matrix visual? If so, you can create the following measure.

Measure =
VAR _seldate =
    SELECTEDVALUE ( 'Table'[Date] )
RETURN
    IF ( WEEKDAY ( _seldate, 1 ) IN { 1, 7 }, "Yellow" )

Then, use the conditional format based on the above metric. You can refer to the official documentation below for details.

yingyinr_0-1653985953406.png

You can find the details in the attachment. If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
sturlaws
Resident Rockstar
Resident Rockstar

Hi,

do this for each field you have added to your table visual:

sturlaws_0-1653775625935.png

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors