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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
forbi
Frequent Visitor

create a measure count of values in a column with dax

I have these columns and I want to create a measure to calculate the number of types

 

IDType
1A
2A
3B
4C
5D
6A
7 
8 


Results :

A = 3
B = 1
C= 1
D = 1
Blank =2

1 ACCEPTED SOLUTION
olgad
Super User
Super User

Not sure if I understood it correctly, but you can do this, it is the simplest.

olgad_0-1673563921764.png

or you could create a summarized table

olgad_1-1673564253595.png


Let me know if that what you need

 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

View solution in original post

3 REPLIES 3
forbi
Frequent Visitor

THANK YOU BUT THE COUNT DOES NOT TAKE INTO ACCOUNT EMPTY VALUES

olgad
Super User
Super User

Not sure if I understood it correctly, but you can do this, it is the simplest.

olgad_0-1673563921764.png

or you could create a summarized table

olgad_1-1673564253595.png


Let me know if that what you need

 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime
Anonymous
Not applicable

If the Type column is created from a measure. How to create a measure to count the value in Type column?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.