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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
djensen
Frequent Visitor

Conditional formatting on a table with one row

Not sure if this is a glitch, or if anyone else has had this problem. Haven't found a solution posted so far:

 

I'm building a model for perfomance reports, in which indicators are grouped into 1-row tables. For each indicator, there is the amount acheived, the goal, what percent of the goal was achieved, and the resulting grade. The dashboard has several tables, each of which looks something like this:

 

Training groups opened         
Methodology 1Goal 1Attained 1Result 1Metodology 2Goal 2Attained 2ResultMethodology 3Goal 3Attained 3Result 3
88100%Satisfactory7888%Deficient1612133%Exceeded expectations

 

Let's say the grade is broken down into 3 categories: 0-99% of goal, 100-119% of goal, 120%+ of goal, and that the goals are fixed. The "Methodology", "Attained" and "Result" cells are all computed measures, and the "Goal" cell is inputted data.

 

Ideally, I'd want the "Result" cell to have a 3-color conditional formatting scale like Excel, but I know that in Power BI you can't put conditional formatting on a text value, and 3-color scales are not allowed. However, you can set a min and max value, so my workaround is to put this condition on the "Methodology" cell.

 

The issue is that the conditional formatting doesn't appear unless I add a second row, which for the purposes of this report isn't what I want to do. A workaround is to change the visual to a matrix, add a calculated column such as "Training groups opened = BLANK()", and set this measure as the row field. However, this is cumbersome and isn't as appealing visually.

 

My question is: if I am doing something wrong, what I need to change; or is this just a bug in the program?

19 REPLIES 19

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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