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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Anonymous
Not applicable

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.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

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.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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