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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
iago_salvadori1
Frequent Visitor

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

 

 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Kudoed Authors