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