Skip to main content
100%

KMeans clustering call in DAX Power BI desktop 3D

✓ Published0🌍 Public
HHugoberry
Last edited Jun 27, 2017
Created on Jun 27, 2017

This example demonstrates a 3D KMeans clustering visualization built directly in DAX for Power BI, using the Iris dataset’s numeric columns (Column6, Column7, Column8). It shows how raw table columns are summarized and then passed into the custom `KMeansClustering` DAX function, which assigns each data point to a cluster and returns a cluster ID alongside the original attributes. The code explicitly constructs a DAX query with `SUMMARIZECOLUMNS` and `SELECTCOLUMNS` to shape the data, then calls `KMeansClustering` with parameter lists defining attribute roles and output columns. The rendering approach is not visible here, but the focus is on the algorithmic clustering step within Power BI’s DAX engine.

AI-generated description

Similar vizzes