Forum Discussion
Problem with Treemap
- 9 years ago
By default, the lowest value in your data is mapped to the least saturated color, and the highest value to the most saturated color. Center value is just the arithmetic mean of Minimum and Maximum, not all values. You may set them manually through Data colors section in Format pane.
As an alternative, use SIGN Function to create a calculated column.
Color Saturation Flag = SIGN ( Table1[Column3] - AVERAGE ( Table1[Column3] ) )
Think I understood the problem.
The color saturation don't take the VALUE as center, but that take the Center between the Higest and the Smallest Value.
For example, If I have Value A = 10 and B = 1000, the color saturation will take (1000-10)/2=495 and not (1000+10)/2=505...
That's why ! Do someone have an idea to correct that ?
Regards,
- v-chuncz-msft9 years agoCommunity Support
By default, the lowest value in your data is mapped to the least saturated color, and the highest value to the most saturated color. Center value is just the arithmetic mean of Minimum and Maximum, not all values. You may set them manually through Data colors section in Format pane.
As an alternative, use SIGN Function to create a calculated column.
Color Saturation Flag = SIGN ( Table1[Column3] - AVERAGE ( Table1[Column3] ) )
- arouillard9 years agoRegular Visitor
The SIGN function is perfect !
Here is my calculated measure:
Flag_Market_Share_Saturation = SIGN([Market Share] - (DIVIDE(CALCULATE(SUM(Database_Fusion[Group - Excel]);ALLEXCEPT(Database_Fusion;Database_Fusion[Addressable market]);Database_Fusion[Flag_ThisYear] = 1);CALCULATE(SUM(Database_Fusion[Market - Excel]);ALLEXCEPT(Database_Fusion;Database_Fusion[Addressable market]);Database_Fusion[Flag_ThisYear] = 1))))Thanks a lot for your help !