Forum Discussion

clem312's avatar
clem312
Resolver I
4 years ago
Solved

Function Background color

Hi,   I want to make a function for the background color of cells in a matrix. Data are like this I am trying to put the background color of Q73_lib cells with Q72_correspondance.Q72_lib_co...
  • clem312's avatar
    4 years ago

    Hi amitchandak 

     

    Thank you for your answer.

    It's hard to put it in the matrix.

    In line, I have a series to rank my measure :

    RankT = GENERATESERIES(1,10)
    In column, the brands
    And two values :
    Q73_Measure category = MAXX(FILTER(ADDCOLUMNS(SUMMARIZE(Q73, Q73[marques.make_lib], Q73[Q73_lib]), "line1", Q73[_%_Q73], "line2", [Q73_Rank], "line3", Q73[Q73_Make_order]), [line2]=MAX(RankT[Value])), Q73[Q73_lib])
    and
    Q73_Measure percent = MAXX(FILTER(ADDCOLUMNS(SUMMARIZE(Q73, Q73[marques.make_lib], Q73[Q73_lib]), "line1", Q73[_%_Q73], "line2", [Q73_Rank], "line3", Q73[Q73_Make_order]), [line2]=MAX(RankT[Value])), Q73[_%_Q73])


    Clement

  • v-xiaotang's avatar
    4 years ago

    Hi clem312 

    In your measure, it performs conditional formatting based on Q72_correspondance.Q72_id_color, but this column is not added in your matrix. So if this column can't be added to the matrix, you should look for other column to replace it. Otherwise, it is difficult to perform conditional formatting.

    For more details about conditional formatting, you can review this article,

    https://www.sqlshack.com/conditional-formatting-in-power-bi-2/

     

     

     

    Best Regards,

    Community Support Team _Tang

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