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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Laulau
Regular Visitor

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

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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