Forum Discussion

Sailesh's avatar
Sailesh
New Member
3 years ago
Solved

Power BI Icon Names

Hello

 

I am trying to conditionally format a measure to display "Red Up Arrow" icon when another measure is >0 and "Green Down Arrow" when that measure is <0 using DAX SWITCH function.

 

Below is the measure CLCAFPY which is meant to display the "Red Up Arrow" when measure [YvPY] >0 and "Green Down Arrow" when measure [YvPY] <0

 

 I have used icon name "ColoredArrowUp" and "ColoredArrowDown" in DAX but it is displayed with a Red Down Arrow and Green Up Arrow. Does anyone know the icon name to use for "Red Up Arrow" and "Green Down Arrow" in the DAX code?

 

CLCAFPY = SWITCH(
TRUE(),
[YvPY]<0, "ColoredArrowDown",
[YvPY]>=0, "ColoredArrowUp")
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Sailesh ,

    Please try below steps:

    1. below is my test table

    Table:

    2. create a measure with below dax formula

    Measure =
    VAR _column1 =
        SELECTEDVALUE ( 'Table'[Column1] )
    RETURN
        SWITCH (
            TRUE (),
            _column1 >= 0,
                "https://www.kindpng.com/picc/m/9-96144_up-arrow-clipart-red-arrow-pointing-up-hd.png",
            _column1 < 0,
                "https://www.pngkey.com/png/detail/11-114939_green-arrow-png-clipart-green-down-arrow-png.png"
        )
    

    3. add a table visual with field and set conditional format

    Please refer the attached .pbix file.

     

    Best regards,
    Community Support Team_Binbin Yu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Sailesh ,

    Please try below steps:

    1. below is my test table

    Table:

    2. create a measure with below dax formula

    Measure =
    VAR _column1 =
        SELECTEDVALUE ( 'Table'[Column1] )
    RETURN
        SWITCH (
            TRUE (),
            _column1 >= 0,
                "https://www.kindpng.com/picc/m/9-96144_up-arrow-clipart-red-arrow-pointing-up-hd.png",
            _column1 < 0,
                "https://www.pngkey.com/png/detail/11-114939_green-arrow-png-clipart-green-down-arrow-png.png"
        )
    

    3. add a table visual with field and set conditional format

    Please refer the attached .pbix file.

     

    Best regards,
    Community Support Team_Binbin Yu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Thanks. I have looked at this blog but it does not contain the icon name for Red Up Arrow and Green Down Arrow. The ColoredArrowUp icon name in the list displays Green Arrow Up but I am looking for icon name for Green Arrow Down. Similarly, ColoredArrowDown icon name displays Red Arrow Down but I am looking for icon name for Red Arrow Up