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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.