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 count values in Matrix table?

Hi

 

I have a data as below

 

Employee NameBusiness Unit
JackABC
JillCCD
SamABC
AndyDED
MarkCCD
JimDED
JerryABC

 

I am trying to create a matrix table and need below output

 

Business UnitTotal Employee
ABC3
CCD2
DED2

 

I dragged Business Unit into rows in the matrix table and dragged employee name into values and changed to count. However, the values are not matching exactly.

 

Can you please advise?

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Drag Business unit to the table viz and write this measure

Measure = counta(Data[Employee Name])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@Ashish_Mathur  It's working now. Thanks

Ashish_Mathur
Super User
Super User

Hi,

Drag Business unit to the table viz and write this measure

Measure = counta(Data[Employee Name])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

@Ashish_Mathur Thanks for your quick reply. I created the above measures. I dragged the business Unit into a row and measure it into a value in the matrix table. However, the values are not matching. 

 

I think I am doing it in a wrong way. Please let me know

Share the download link of your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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
Top Kudoed Authors