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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
RajK2
Helper V
Helper V

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
MasonMA
Community Champion
Community Champion

@RajK2 

 

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

@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
Community Champion
Community Champion

Hello @RajK2 

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:) 

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

 

 

 

 

MasonMA
Community Champion
Community Champion

@RajK2 

 

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

 

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

suggest

MasonMA
Community Champion
Community Champion

@RajK2 

 

That would be the code below . 

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

Hi @RajK2  , 

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  @RajK2 ,

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 @RajK2 ,

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

Thank you.

Shubham_rai955
Power Participant
Power Participant

Hi @RajK2 , 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors