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
AlanP514
Post Patron
Post Patron

Applying Conditional Formatting In KPI For text value

Hai Guys, Need your help

Scenario : 

AlanP514_1-1646047952362.png
Requirement:  If the selected value (text) is Selected we want to show the text value in green,
If the selected value (text) is Rejected we want to show it is in Red
Note: we want to combine "status" as well with this 


2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @AlanP514 ,

 

Is that you mean there is a slicer for users to select value (text), the values of the slicer come from the same column as the table visual where show it?

 

In this case, maybe create a new table via values( interview[status]), then create the slicer which values come from the new table.

New table = values( interview[status])

#screen status = if( selectedvalue( interview[status]) = selectedvalue( 'new table'[status]),"green","red")

 

if i misunderstood you , please share example data and expect result even if hand draw.

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@AlanP514 , Why are you combining it with status , it should be like

use you calculate in var

var _status = selectedvalue(Table[Status])

Switch(True() ,

_status ="Selected", "Red"

, "Green"

)

 

How to do conditional formatting by measure and apply it on pie? : https://youtu.be/RqBb5eBf_I4

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.