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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Help needed on conditional icons

I would like to display an arrow icon indicating changes in the amount by comparing it with the data from the previous month. I have no idea where I might have made a mistake that prevented the icon from appearing as expected.

 

Bottom is my Dax function:

ArrowIcon =
VAR currentmonth = SELECTEDVALUE('Rolling Calender'[Start of Month])
VAR previousmth =
    CALCULATE(
        MAX('Rolling Calender'[Start of Month]),
        'Rolling Calender'[Start of Month] < currentmonth
    )

VAR currentAmount = [Total No Charge Amount]
VAR previousAmount =
    CALCULATE(
        [Total No Charge Amount],
        'Rolling Calender'[Start of Month] = previousmth
    )

RETURN
    IF (
        ISBLANK(previousAmount) || ISBLANK(currentAmount),
        BLANK(),
        IF (
            currentAmount > previousAmount,
            "↑",
            IF (
                currentAmount < previousAmount,
                "↓",
                "--"
            )
        )
    )
 
 
Here is my icon setup:

PaulineJW_1-1708684473841.png

 

This is a screenshot of my matrix. It doesn't display any icons even though the icon setup has been configured.

PaulineJW_0-1708684367120.png

 

This is the column i used in the matrix:

PaulineJW_2-1708684716000.png

 

Thanks in advance for your help 🙂

1 ACCEPTED SOLUTION
jolind1996
Resolver II
Resolver II

Hello Pauline,

Based on the information you provided, it seems that your DAX function for the ArrowIcon measure is correct. However, there are a few things you can check to troubleshoot the issue with the icons not appearing in your matrix visual:

  1. Make sure that the ArrowIcon measure is correctly added to the "Values" section of the matrix visual. You can do this by going to the "Values" section of the "Fields" pane and checking that the ArrowIcon measure is listed there.

  2. Check the formatting options for the matrix visual to make sure that the "Conditional formatting" option for the "Values" section is correctly set up. You can do this by selecting the matrix visual, going to the "Format" tab in the "Visualizations" pane, and expanding the "Conditional formatting" section. Make sure that the "Icon set" option is selected and that the rules for the icon set are correctly configured.

  3. Make sure that the data in your table is correctly formatted and that the values for the ArrowIcon measure are being calculated correctly. You can do this by checking the data view in Power BI and verifying that the values for the ArrowIcon measure are being calculated as expected.

Best regards,

Johannes

View solution in original post

1 REPLY 1
jolind1996
Resolver II
Resolver II

Hello Pauline,

Based on the information you provided, it seems that your DAX function for the ArrowIcon measure is correct. However, there are a few things you can check to troubleshoot the issue with the icons not appearing in your matrix visual:

  1. Make sure that the ArrowIcon measure is correctly added to the "Values" section of the matrix visual. You can do this by going to the "Values" section of the "Fields" pane and checking that the ArrowIcon measure is listed there.

  2. Check the formatting options for the matrix visual to make sure that the "Conditional formatting" option for the "Values" section is correctly set up. You can do this by selecting the matrix visual, going to the "Format" tab in the "Visualizations" pane, and expanding the "Conditional formatting" section. Make sure that the "Icon set" option is selected and that the rules for the icon set are correctly configured.

  3. Make sure that the data in your table is correctly formatted and that the values for the ArrowIcon measure are being calculated correctly. You can do this by checking the data view in Power BI and verifying that the values for the ArrowIcon measure are being calculated as expected.

Best regards,

Johannes

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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