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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to create a measure who count by category in Dax ?

Hey everyone, I have my table one, who look like this :

LocationXY

Location_1

AB
Location_1BC
Location_2AC
Location_4CA
.........

I would like to create new column in another table with measure who count of each notes for X and Y By category (which is Location), how can I do that ?

 

The expected output in the other table:

 

LocationRankCount_XCount_Y

Location_1

A5610
Location_2A3816
Location_3A2363
Location_4A1265
Location_1B7526
Location_2B8337
Location_3B9474
Location_4B3573
Location_1C6415
Location_2C19464
Location_3C28525
Location_4C186241

(All numbers are here for example)


Thanks all for any help !

 
1 ACCEPTED SOLUTION
Bmejia
Super User
Super User

you can use this  measure to count

Count X = CALCULATE(COUNT(YourTable[YourColumn_X]))
 
or if you just add the column you want to add to your table/Matrix and right click and select count
Bmejia_0-1713562425321.png

 




View solution in original post

1 REPLY 1
Bmejia
Super User
Super User

you can use this  measure to count

Count X = CALCULATE(COUNT(YourTable[YourColumn_X]))
 
or if you just add the column you want to add to your table/Matrix and right click and select count
Bmejia_0-1713562425321.png

 




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors