Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Measure or Conditional formatting?

Hey All, I have this type of a matrix in my PowerBI and I would like to find easily double, triple or more values in one row... SKU type1 type2 type3 type4 type5 TOTAL a 1   1     ...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi Anonymous ,

    I tried to use measure to solve your problem, since there is no option for conditional formatting for Rows in the matrix, I tried to make a color change to value, trying to achieve the same result, I was traversing it with COUNTAX, calculating whether it is unitary or not under the level of each of your SKU's, then assigning the color, and then finally using this measure in the formatting condition.

     

    Measure = 
    VAR A=
    COUNTAX(
        FILTER(ALL('Table'),
        'Table'[SKU]=MAX('Table'[SKU])),
        'Table'[Value])
    RETURN
    IF(
        A>1,
        "Red",
        "Green")

     

     

    I hope my thoughts have solved your problem, if you have any further questions, you can always contact me and I will get back to you as soon as I get the message!

    Hope it helps!

     

    Best regards,
    Community Support Team_ Tom Shen

     

    If this post helps then please consider Accept it as the solution to help the other members find it more quickly.