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
kellyylx
Helper I
Helper I

Highlight cell based on another column

Hi, I have this table below and I want to highlight all records that belongs to an odd-numbered group 

 

nameaddress  Group
ACurrie Street 1
BMary Road Block 4    0
CStadium 60
ACurrie Street 1
GLuck Ave 3
DStanley Road2
DStanley Rd2
EChuan Road0
FGeorgia Ave 40
HKhatib Street0
IPeace Road0
GLuck Ave 3
GLuck Avenue 3

 

Expected output in dashboard:

kellyylx_1-1724988889444.png


how can i do this in powerbi?

 

1 ACCEPTED SOLUTION
muhammad_786_1
Super User
Super User

Hi @kellyylx 

 

Thank you @aduguid  for your solution! 

 

I'd like to provide an additional approach, if you're not sure how many odd values you have, you can create a calculated column using this DAX formula:

 

muhammad_786_1_0-1724991523445.png

 

Then, you can apply a rule based on the "Odd" value in this new column to achieve the desired conditional formatting. This way, you can dynamically manage any changes in the "Group" values and ensure your formatting rules are always accurate.

 

Best Regards,
Muhammad Yousaf

 

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

 

LinkedIn

 

View solution in original post

2 REPLIES 2
muhammad_786_1
Super User
Super User

Hi @kellyylx 

 

Thank you @aduguid  for your solution! 

 

I'd like to provide an additional approach, if you're not sure how many odd values you have, you can create a calculated column using this DAX formula:

 

muhammad_786_1_0-1724991523445.png

 

Then, you can apply a rule based on the "Odd" value in this new column to achieve the desired conditional formatting. This way, you can dynamically manage any changes in the "Group" values and ensure your formatting rules are always accurate.

 

Best Regards,
Muhammad Yousaf

 

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

 

LinkedIn

 

aduguid
Super User
Super User

While the table visual is selected right click on the column in the visualization pane and select "Conditional Formatting" | "Background Color" and then you can reference your "Group" measure.

aduguid_1-1724989956846.png

aduguid_2-1724989991973.png

 

 

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