Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

icon/condition format in card

how to create a icon in card visual to indicate the change of a data value?
  • amitchandak's avatar
    4 years ago

    Anonymous , Create a unichar measure for arrow

    /////Arrow
    Arrow =
    var _change =[Net Sales YTD]-[Net Sales LYTD]
    return
    SWITCH (
    TRUE(),
    _change > 0, UNICHAR(9650),
    _change = 0, UNICHAR(9654),
    _change < 0, UNICHAR(9660)
    )

    and you can do conditional formatting using field value option
    /////Arrow Color
    Arrow color =
    var _change =[Net Sales YTD]-[Net Sales LYTD]
    return
    SWITCH (
    TRUE(),
    _change > 0, "green",
    _change = 0, "blue",
    _change < 0, "red"
    )

     

    UNICHAR - Tool for Custom Icon Formatting: https://www.youtube.com/watch?v=veCtfP8IhbI&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=50