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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
bvy
Helper V
Helper V

Want to color code points that CLUSTER in a Scatter visual

Very simple data set -- Category and (X, Y) coordinates plotted on a Scatter. I want to color code points that cluster. The only way I can think to do this is to count the number of nearby points (by radius of 5 units, for example) -- if a point has 0 neighbors, it gets one color; 1-3 nieghbors, it gets a different color, etc. It should be subject to the filter selection of course (Category in this case). Is there a measure or some other clever way to accomplish this? Looking for ideas. Thank you. 

 

bvy_3-1598639283893.png

 

bvy_2-1598639203008.png

 

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

Hi @bvy ,

 

If you want to implement it in a Scatter visual, you could watch this: Cluster Analysis Visualization Techniques For Power BI - Power BI Review  to have a try.

If you could use custom visual, @mahoneypat  is right, the visual of Clustering is a good choice. You could reference the blog and video to learn more about it.

https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-november-feature-summary/#clustering

https://www.youtube.com/watch?v=NjdZjozKboA

 

 

Best Regards,
Xue Ding
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

4 REPLIES 4
v-xuding-msft
Community Support
Community Support

Hi @bvy ,

 

If you want to implement it in a Scatter visual, you could watch this: Cluster Analysis Visualization Techniques For Power BI - Power BI Review  to have a try.

If you could use custom visual, @mahoneypat  is right, the visual of Clustering is a good choice. You could reference the blog and video to learn more about it.

https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-november-feature-summary/#clustering

https://www.youtube.com/watch?v=NjdZjozKboA

 

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mahoneypat
Microsoft Employee
Microsoft Employee

Please check out the marketplace visuals in AppSource (free).  Click the ellipsis in the Visuals area and choose "Get More Visuals".  Search for Cluster when there to see these options.

 

mahoneypat_0-1598661586096.png

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

HI @bvy 

Use the legend section to color code.

pranit828_0-1598639429110.png

 

@Anonymous How does that apply to points that cluster? 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors