Forum Discussion
Background color rules for table cells not working
- 4 years ago
you need to use 0.50 as an example for percentages I think. ie 50% is 0.50 have you tried that?
- 4 years ago
Hi Element115 ,
According to the snapshot, you select Percent in the dropdown, the Percent in this place does not mean percentage as in the datatype option. It means you’re setting the rule boundaries as a percent of the overall range of values from minimum to maximum.
For example in the below sample, the 0 Percent means the minmum value -50%, the 50 Percent should be (50%+(-50%))/2=0, so the backgroud color of value from -50% to 0 get red, it's correct.
Instead, if you want to get the correct number value, you should select Number in the dropdown like this:
Refer to this official document: Apply conditional table formatting in Power BI - Power BI | Microsoft Docs
Best Regards,
Kaly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Element115 ,
According to the snapshot, you select Percent in the dropdown, the Percent in this place does not mean percentage as in the datatype option. It means you’re setting the rule boundaries as a percent of the overall range of values from minimum to maximum.
For example in the below sample, the 0 Percent means the minmum value -50%, the 50 Percent should be (50%+(-50%))/2=0, so the backgroud color of value from -50% to 0 get red, it's correct.
Instead, if you want to get the correct number value, you should select Number in the dropdown like this:
Refer to this official document: Apply conditional table formatting in Power BI - Power BI | Microsoft Docs
Best Regards,
Kaly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.