Skip to main content
100%

A worked example of using the undocumented DAX function KMeansClustering

✓ Published0🌍 Public
HHugoberry
Last edited Jan 18, 2024
Created on Jan 18, 2024

This example demonstrates how to cluster a set of labeled numeric values using the undocumented DAX function `KMeansClustering`, which partitions the sample data into groups based on their attribute values. The visualization shows the resulting cluster assignments for each item, with the function called directly in a DAX query. The code supplies a table of letter-value pairs, specifies the column mappings for the attribute and item labels, and requests cluster IDs as output. The clustering runs with a parameter of -1, indicating automatic determination of the number of clusters, and the result appears as a table of items paired with their assigned cluster identifiers.

AI-generated description

Similar vizzes