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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
rainynights
Helper II
Helper II

Is it possible to do K-Means Clustering using more than 2 Variables?

I'm curious whether PBI's default clustering features accommodate clustering when looking at multiple variables, since realistically, there might be several variables to take into consideration.

 

I've only done this using Scatter Charts where there were two variables so far, so I'm not sure if the capability goes beyond that.

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey,

 

using DAX to create kmeans can be become "sporty", maybe you want to use an R script visual as mentioned here:

https://community.powerbi.com/t5/Desktop/k-mean-clustering-table-or-measure/td-p/559498

 

There is also a R script visual available as a custom visual.

 

Hopefully this provides some ideas.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

1 REPLY 1
TomMartens
Super User
Super User

Hey,

 

using DAX to create kmeans can be become "sporty", maybe you want to use an R script visual as mentioned here:

https://community.powerbi.com/t5/Desktop/k-mean-clustering-table-or-measure/td-p/559498

 

There is also a R script visual available as a custom visual.

 

Hopefully this provides some ideas.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors