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
skourtip
Frequent Visitor

Group list of names by percentage

Hi to all i have this list of names sorted by total and i want to make 3 groups big, medium, low. The first group (big) i want to have first 20% of the names the second(medium) the next 60% and third(low) the rest 20% of the names is this possible?

 

NAMESTotal
name1994
name2144
name3116
name478
name532
name612
name75
name83
name93
name10  2
name11  1
name121
name131
3 REPLIES 3
skourtip
Frequent Visitor

Is it possible to have three different numbers?

Greg_Deckler
Super User
Super User

@skourtip Maybe try 2 columns:

Rank = RANKX('Table2',[Total],,ASC)


Category = 
    VAR __Max = MAX('Table2'[Rank])
    VAR __Rank = [Rank]
    VAR __Percent = DIVIDE(__Rank,__Max,0)
RETURN
    SWITCH(TRUE(),
        __Percent >= .8,"Big",
        __Percent <= .2,"Low",
        "Medium")

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

I think its super thank yoy Greg one more question, if i want to change the percentages? i see number only in big and low, how about medium?

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.