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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Highlight row in a matrix base on today's date

Hi to all. here is another question for all of you.

 

I Have a Matrix with data : 

1.PNG

 

I want to highlight row 3 because today is day 3. and then tomorrow highlight they 4. is that possible any ideas?

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Hello @Anonymous 

You will need a measure that compares the day of today to the DaysFrom

RowFormat =
VAR DayNumber =
    SELECTEDVALUE ( 'Date'[DaysFrom] )
RETURN
    IF ( DAY ( TODAY () ) = DayNumber, 1 )

Then apply conditional formatting based on that measure to your value.

rowformat.jpg

View solution in original post

3 REPLIES 3
jdbuchanan71
Super User
Super User

Hello @Anonymous 

You will need a measure that compares the day of today to the DaysFrom

RowFormat =
VAR DayNumber =
    SELECTEDVALUE ( 'Date'[DaysFrom] )
RETURN
    IF ( DAY ( TODAY () ) = DayNumber, 1 )

Then apply conditional formatting based on that measure to your value.

rowformat.jpg

Anonymous
Not applicable

amazing! Thanks for the help,

 

 

Another question, Can I apply that to grand total and row header?

Right now the conditional formatting can only apply to the values in the grid, not any of the totals, sub-totals, or headers.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.