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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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