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

Count the number of times a value appears in a table

I've read many posts for similar questions, but none apply to my scenario...

 

I have an Employee Table and a Project Team table that are connected by the Employee ID number.

 

I want to show how many projects each employee has been on, by counting the number of times each ID appears in the table.

 

Here is a mock-up of my Project Team table:

 

Sample Table for PBI Forum.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

Here is what my outpout would look like:

 

Sample Result for PBI Forum.JPG

 

Thanks in advance.

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Rob_BTG ,

 

Believe that the fastest wau would be to unpivot your Project Team Table and stay with only 3 columns Project ID, Team Member, Employee ID then just make a simple count of the number of ID.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @Rob_BTG ,

 

Believe that the fastest wau would be to unpivot your Project Team Table and stay with only 3 columns Project ID, Team Member, Employee ID then just make a simple count of the number of ID.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



MFelix,

 

Thanks, that would be the simplest way.  I was making it harder than it needed to be.

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