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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Set custom shape color

Hi everyone,

 

I have two tables in my model, one table (Table1) I have all data what I need and another table (Table2) I created for select all measures in one sheet:

iago_salvadori1_0-1624266883814.png

 

For example:

 

Vendas Reais = 
VAR Logic Test = 
COUNTROWS(DISTINCT(FILTER(ALLSELECTED('KPI´s'[KPI]),'KPI´s'[KPI] = " Vendas Reais"))) = 1 
RETURN 
IF(LogicTest, [Real_Sale],blank())

 

The measure [Real_sale] is calculated in Table1.

 

I additional my report a shape (Oval) but we want this color shape change according to the selection of my measures. It´s a possible?

 

Thank you.

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

It should be explained that the fill color of Oval cannot be changed dynamically.

There is a workaround for your reference:

Set the fill color to white and set it to transparent.

Vlianlmsft_0-1624416594891.png

Then in the background color, we add the measure and change the color dynamically.

Vlianlmsft_1-1624416690921.pngVlianlmsft_2-1624416704010.png

 

 

View solution in original post

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

It should be explained that the fill color of Oval cannot be changed dynamically.

There is a workaround for your reference:

Set the fill color to white and set it to transparent.

Vlianlmsft_0-1624416594891.png

Then in the background color, we add the measure and change the color dynamically.

Vlianlmsft_1-1624416690921.pngVlianlmsft_2-1624416704010.png

 

 

Anonymous
Not applicable

Hi @V-lianl-msft , thank you.

 

Your suggestion helped me a lot, but I have one more question.

 

If for example we select two measures in filter, I have to have two sharpes right? It´s possible build a workaorund for these case?

 

Thank you.

This is the way to solve the problem by creating a measure and using it as the conditional formatting of the color.

I'm not sure about your scenario and the expected results. Could you share a sample pbix and shown your expected results with pictures?

Helpful resources

Announcements
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.