cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sailesh
New Member

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")
1 ACCEPTED SOLUTION
v-binbinyu-msft
Community Support
Community Support

Hi @Sailesh ,

Please try below steps:

1. below is my test table

Table:

vbinbinyumsft_1-1679292725214.png

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

vbinbinyumsft_2-1679292798673.png

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.

View solution in original post

3 REPLIES 3
v-binbinyu-msft
Community Support
Community Support

Hi @Sailesh ,

Please try below steps:

1. below is my test table

Table:

vbinbinyumsft_1-1679292725214.png

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

vbinbinyumsft_2-1679292798673.png

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.

Sailesh
New Member

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

amitchandak
Super User
Super User

Helpful resources

Announcements
Exciting changes

Power BI Community Changes

Check out the changes to the Power BI Community announced at Build.

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Kudo Data Story carousel

Data Stories Gallery

Visit our Data Stories Gallery and give kudos to your favorite Data Stories.

Top Solution Authors