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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
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.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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