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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
CHBIV
Regular Visitor

Pull Column Values by Count

Hello Power Bi Community. I am new and excited to be learning this amazing software.

 

Question: I have a column like below:

 

AECOsim

0

0

0

1

3

0

4

2

3

4

2

1

1

 

I want to be able to pull how many occurences happen with each value, like this:

 

0 = 4

1 = 3

2 = 2

3 = 2

4 = 2

 

and so on. I have about 30 of these types of columns to do this to.  Any and all help is appreciated!

 

Thank you

 

Smiley Very Happy

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@CHBIV

 

Hi. please follow the image. 

 

UseTablewithCount.gif




Lima - Peru

View solution in original post

4 REPLIES 4
anupampandey
Helper III
Helper III

Hi @CHBIV,

 

I have created a sample table based on your example and I have created a measure COUNT(Table1[AECOsim]).

Plot this on matrix, it gives exactly the same output which you required.

 

I hope it helps you. If yes please accept it as solution.

 

Cheers,

Anupam

 

With us new people (comment in general) it would be nice to show screen shots of workflow, or link to video showing process. I am a very visually driven fellow, and just seeing this code, I am not sure what to or how to apply it.

 

Thank You!

Vvelarde
Community Champion
Community Champion

@CHBIV

 

Hi. please follow the image. 

 

UseTablewithCount.gif




Lima - Peru

Thank you ever so much!!! exactly what i am looking for!!!!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.