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
Anonymous
Not applicable

Count number of values?????

Hello,

I have a List with 2000 different values. And I have a Table with 25 Columns. I need the total count of every single value in this table. How can i realize this? It would take too much time to do 2000 COUNTA funtions for every column.. Any ideas???

Thanks in advance

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

Are these 25 columns populated with the 2000 values? If so, you could get the expected result easily with Power Query. Steps are: Add an Index column to the table, right click on column header of the Index column and select Unpivot other columns. Select Value column, use Group by feature and select Count rows as operation. Then you will have what you want. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

3 REPLIES 3
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

Are these 25 columns populated with the 2000 values? If so, you could get the expected result easily with Power Query. Steps are: Add an Index column to the table, right click on column header of the Index column and select Unpivot other columns. Select Value column, use Group by feature and select Count rows as operation. Then you will have what you want. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

amitchandak
Super User
Super User

@Anonymous , You have two for 25 columns only ?

Like

 

Counta(Table, [Col1]+[Col2]+[Col3])

or

Counta(Table, [Col1]) +Counta(Table, [Col2])

 

or

countx(union(all(Table[Col1]),Counta(Table, [Col2]). Counta(Table, [Col3]) ) , [Col1] ) 

Anonymous
Not applicable

But I need to see the number of count for every value like:

ValueNumber of count
344412
78004

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.