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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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
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...

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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