Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.