Forum Discussion
Unexpected Result With Matrix Conditional Formatting
- Anonymous3 years ago
Hi AUaero ,
According to the reply from the product group, Power BI implements the color gradient as a linear scale. You can set the Middle to a different value if you want, but by default Middle is the average of min/max.
They will take the idea from you into consideration for adding more Auto options to "middle".
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
What do you want to treat as the middle value - mean or median? Share the link from where i can download your PBI file.
- AUaero4 years agoResponsive Resident
I would expect the middle value to the median, but I haven't found any documentation regarding conditional formatting that explains exactly what Power BI treats as the middle value. Regardless, the value that is highlighted as the middle is neither the mean nor the median.
I can't share the full PBIX but I've created a stripped down version that replicates the problem. As you can see, Power BI is treating the middle value as 103,391 while the median is 88,794 and the average is 92,752.
I can't share the the full PBIX due to confidentiality concerns, but here's a link to a simplified and sanitized version.
- lbendlin4 years agoSuper User
Yeah, it's a bit off. Dashed is median, solid is mean/average. Middle color is supposed to be white which is kinda absent.
You can raise an issue at https://issues.powerbi.com . If you have a Pro license you can consider raising a Pro ticket at https://powerbi.microsoft.com/en-us/support/pro/
- jgeddes4 years agoSuper User
It appears to be taking the max value of the list and subtracting the min value of the list. That number divided by two and then added to the min value to get the "middle value".