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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors