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
Ouhla
Frequent Visitor

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
Solution Supplier
Solution Supplier

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
Solution Supplier
Solution Supplier

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.