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! Request now

Reply
Namoh
Post Partisan
Post Partisan

Conditional format in matrix table can't exceed 100% (when using measures)

Hi,

 

I've got a matrix table with 4 columns.

 

I would like to color two of these columns (based on the other two columns) via conditional formatting.

The colors should be shown via the following rules:

- Dark Green when the column value is <80% of the reference column

- Light Green when the column value is >80% and <110% of the reference column

- Orange when the column value is >110% and <120% of the reference column

- Red when the column value is >120% of the reference column

 

When trying to do so the OK button will be greyed out once I put anything higher then 100%....??

See picture 1, with OK possible when entering 100%

See picture 2, with OK greyed out when entering 101%

Picture_1_OK_possible.png

 

Picture_1_OK_greyed_out.png

 

It's not something special I'm looking for, in excel I can do this within 5 seconds.

 

How to fix this in PowerBi?

 

1 ACCEPTED SOLUTION

hi @Namoh 

8.JPG

 

here still is Number instead of Percent

 

Regards,

Lin

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

View solution in original post

13 REPLIES 13
v-lili6-msft
Community Support
Community Support

hi @Namoh 

you must know that the way the "Percent" conditional formatting works is different than you think, it doesn't have anything to do with percent of total.  It take the lowest and hightest displayed amounts and uses those to determine the formatting bands based on the Percent you entered so your table is looking at these numbers to apply the formatting.

So for your case, just replace "Percent" with "Number

 

Regards,

Lin

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

Hi 

 

 

 

 

 

 

 

hi  @Namoh 

You should create a measure as below:

Measure = DIVIDE(SUM(actual unplanned downtime(hrs)) , SUM(target unplanned downtime(hrs)))

then do conditional format based on this measure not target unplanned downtime(hrs).

 

and since this meausre is a percent, you need to change 1->0.01 80->0.8  110->1.1 120->1.2  9999->99

6.JPG

 

 

Now it should work for your requirement.

 

Regards,

Lin

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

Thanks, will try to use the extra measure!

 

Will post if it worked.

@v-lili6-msft , I've created the measure and it shows the correct values, see 2nd picture below, last column.

 

I've added the conditional formatting rules accordingly, but the colors are not showing up correctly, see picture below.

What am I doing wrong?

 

Figure_4_new_measure.png

 

According to above rules the first 3 rows should be Dark Green, because they're less than 80% / 0.8, but they show as Red....?

 

Figure_5_still_wrong_colors.png

hi @Namoh 

8.JPG

 

here still is Number instead of Percent

 

Regards,

Lin

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

Yes, that solved it.

 

To be honest the Conditional Formatting this works in PowerBi is much less intuitive then how it works in Excel.

The fact that you need to create an extra measure is a step I really don't understand, with my knowledge from Excel.

But then again, I'm a newbie when it comes to PowerBi, but it just isn't as easy and intuitive as Excel.

hi  @Namoh 

I'm sorry i don't know this language in the picture, could you please share your sample pbix for us  have a test, that will be a great help.

 

Regards,

Lin

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

Hi v-lili6-msft, I found the option to change to English.

 

Hereby the screenshot in English, hope this helps.

 

Figure_1_Numbers_ENG.png

 

Unfortunately my pbix contains lots of classified info, so I can't share it, but I hope above information is enough.

If more is needed, just let me know.

 

Don't know if it matters, but the columns in my table are measures.

hi  @Namoh 

4.JPG

 

5.JPG

 

From the picture, this result is right for your setting.

you are doing conditional format for actual unplanned downtime(hrs) based on target unplanned downtime(hrs).

 

so it is right result. 

what is your expected output?

 

Regards,

Lin

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

Hi @v-lili6-msft , thanks I now realise that it looks at the value of my Target values.

But this is not what I want.

 

I want the following:

 

amitchandak
Super User
Super User

@Namoh ,

Actually if % type of measure that you should use absolute value. or create a % measure and use absolute value.

 

You can log an issue or Idea if it not working.

https://community.powerbi.com/t5/Issues/idb-p/Issues

https://ideas.powerbi.com/ideas/

 

You can create a color measure and use with field option

example

color =
switch ( true(),
FIRSTNONBLANK('Table'[commodity],"NA") ="commodity1" && sum('Table'[Value]) >500,"lightgreen",
FIRSTNONBLANK('Table'[commodity],"NA") ="commodity2" && sum('Table'[Value]) >1000,"lightgreen",
// Add more conditions
"red"
)
calculate( [NumberofID],DATESMTD('Date dimension 'Table''[Date]), USERELATIONSHIP ('Table'2[CreateDate])
calculate(Max(Target[ratio])) *CALCULATE(
[Sales_Value],
SAMEPERIODLASTYEAR(
Date_DB[Date]))

 

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

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

Thanks for your quick reply, but to be honest, I don't understand what you mean.

 

This is my table, with normal values and the YTD columns are sums of the 1ste/3rd column.

Figure_3_matrix_table.png

 

If more information is needed, e.g. my measures, to provide a solution that I can work with, please let me know.

 

I looked at the links besides that they are very interesting, I didn't find a solutoin for my issue.

 

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.

Top Solution Authors