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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Power BI - Entire rows highlight

How to highlight entire rows in power BI and I try to highlight but column 'Total' not able to do in metrics table.

even 43 should be green color

any suggestion.

 

highlight.png

1 ACCEPTED SOLUTION

@Anonymous 

 

That would be the code below . 

ColorFlag =
IF( NOT ISINSCOPE(Table[Category]), 1, 0)

View solution in original post

11 REPLIES 11
Shahid12523
Community Champion
Community Champion

Shahid12523_0-1756878257876.png

Apply to Values and Totals

Shahed Shaikh
Anonymous
Not applicable

@Shahid12523  -

I applied conditional formatting as following obervation.

'Denmark' entire rows = white color should not highlight

"Total" rows only = any color, i.e. green, purple

 

any suggestion

MasonMA
Super User
Super User

Hello @Anonymous 

If you just wanted to highlight the bottom row (the Row Grand total) without highlighting the entire Column Grand Total, i dont see there's a direct way to set this up in Format Panel. You would need to use a simple Measure for conditional formatting. 

ColorFlag =
IF( NOT ISINSCOPE(Table[Category]), 1, 0)
so that For the Grand Total row at the very bottom, 'Category' (Rows in my demo table) is no longer in scope, so it returns 0
MasonMA_0-1756838725303.png

 

MasonMA_1-1756838754504.png

 

Hope this helps:) 

Anonymous
Not applicable

Its works as if Sub-total level of data like below but I need 'Total' entire rows 'color'

example:

Food

proteins

vitamin

minerls 

Household

furniture

tools

Total 0000          2120        3030   4040  5050

 

 

 

 

@Anonymous 

 

This all depends on Which filter contexts you wanted them to be 'In Scope'. 

For example, if i tweak the DAX to below, both Subtotal and Grand Total are highlighted (except for null values)

MasonMA_0-1756912331711.png

 

Anonymous
Not applicable

In Metrics table I would need 'Total' (In the last rows)

suggest

@Anonymous 

 

That would be the code below . 

ColorFlag =
IF( NOT ISINSCOPE(Table[Category]), 1, 0)

Hi @Anonymous  , 

Thanks for reaching out to the Microsoft fabric community forum. 

 

I would also take a moment to thank @MasonMA  , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference. 

Best Regards, 
Community Support Team  

Hi  @Anonymous ,

I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you.

Best Regards, 
Community Support Team  

Hi @Anonymous ,

Can you please confirm whether the issue is sorted or not?

Thank you.

Shubham_rai955
Super User
Super User

Hi @Anonymous , to highlight entire rows including the 'Total' column in a Power BI matrix or table, set conditional formatting on each field and ensure the "Apply to" option is set to "Values and Totals". Update your formatting rules to also include totals so that all cells, including row totals, reflect the highlight color.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.