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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
GuillaumePower
Frequent Visitor

How create class inside a column

Hello, i would like create class inside a column, to sum some product  by  this class, for example create a class all the 10 items from my column and give it a number or  letter.

 

Thanks in advance

 

class with letter for each group  of 3 numbers

 

 

1A
2A
3A
4B
5B
6B
7C
8C
9C
10D
11D
12D
13E
14E
15E
16F
17F
18F
19G
20G
21G
1 ACCEPTED SOLUTION

Interesting. That function is not listed in the official documentation

lbendlin_1-1709348526757.png

but when you spell it out it will appear

 

lbendlin_0-1709348485539.png

 

The inofficial documentation is equally vague SAMPLEAXISWITHLOCALMINMAX – DAX Guide

This article makes a reference that may help more  Chris Webb's BI Blog: DAX Machine Learning Functionality Used By The Key Influencers Visual In Power...

 

View solution in original post

3 REPLIES 3
GuillaumePower
Frequent Visitor

In fact,  I  want to divide in some groups a table without using an expression like a switch (A :if >10;B if > 20 and so on).

Simply create 3 class in a table with the same number of elements in each class.

I think that the function SAMPLEAXISWITHLOCALMINMAX could help me, but I have not found the right way to use it. Is it more clear ?

Interesting. That function is not listed in the official documentation

lbendlin_1-1709348526757.png

but when you spell it out it will appear

 

lbendlin_0-1709348485539.png

 

The inofficial documentation is equally vague SAMPLEAXISWITHLOCALMINMAX – DAX Guide

This article makes a reference that may help more  Chris Webb's BI Blog: DAX Machine Learning Functionality Used By The Key Influencers Visual In Power...

 

lbendlin
Super User
Super User

Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors