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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Conditional with icons

Good morning community: I have the following problem:

Make a matrix table and you would need to add conditional icons to it. The problem is that each icon must indicate whether the amount in percentage of the measure is greater or less than the previous one. It is a Matrix that shows a percentage measure for each week, and the idea is that if the following week the percentage increases, it shows an arrow icon upwards, otherwise downwards, and so on. Illustrative image attached.

Can it be achieved? Thanks!

Condicional.jpg

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

You can try formula like the following:

calculated column:

Rank_semana = RANKX('Table','Table'[semana],,DESC,Dense)

measure columns:

following week =
CALCULATE (
    [Uso_cel],
    FILTER (
        ALL ( 'Table' ),
        'Table'[Rank_semana]
            = SELECTEDVALUE ( 'Table'[Rank_semana] ) - 1
            && 'Table'[prov_nombre] = SELECTEDVALUE ( 'Table'[prov_nombre] )
    )
)
indicate =
IF (
    ISBLANK ( [following week] ),
    BLANK (),
    IF ( [Uso_cel] < [following week], UNICHAR ( 9650 ), UNICHAR ( 9660 ) )
)

56.png

 

Hope this can work for you.

 

Best Regards,
Community Support Team _ Eason

 

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

You can try formula like the following:

calculated column:

Rank_semana = RANKX('Table','Table'[semana],,DESC,Dense)

measure columns:

following week =
CALCULATE (
    [Uso_cel],
    FILTER (
        ALL ( 'Table' ),
        'Table'[Rank_semana]
            = SELECTEDVALUE ( 'Table'[Rank_semana] ) - 1
            && 'Table'[prov_nombre] = SELECTEDVALUE ( 'Table'[prov_nombre] )
    )
)
indicate =
IF (
    ISBLANK ( [following week] ),
    BLANK (),
    IF ( [Uso_cel] < [following week], UNICHAR ( 9650 ), UNICHAR ( 9660 ) )
)

56.png

 

Hope this can work for you.

 

Best Regards,
Community Support Team _ Eason

 

amitchandak
Super User
Super User

@Anonymous , You need to create a YOY measure and that you can use in icon formatting under conditional formatting

 

measures like

 

YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))
Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))

 

This year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR('Date'[Date]),"12/31"))
Last year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR(dateadd('Date'[Date],-1,Year)),"12/31"))

 

//Only year vs Year, not a level below

This Year = CALCULATE(sum('Table'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))
Last Year = CALCULATE(sum('Table'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))

 

diff = [This Year]-[Last Year ]
diff % = divide([This Year]-[Last Year ],[Last Year ]) //YOY

 

Last one can be done without date table

 

refer if needed

https://exceleratorbi.com.au/conditional-formatting-using-icons-in-power-bi/
https://community.powerbi.com/t5/Desktop/FORMAT-icon-set-for-use-in-a-data-card/td-p/811692

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.