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
o59393
Post Prodigy
Post Prodigy

Conditional formatting not working properly

Hi all

 

I am using a conditional formatting with the following rules.

 

If equal to 1 then green

If >= 0 and less than 0 then red

If greater thaan 1 then red

 

ddssdfss.JPG

 

As pointed above in the blue arrows, some values with 100% are not showing the green, while others are.

 

How can I make the 100% values show a green value?

 

The values don't have extra decimals.

 

Thanks.

16 REPLIES 16
mhossain
Solution Sage
Solution Sage

@o59393 

If you apply green criteria as  " greater then equal to 0.99999".

Agree with @FrankAT  those reds must be not equal to100.00% in pbi if probably increase decimal to 9 digit probably.

Hi @mhossain , it turned everything into red with 0.99999.

 

Thanks!

@o59393 

 

0.99999 will go with number (not the percent) :), I am sure you must be doing correctly.

Anonymous
Not applicable

Hi @o59393 ,

 

Logic looks fine, what is checkmix in your data? Better to share the pbix to us if you don't have any Confidential Information.

 

Best Regards,

Jay

FrankAT
Community Champion
Community Champion

Hi @o59393 ,

try the following logic:

  • if is 1 => green
  • if is <> 1 => red

 

Regards FrankAT

Hi @FrankAT 

 

What would be the <> option?

 

Also, please consider that if it is greater than 1 it should be red. Green is only for =1.


I only have these:

 

dsfsdgfddfgd.JPG

 

Thanks.

FrankAT
Community Champion
Community Champion

Hi @o59393 ,

yes you are right, that's may fault. Here is my solution:

 

04-08-_2020_23-45-40.png

 

Regards FrankAT

Hi @FrankAT 

 

I did it as you mentioned:

dsfsdfsfds.JPG

 

But still shows in red 😕

 

And also it added by defaul a 0% and 100% when I reopen the conditional formatting:

 

ewrweewrwewr.JPG

 

Could there be a problem with Power BI?


Thanks.

FrankAT
Community Champion
Community Champion

Hi @o59393 ,

I think you must take a look at the values of Chek mix. Round them to a whole number.

Yes, the dialog conditional formatting is a little bit messy, but that's not the problem!

Regards FrankAT

Hi @Anonymous  and @FrankAT 

 

I attach a pbix, I can't figure out why it's marking red the 100% value:

 

https://1drv.ms/u/s!ApgeWwGTKtFdhyDsUmWn7PR4vNTY?e=aPbYhY

 

sdsadaas.JPG

 

Just in case, the datasource is a Sharepoint list.

 

Thanks!

FrankAT
Community Champion
Community Champion

Hi @o59393 ,

it's all right with the conditional format. The representation of the percentage with two decimal places shows why the different background color is applied (see figure):
 
05-08-_2020_22-42-54.png

 Regards FrankAT

Hi @FrankAT 

 

I picked the wrong datasource, my bad !

 

Here is the one: https://1drv.ms/u/s!ApgeWwGTKtFdhyDsUmWn7PR4vNTY?e=9kjOQF

 

Please use that one.


Thanks!

FrankAT
Community Champion
Community Champion

Hi @o59393 ,

I think the problem is the internal conversion from binary to decimal.

Normally, this error can be fixed by rounding the number. With the numbers in your example, it is not possible for a reason unknown to me.
06-08-_2020_09-37-56.png

 

 Regards FrankAT

Thank you @FrankAT !

 

Appreciate your support, @Anonymous any idea how to fix what @FrankAT  mentions?

 

Thanks both.

hi @Anonymous 

 

any idea how to solve this issue that @FrankAT comments?

 

Thanks!

Anonymous
Not applicable

Hi @o59393 ,

 

I'm a little comfused about your measure [Check mix], I create a measure as below and get the different result. Can you share the logic about your measure?

Measure 2 = CALCULATE(SUM('Honduras - Balance your lines'[Mix(%)]),SUMMARIZE('Honduras - Balance your lines','Honduras - Balance your lines'[Line],'Honduras - Balance your lines'[Plant],'Honduras - Balance your lines'[SKU]))

 1.PNG

 

Best Regards,

Jay

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
Top Kudoed Authors