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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Ayappan
Helper III
Helper III

Table row conditional Formatting based on Text

Hi , I want to do some conditional Formatting based on Text changes in Table rows in Power Bi Ex : If Pass complete row should be in Green If Fail it should be Red .

 

I had writted a measure but that works only for that column ..I want to make it for entire row.

Status Background =
VAR _Status = SELECTEDVALUE ( KPI[KPI Status] )
RETURN
SWITCH(
_Status,
"Pass","Green",
"Fail","Red"
)
3 REPLIES 3
v-luwang-msft
Community Support
Community Support

Hi @Ayappan ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

Best Regards
Lucien

v-luwang-msft
Community Support
Community Support

Hi @Ayappan ,

As far as I know, except for the matrix, if you give want to configure it for the whole table, you need to configure the conditional format for each column one by one, and it can't work directly on the whole row.

refer the following idea:

https://ideas.powerbi.com/ideas/idea/?ideaid=229a6a2b-f26c-4afd-b1af-8cf3cbc9810f&page=1 

 

 

Best Regards

Lucien

jaipal
Resolver III
Resolver III

@Ayappan , try this

Status Background = 

           SWITCH( TRUE(),
                          'KPI'[KPI Status]   = "Pass",   "#92D050",
                           'KPI'[KPI Status] =  "Fail",     "#FF0000" )


          
                     
 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.