Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 according to the measure value each month
note that the first value in the matrix is blank and i want the formating to start from value 0
i have created this measure and used in the conditional formating
Solved! Go to Solution.
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] ) ) )
)
)
I 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] ) ) ) )
)
)
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.
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] ) ) )
)
)
now its working thank you
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
21 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |