Forum Discussion
Highlight Max value in a matrix
- 6 years ago
nattran, well it's DAX you're asking for.
Haven't really tested, but based on your image something like this should work:maxSum =
VAR m =
CALCULATE (
MAXX ( SUMMARIZE ( 'table', 'table'[Dep] ), CALCULATE ( SUM ( 'table'[Amt] ) ) ),
REMOVEFILTERS ( 'table'[Dep] )
)
VAR s =
SUM ( 'table'[Amt] )
RETURN
IF ( m = s, 1 )and then conditionally filter SUM('table'[Amt]) when maxSum = 1 then colour.
- 6 years ago
Hi nattran ,
You could set the highlight in conditional formatting with a color measure( [Measure] is the value in matrix ).
FormatMeasure = VAR a = MAXX ( ALLEXCEPT ( 'Table', 'Table'[Column1] ), [Measure] ) RETURN IF ( [Measure] = a, "yellow" )Here is my test result and test file for your reference.
Hi nattran ,
You could set the highlight in conditional formatting with a color measure( [Measure] is the value in matrix ).
FormatMeasure =
VAR a =
MAXX ( ALLEXCEPT ( 'Table', 'Table'[Column1] ), [Measure] )
RETURN
IF ( [Measure] = a, "yellow" )
Here is my test result and test file for your reference.