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! Learn more

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.