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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Not applicable

Conditional Formatting with drilldown hierarchy

Hey experts,


I am quite at the end of my knowledge after trying to implement a conditional formatting to a value column based on another column field with text like "green","yellow" and "red".


It works fine ....

until in drill down with a slicer:




Here are my filter settings:



The table clearly exhibits the right values. Hence I really don't know, why the conditional formatting doesn't work. Surely it has soemthing to do with the aggregation. Is that so?

How can I colve this challenge?


Thanks a lot for your help in advance!

Community Support
Community Support

Hi @Anonymous,

I'd like to suggest you write a measure to lookup value from another table field instead of directly using other table columns, they may not mapping correctly.

If you confused about the coding formula, please share some dummy data with raw table structures and do test coding formula.

How to Get Your Question Answered Quickly 

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Super User
Super User

@Anonymous , Not very clear. You can create a color measure and use that is conditional formatting with "Field Value" option


Colour = 
max('Table'[Month Year]) = "Jan-2020", "red",
Max('Table'[Month Year]) < "Feb-2020", "orange",
//keep on adding

Measure =
max(Table[Column]) = "R1" , "Red" ,
max(Table[Column]) = "R2" , "Green" ,
max(Table[Column]) = "R3" , "Pink " 

Color sales = if(AVERAGE(Sales[Sales Amount])<170,"green","red")
Color Year = if(FIRSTNONBLANK('Table'[Year],2014) <=2016,"lightgreen",if(FIRSTNONBLANK('Table'[Year],2014)>2018,"red","yellow"))

Color  = if(FIRSTNONBLANK('Table'[Year],2014) <=2016 && AVERAGE(Sales[Sales Amount])<170 
Color sales = if([Sales Today] -[sales yesterday]>0,"green","red")

color =
switch ( true(),
FIRSTNONBLANK('Table'[commodity],"NA") ="commodity1" && sum('Table'[Value]) >500,"lightgreen",
FIRSTNONBLANK('Table'[commodity],"NA") ="commodity2" && sum('Table'[Value]) >1000,"lightgreen",
// Add more conditions


Refer these for steps:

Helpful resources

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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