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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
A9kurs
Frequent Visitor

Trying to show count of top 10 names from multiple columns

Hi Everyone,

I need your help , I am trying to show Top 10 names in power bi Vis, Names are in six column and i want to show which top 10 names appeared most in these 6 columns.   

Name 1Name 2Name 3Name 4Name 5Name 6
AEBAEJ
BCADAA
EABCBD
C ABVA
DDLKVA
M LKVA

These are Top names: 

A=10

B= 5

D= 4

C= 3

E= 3

 Appreciate your help. Thanks

 

Capture.PNG

2 REPLIES 2
marcelsmaglhaes
Super User
Super User

Hey @A9kurs !

 

You can merge the six columns into a single column using the "Unpivot Columns" feature. This will create a new column with the column names as a separate column, allowing you to easily count the number of occurrences of each name.

 

marcelsmaglhaes_0-1676485721096.png

 

marcelsmaglhaes_1-1676485744624.png

 

Best regards, 
Marcel


Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!
Imagem de fundo



Hi Marcel,

 

Thanks for help,

 

I am trying to show Distinct names and there count of null.  If i do unpivot it gives distinct name but count i need is for next column of name. As shown in below example.

 

Name 1Count Name 1Name 2Count Name 2Name 3Count Name 3 
Abc02/03/21DefnullFghnull 
Def02/03/21FghnullAbcnull 
AbcnullXyzNullAbcnull 
defnullAbc02/05/21Fgh02/05/21 
GhiNullDef02/05/21GhINull 

 

I am trying to show names and there count of null

Abc    3

Def     2

GHI    2

XYZ    1

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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