Forum Discussion
lawada
Helper III
4 years agoconditional formating for measure inside a matrix
i have created a cohort with a matrix visual where : rows= month columns= difference between current month and previous month values= measure [total users] i want the color to change accordi...
- 4 years ago
I accidentally copied and pasted the MAX into the filter part.
See if this works:
total users formating = IF ( NOT ( ISBLANK ( MAX ( table[months_diff] ) ) ), CALCULATE ( RANKX ( ALLSELECTED ( table[months_diff] ), [total users] ), KEEPFILTERS ( NOT ( ISBLANK ( table[months_diff] ) ) ) ) )
AlexisOlson
Super User
4 years agoI think the problem is that 0 <> BLANK() evaluates as False.
See if this works any better:
total users formating =
IF (
NOT ( ISBLANK ( MAX ( table[months_diff] ) ) ),
CALCULATE (
RANKX ( ALLSELECTED ( table[months_diff] ), [total users] ),
KEEPFILTERS ( NOT ( ISBLANK ( MAX ( table[months_diff] ) ) ) )
)
)- lawada4 years ago
Helper III
im getting this error when using the measure
The True/False expression does not specify a column. Each True/False expressions used as a table filter expression must refer to exactly one column.
- AlexisOlson4 years ago
Super User
I accidentally copied and pasted the MAX into the filter part.
See if this works:
total users formating = IF ( NOT ( ISBLANK ( MAX ( table[months_diff] ) ) ), CALCULATE ( RANKX ( ALLSELECTED ( table[months_diff] ), [total users] ), KEEPFILTERS ( NOT ( ISBLANK ( table[months_diff] ) ) ) ) )- lawada4 years ago
Helper III
now its working thank you