Forum Discussion

Ania26's avatar
Ania26
Helper IV
1 year ago
Solved

Color in Dax

Nr of Failed Tests () = IF([Nr of Failed Tests]=0,"",IF([Nr of Failed Tests]>0,"( "&[Nr of Tests]&" , "&[Nr of Failed Tests]&" )"))   Hello, how make this part in black color &[Nr of Tests]& and t...
  • AlexTheGreat's avatar
    1 year ago

    Hi,

    You could use additional formatting.
    with 2 rules applied:
    measure_count_failed <= 0 --> apply color black
    measure_count_failed > 0 --> apply color orange

    You can also create a measure but in this case you only need a measure that counts the failed cases.

    Hope it helps!