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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Highlight a specific row in a table

Hi guys,

 

I've the following table:

table.png

The column "Group" has categorical values. I'd like to highlight the entire row once a specific condition is met. The condition would be that the column "Group" contains a specific name. For example, Group = Pepsi --> Highlight entire row.

 

Any idea how I could do this?

 

Thanks in advance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

You can create a measure and use the new 'Conditional Formating' option where you select formatting by

'Field Value' and in this you choose the measure shown below.

Create a measure.

measure=
IF  (HASONEVALUE(table[group])
    ,IF( FIRSTNONBLANK('table'[group] , 0) = "Pepsi"
        ,"lightgreen"
        ,"white"
    )
    ,BLANK()
)

 

If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you! It works perfectly!

Anonymous
Not applicable

Hi @Anonymous ,

You can create a measure and use the new 'Conditional Formating' option where you select formatting by

'Field Value' and in this you choose the measure shown below.

Create a measure.

measure=
IF  (HASONEVALUE(table[group])
    ,IF( FIRSTNONBLANK('table'[group] , 0) = "Pepsi"
        ,"lightgreen"
        ,"white"
    )
    ,BLANK()
)

 

If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors