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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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!:
Mastering Power BI 2nd Edition

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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