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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
rajdba2023
Frequent Visitor

Conditional Formatting using pre-defined RAG thresholds

Hi,

 

I am new to Power BI and we are migrating from another BI tool to Power BI.

 

We have a requirement:

Transaction Table:

ID, Value

1,10

1,20

1,15

2,10

3,15

3,22

 

RAG Threshold:

ID, Green Low, Green High, Amber Low, Amber High, Red Low, Red High

1,0,10,11,30,31,9999

2,0,5,6,20,21,9999

3,0,1,2,5,6,9999

 

When I so a summerized count against the ID, based on the corresponding RAG threshold we want to change the font color to Green, Amber or Red,

 

1, 45 (Shown in Red)

2, 10 (Shown in Amber)

3, 37 (Shown in Red)

 

How do I achieve this?  Tried reading through conditional formatting and can't find any lead on how to set the threshold values using another column values

 

Thanks

Raj

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

your RAG table is not in a usable format.

 

lbendlin_0-1717095800209.png

Unpivot it and while doing that also change the color names so they can be used directly.

 

lbendlin_1-1717095954300.png

 

Then create your color measure

lbendlin_2-1717097006919.png

 

and apply the conditional formatting

lbendlin_3-1717097040922.pnglbendlin_4-1717097054204.png

 

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

your RAG table is not in a usable format.

 

lbendlin_0-1717095800209.png

Unpivot it and while doing that also change the color names so they can be used directly.

 

lbendlin_1-1717095954300.png

 

Then create your color measure

lbendlin_2-1717097006919.png

 

and apply the conditional formatting

lbendlin_3-1717097040922.pnglbendlin_4-1717097054204.png

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Solution Authors