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
jabirmoolur
New Member

Top10 with Count of rest of all as others

I’m creating a employees report and in that would like to show the top (10) nationalities and then have the rest of the nationalities show as “other”. ? I Can filter top10. But how can i summate rest of count others and show as 11th item?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jabirmoolur

 

Apparently it is not that simple to do this rank + other. I found this interesting article on this subject:https://www.oraylis.de/blog/show-top-n-and-rest-in-power-bi

 

Hope this can help. I try to recreate this example myself and it works for everything except the total for "Others" (should be 5 instead of 8). I think the problem is coming from the  "Var TopNumber":

IF ( HASONEVALUE ( 'TopN Filter'&SQUARE_BRACKETS_OPEN;TopN] )

Not sure what he means by "SQUARE_BRACKETS__OPEN" there...

 

You can download my example here

 

Cheers

 

 

 

 

View solution in original post

4 REPLIES 4
PattemManohar
Community Champion
Community Champion

@jabirmoolur Please post the sample data (copiable format please) and expected output to suggest any solution.





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Its simple Name-Nationality Mapping

I would like to see Top10 based on Nationality and 11th one should be Sum of rest of count whihc is not present in top10,
i.e after 10th item, i want to show rest of items as one item(Others)

NameNationality
Maria AndersGermany
Ana TrujilloMexico
Antonio MorenoMexico
Thomas HardyUK
Christina BerglundSweden
Hanna MoosGermany
Frédérique CiteauxFrance
Martín SommerSpain
Laurence LebihanFrance
Elizabeth LincolnCanada
Victoria AshworthUK
Patricio SimpsonArgentina
Francisco ChangMexico
Yang WangSwitzerland
Pedro AfonsoBrazil
Elizabeth BrownUK
Sven OttliebGermany
Janine LabruneFrance
Ann DevonUK
Roland MendelAustria
Aria CruzBrazil
Diego RoelSpain
Martine RancéFrance
Maria LarssonSweden
Peter FrankenGermany
Carine SchmittFrance
Paolo AccortiItaly
Lino RodriguezPortugal
Eduardo SaavedraSpain
José Pedro FreyreSpain
André FonsecaBrazil
Howard SnyderUSA
Manuel PereiraVenezuela
Mario PontesBrazil
Carlos HernándezVenezuela
Yoshi LatimerUSA
Patricia McKennaIreland
Helen BennettUK
Philip CramerGermany
Daniel ToniniFrance
Annette RouletFrance
Yoshi TannamuriCanada
John SteelUSA
Renate MessnerGermany
Jaime YorresUSA
Carlos GonzálezVenezuela
Felipe IzquierdoVenezuela
Fran WilsonUSA
Giovanni RovelliItaly
Catherine DeweyBelgium
Jean FresnièreCanada
Alexander FeuerGermany
Simon CrowtherUK
Yvonne MoncadaArgentina
Rene PhillipsUSA
Henriette PfalzheimGermany
Marie BertrandFrance
Guillermo FernándezMexico
Georg PippsAustria
Isabel de CastroPortugal
Bernardo BatistaBrazil
Lúcia CarvalhoBrazil
Horst KlossGermany
Sergio GutiérrezArgentina
Paula WilsonUSA
Maurizio MoroniItaly
Janete LimeiraBrazil
Michael HolzSwitzerland
Alejandra CaminoSpain
Jonas BergulfsenNorway
Jose PavarottiUSA
Hari KumarUK
Jytte PetersenDenmark
Dominique PerrierFrance
Art BraunschweigerUSA
Pascale CartrainBelgium
Liz NixonUSA
Liu WongUSA
Karin JosephsGermany
Miguel Angel PaolinoMexico
Anabela DominguesBrazil
Helvetius NagyUSA
Palle IbsenDenmark
Mary SaveleyFrance
Paul HenriotFrance
Rita MüllerGermany
Pirkko KoskitaloFinland
Paula ParenteBrazil
Karl JablonskiUSA
Matti KarttunenFinland
Zbyszek PiestrzeniewiczPoland

 

i.e below chart should show 11th item as others after canada (Which is sum of other countries whihc is not present in top 10)

Capture.JPG

Anonymous
Not applicable

Hi @jabirmoolur

 

Apparently it is not that simple to do this rank + other. I found this interesting article on this subject:https://www.oraylis.de/blog/show-top-n-and-rest-in-power-bi

 

Hope this can help. I try to recreate this example myself and it works for everything except the total for "Others" (should be 5 instead of 8). I think the problem is coming from the  "Var TopNumber":

IF ( HASONEVALUE ( 'TopN Filter'&SQUARE_BRACKETS_OPEN;TopN] )

Not sure what he means by "SQUARE_BRACKETS__OPEN" there...

 

You can download my example here

 

Cheers

 

 

 

 

@Anonymous,

Thanks a lot for sharing, Now i am in a phase to convert it into sql direct query. Some functions like unions not supported

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.