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
Laulau
New Member

Conditionnal formating with bubble chart

Hi, 

I am trying to formatting a bubble chart and I need some help. 

I would formatting bubble's colors according to their values where bubbles size represent a sum of times, and i would color them following ranges of values, for example :

 0 to 10h : green

10h to 20h : yellow

20h + : red

But my problems comes. I would choose the values (0 to 10, 10 to 20 ...) thanks to an other datatable that specify thoses values.

 

So, If you have any advices that could help me, 

 

Thanks, 

Laulau

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

Hi @Laulau ,

 

You may create a claculated column to mark the sum value with color then add the color mark to Bubble Name field.

Here's my sample data and out put for your reference.

1.PNG2.PNG3.PNG4.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @Laulau ,

 

You may create a claculated column to mark the sum value with color then add the color mark to Bubble Name field.

Here's my sample data and out put for your reference.

1.PNG2.PNG3.PNG4.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Thanks for your both answers, problem solved !

amitchandak
Super User
Super User

@Laulau , You can use conditional formatting. Under data color use Rule and You hour Measure

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting

Or try creating a color measure like using if or switch

Color sales = if(Sum(Sales[Hours])<170,"yellow","red")
Color Year = if(FIRSTNONBLANK(Table[Year],2014) <=2016,"lightgreen",if(FIRSTNONBLANK(Table[Year],2014)>2018,"red","yellow"))

 

In conditional formatting use "Field" and then use this measure

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...

 

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.