Forum Discussion
Max value by group
- 4 years ago
Hi,
thank you for your explanation, and please check the below picture and the attached pbix file.
The new measure has to be written like below, and then you can select this measure as a "Field Value" inside the Conditional Formatting -> Background color option.
Max sales value by groupname color format: = VAR maxsales = CALCULATE ( MAX ( Sales[Sales] ), ALLEXCEPT ( Sales, 'Group'[GroupName] ) ) RETURN IF ( SUM ( Sales[Sales] ) = maxsales, "Red" )
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
It is for creating a new measure.
Max sales value by groupname: =
SUMX ( VALUES ( 'Group'[GroupName] ), CALCULATE ( MAX ( Sales[Sales] ) ) )
- Anonymous4 years agoNot applicable
Hi Jihwan_Kim ,
Sorry I told not so clear,
My final purpose is to do like this.
The max turn background color in the same groupname.
How to do this? Thanks a lot.
BRs
Dora.
- Jihwan_Kim4 years agoSuper User
Hi,
thank you for your explanation, and please check the below picture and the attached pbix file.
The new measure has to be written like below, and then you can select this measure as a "Field Value" inside the Conditional Formatting -> Background color option.
Max sales value by groupname color format: = VAR maxsales = CALCULATE ( MAX ( Sales[Sales] ), ALLEXCEPT ( Sales, 'Group'[GroupName] ) ) RETURN IF ( SUM ( Sales[Sales] ) = maxsales, "Red" )- Anonymous4 years agoNot applicable
Jihwan_Kim Thanks a lot