Forum Discussion
conditionaly formating with second value
- 2 years ago
Hi patrick1192
I'm not sure if this will work in direct query but try:
IF ( CALCULATE ( MIN ( data[failed] ), FILTER ( ALLEXCEPT ( data, data[physicalid] ), data[model] = "main-element" ) ) = 1, "color" )
Hi patrick1192
I'm not sure if this will work in direct query but try:
IF (
CALCULATE (
MIN ( data[failed] ),
FILTER ( ALLEXCEPT ( data, data[physicalid] ), data[model] = "main-element" )
) = 1,
"color"
)
- patrick11922 years agoFrequent Visitor
Hi danextian ,
your code is working with a table visual (even with directquery!) Perfect!
When i use a matrix visual, the code is only working when i take the phsyicalID in a column.
Is there any chance to get this code working in a matrix when the physicalID is also a value ?
Thanks for your Help!
- danextian2 years agoSuper User
The measure is evaluated for each cell in the matrix, depending on the row and column headers. Not using the physicaID as a row or column dimension will return an unexpected result. Try using that formul as a calculated column instead. If it is not supported in DQ, your other option is to create such in column in the source itself.