Forum Discussion

hasnainrazaz's avatar
hasnainrazaz
New Member
1 year ago
Solved

Tooltip Customization (Stacked & Column Chart)

Hello,  I have a clustered column chart that displays the number of employees against different employment tenure brackets. I have a legend on the same graph to show the bifurcation against depart...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi hasnainrazaz ,

     

    Try getting the current legend, then returning the corresponding color based on the legend and applying it to the conditional format of tooltip's column chart.

    Measure = 
    VAR __product= SELECTEDVALUE('financials'[Product])
    VAR __color =
    SWITCH(
        __product,
        "Amarilla","#845ec2",
        "Carretera","#d65db1",
        "Montana","#ff6f91",
        "Paseo","#ff9671",
        "Velo","#ffc75f",
        "VTT","#f9f871"
    )
    RETURN
        __color

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum