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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
SMichels
New Member

Using Custom Shapes with Conditional Formatting for Color Fill

Hello! 

 

I am using a filled shape in a PowerBI report to indicate project status. The shape fill color is based on a status indicator being applied through data. Right now I am just using a generic circle, but that is kind of bland. 

 

I'd like to use something more evocative like a car, or boat, or whatever based on the project team. Is there a way to do that? 

 

Thank you for the help! I'm new-ish to Poewr BI but finding a lot of enjoyment in working with the tool! 

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

Hi @SMichels 

You can use Unicode codes to visualize various projects:

Here is my sample data:

vjialongymsft_0-1731655519201.png



Then try the following measure:

Measure = SWITCH(TRUE(),
SELECTEDVALUE('Table'[Category]) = "boat" , UNICHAR(128674),
SELECTEDVALUE('Table'[Category]) = "bus" , UNICHAR(128652),
SELECTEDVALUE('Table'[Category]) = "car" , UNICHAR(128663),
SELECTEDVALUE('Table'[Category]) = "train" , UNICHAR(128644)
)


Result:

vjialongymsft_1-1731655566350.png

Note that when using it, you need to convert hexadecimal to decimal

Emoji unicode characters for use on the web (timwhitlock.info)

 

 

 

 

 

 

 

Best Regards,

Jayleny

 

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
v-jialongy-msft
Community Support
Community Support

Hi @SMichels 

You can use Unicode codes to visualize various projects:

Here is my sample data:

vjialongymsft_0-1731655519201.png



Then try the following measure:

Measure = SWITCH(TRUE(),
SELECTEDVALUE('Table'[Category]) = "boat" , UNICHAR(128674),
SELECTEDVALUE('Table'[Category]) = "bus" , UNICHAR(128652),
SELECTEDVALUE('Table'[Category]) = "car" , UNICHAR(128663),
SELECTEDVALUE('Table'[Category]) = "train" , UNICHAR(128644)
)


Result:

vjialongymsft_1-1731655566350.png

Note that when using it, you need to convert hexadecimal to decimal

Emoji unicode characters for use on the web (timwhitlock.info)

 

 

 

 

 

 

 

Best Regards,

Jayleny

 

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

marcelsmaglhaes
Super User
Super User

Hey @SMichels ,

Welcome to Power BI, and it’s great to hear you’re enjoying it! 😊

Power BI doesn’t natively support dynamic shape changes, but you can try to use Custom Visuals from the Power BI marketplace or even replace the generic circle with custom images that dynamically change based on the project team or status. You will need prepare the images, include in your dataset a column with urls or binary data linking to the custom icons, and display that in a table, for example.

Try to check these posts to get inspiration: Solved: Adding icons/images to matrix - Microsoft Fabric Community
Solved: Dynamic Image Display - Microsoft Fabric Community


Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!



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!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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