Forum Discussion
Different collor compare values
- 2 years ago
Please use the following measure:
CF =
IF (
NOT CONTAINSROW (
VALUES ( table2[version number] ),
SELECTEDVALUE ( table1[version number] )
),
"red"
)
stefan321
Suppose you have your Version numbers from Table one on a table visual, Create the following measure, add conditional formatting > choose background, pick Field value as the Format Style and pick this measure.
CF = IF( NOT CONTAINSROW( values(table2[version number] ), selectedvalue( table2[version number] ) , "red" )
Hi
Thanks for your quick feedback!
unfortunately i get an error:
"Too few arguments were passed to the IF function. The minimum argument count for the function is 2"
Could you please check your code? think something is missing but i am not able to find it.
- Fowmy2 years agoSuper User
Please use the following measure:
CF =
IF (
NOT CONTAINSROW (
VALUES ( table2[version number] ),
SELECTEDVALUE ( table1[version number] )
),
"red"
)