Forum Discussion

fbittencourt's avatar
fbittencourt
Icon for Helper IV rankHelper IV
1 year ago
Solved

Combine conditional formating ( icone + color)

Hi guys !! I need to combine the value color change with the icon besides on a card.    I have tried this, but is not working.       // ABS(KP) >= 0 && ABS(KP) <= 0.0549, "#24B64A" & "🟢",  ...
  • v-ssriganesh's avatar
    1 year ago

    Hi fbittencourt,
    Thank you for reaching out to the Microsoft Fabric Forum Community.

    I’ve reproduced your scenario in Power BI Desktop using your icon + color formatting logic, and I was able to achieve the expected output combining both the KPI value and the icon with conditional color formatting in a single card.

    For your reference:

    • I used the new card visual.
    • The KPI icon and value were combined using a DAX measure.
    • Conditional formatting was applied using a separate measure through the fx (Field value) option in the visual's Color formatting pane.

    I’ve attached a .pbix file to help you review.

    If this information is helpful, please “Accept it as a solution” and give a "kudos" to assist other community members in resolving similar issues more efficiently.
    Thank you.