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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Nie
Helper I
Helper I

Tabulating Count of Values

I have 2 columns A and B, that is part of a table with multiple other columns.  For example:

Column AColumn BColumn C
Column D
2A......
4B  
4C  
4A  
4B  
1B  
5C  
3A  
3A  

 

Column A is a count of the occurences in Column B. How do I go about consolidating the total count of each unique value in Column B such that I end up with:

 

A12
B9
C9

 

My primary objective is to display a histogram of the unique values in Column B.

 

1 ACCEPTED SOLUTION
tackytechtom
Super User
Super User

Hi @Nie ,

 

Couldn't you just be doing a SUM ( Table[Column A] ) ?

tomfox_0-1657622635630.png

Here the DAX measure:

SumNumbersMeasure = SUM ( TableAB[Column A] )

 

Let me know if this helps 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

2 REPLIES 2
tackytechtom
Super User
Super User

Hi @Nie ,

 

Couldn't you just be doing a SUM ( Table[Column A] ) ?

tomfox_0-1657622635630.png

Here the DAX measure:

SumNumbersMeasure = SUM ( TableAB[Column A] )

 

Let me know if this helps 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Thank you. Initially, I kept getting a single aggregate, and consequently a single bar. Your graph helped me realised I need to also slice the measure using the unique values in Column B in my histogram. Because the unique values in my Column B have multiple occurences, I somehow assumed simply summing couldn't work and I would need some special calculation. Thanks for clarifying.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Fabric Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors