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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 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.