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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
AnnaViteria
New Member

Conditional formatting for individual rows

Hi everyone,
I am fairly new to the tool so i got stuck on what seems an easy problem.

I have parking lots and products, so when i have a parking lot granularity i want it to be blue, but when i expand it to the products i want those rows to be white but the headers shall still be blue.

Thanks in advance.

0cb53a9b-99cb-43e0-9333-82145e497cc5.jpeg

75fa3754-726a-4108-88dd-1f565e73ce7c.jpeg

1 ACCEPTED SOLUTION
olgad
Super User
Super User

@AnnaViteria

create a measure: 

Measure =
IF(
NOT(ISINSCOPE('Table'[Products])),
"blue") // instead of Products place the name of the column you have in the second hierarchy position. Instead of "blue" the color you need.

 

In the conditional formatting section make sure to apply to Values and Totals and not only Totals or Values.

 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

View solution in original post

2 REPLIES 2
AnnaViteria
New Member

Wow it worked! Thanks a ton! 

olgad
Super User
Super User

@AnnaViteria

create a measure: 

Measure =
IF(
NOT(ISINSCOPE('Table'[Products])),
"blue") // instead of Products place the name of the column you have in the second hierarchy position. Instead of "blue" the color you need.

 

In the conditional formatting section make sure to apply to Values and Totals and not only Totals or Values.

 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.