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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Gandhary80
Frequent Visitor

Conditional formatting of column don't work properly

Hello,

 

first of all, sorry for "Czech" language location of PBI Desktop, but I think you can understand it.

 

I have in desktop column with name "ordernumber" and my goal is to make the background colour based on the column "check_NO". The value of this column is visible in picture below and is green or red. 

Snímek obrazovky 2024-08-08 v 13.57.16.png

 

To be honest I don't really know why the colour is sometimes green if the value is "green" and sometimes is withouc colour and the same is also for the red colour. Don't you have any idea why? The "ordernumber" and "check_NO" columns are in the same data table. What is wrong?

 

Thank you for your tips where to look ...

2 ACCEPTED SOLUTIONS
LeandroDeodato
Resolver II
Resolver II

to do a condicional format, you need a comparation of values, in this case, the fild is the fist value, this isn't correct, try change to based in rules, or use a mensure or column like sum of sales, etc...

View solution in original post

Anonymous
Not applicable

Thanks for the reply from LeandroDeodato , please allow me to provide another insight:

Hi, @Gandhary80 

Regarding the issue you raised, my solution is as follows:

1.First I have created the following table and the column names and data are the data you have given:

vlinyulumsft_0-1723182870983.png

2.Second, you can find the following locations in the visualization settings:
 

vlinyulumsft_1-1723182870985.png

3.Then modify the settings:

vlinyulumsft_2-1723182888232.png
4.Here's my final result, which I hope meets your requirements.

vlinyulumsft_3-1723182888233.png
5.Here is the relevant documentation:
Apply conditional table formatting in Power BI - Power BI | Microsoft Learn

Please find the attached pbix relevant to the case.

 
Of course, if you have any new ideas, you are welcome to contact us.
 

Best Regards,

Leroy Lu

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

2 REPLIES 2
Anonymous
Not applicable

Thanks for the reply from LeandroDeodato , please allow me to provide another insight:

Hi, @Gandhary80 

Regarding the issue you raised, my solution is as follows:

1.First I have created the following table and the column names and data are the data you have given:

vlinyulumsft_0-1723182870983.png

2.Second, you can find the following locations in the visualization settings:
 

vlinyulumsft_1-1723182870985.png

3.Then modify the settings:

vlinyulumsft_2-1723182888232.png
4.Here's my final result, which I hope meets your requirements.

vlinyulumsft_3-1723182888233.png
5.Here is the relevant documentation:
Apply conditional table formatting in Power BI - Power BI | Microsoft Learn

Please find the attached pbix relevant to the case.

 
Of course, if you have any new ideas, you are welcome to contact us.
 

Best Regards,

Leroy Lu

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

LeandroDeodato
Resolver II
Resolver II

to do a condicional format, you need a comparation of values, in this case, the fild is the fist value, this isn't correct, try change to based in rules, or use a mensure or column like sum of sales, etc...

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.