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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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 Specialist
Solution Specialist

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

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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