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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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