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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
garynorcrossmmc
Advocate IV
Advocate IV

Change Custom Icon Size for Conditional Formatting

Hi all, is there any way to customize the icon size for conditional formatting?  I'm using this measure for to select colored icons for conditional formatting:

 

Icon Conditional Formatting =
SWITCH (
TRUE(),
[vs Last year] <= -0.02, "https://i.imgur.com/x5Q9o12.png",
and([vs Last year]>-0.02,[vs Last year]<0.02), "https://i.imgur.com/9qLo7ww.png",
[vs Last year] >= 0.02, "https://i.imgur.com/6WMjLR8.png"
)
 
However, the icon sizes are huge - I'd like to change this to 8x8 (pixels), the original size of these images.  Is this possible through DAX code or some other way?
Capture.PNG
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @garynorcrossmmc 

I have a test by your meausre, your custom icon shows in the size like default icon.

If the icon in url couldn't meet your requirement, you can try to use the default icon in conditional formatting.

1.png

And you can refer to this video for adding custom icons for conditional formatting.

Video: Add Custom Icons for Conditional Formatting in Power BI Desktop

The web you need to get the image url: base64-image

Your demand is a good idea, while it is not supported to implement in Power BI currently.
You can vote up this idea for this function:
Let us increase the size of Icons when we conditional format

Or you can submit a new idea to improve the Power BI.
It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.

 

Best Regards,

Rico Zhou

 

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

2 REPLIES 2
Anonymous
Not applicable

Hi @garynorcrossmmc 

I have a test by your meausre, your custom icon shows in the size like default icon.

If the icon in url couldn't meet your requirement, you can try to use the default icon in conditional formatting.

1.png

And you can refer to this video for adding custom icons for conditional formatting.

Video: Add Custom Icons for Conditional Formatting in Power BI Desktop

The web you need to get the image url: base64-image

Your demand is a good idea, while it is not supported to implement in Power BI currently.
You can vote up this idea for this function:
Let us increase the size of Icons when we conditional format

Or you can submit a new idea to improve the Power BI.
It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

lbendlin
Super User
Super User

Use SVG code if you don't like the icon size. Using external resources like in your example is very wasteful.  Nowhere in the Power BI documentation does it mention URL caching, so you do potentially hit those URLs thousands of times when you interact with your report visual.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.