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

Clustering with Power BI

Hello

 

I have data fields like:

Gender, Height, Weight, Disease

with values like:

M/F, 110-220cm, 40-250kg, Y/N

 

How can I identify distinct groups of the above and their probability to have Disease=Y/N, i.e. perform clustering?

 

I am looking to identify any possible combinations e.g. Weight=120-150kg and Gender=F and Height=150-160cm, can have 80% probability for Disease=Y etc, in addition to single variables i.e. Gender=F alone having 20% probability of Disease=Y.

 

Also, being able to choose multiple outputs would also be good and of course various types of variables/outputs i.e. numerical, binary, independent or not etc.

 

Thanks!

5 REPLIES 5
Anonymous
Not applicable

Thanks all but I am talking about the statistical machine learning modelling called clustering rather than simply grouping.

v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

You could create measure like the below :

test = CALCULATE(COUNTROWS('Table'),ALLSELECTED('Table'),'Table'[Disease]="Y")

Then create visual :

vluwangmsft_0-1647589177650.png

You can choose the range you want to get the results you want by adjusting according to the slicer.

 

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

KerKol
Power Participant
Power Participant

Ben's blog has a piece on clustering:

Clustering in Power BI using R - Ben's Blog (datakuity.com)





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




amitchandak
Super User
Super User

@Anonymous , if all these are columns in same table, you can switch true() and create a new column

 

Swich( True() ,

[Weight]="120-150kg"  && [Gender]="F" && [Height]="150-160cm" , "Y"

//Or you can >= and <= [Height]>=150 && [Height] <=160

// Add others  ,

"N") //else value

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

@Anonymous , if all these are columns in same table, you can switch true() and create a new column

 

Swich( True() ,

[Weight]="120-150kg"  && [Gender]="F" && [Height]="150-160cm" , "Y"

//Or you can >= and <= [Height]>=150 && [Height] <=160

// Add others  ,

"N") //else value

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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