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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.