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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
paulemmanuel
Frequent Visitor

Count number of person per Id

Dear community


I tried to search in the forum but didn't find anything helping


Here is my problem
I have a table which gives, per Id (which is a project Id) who are the persons involved in it. 
For instance, in below table, there are 2 persons per Id, except for the last one. There are 2 engineers. 

paulemmanuel_4-1663756247652.png

 

 

I would like a measure that give the total number of persons per Id in order to have something like

paulemmanuel_2-1663755994855.png

 

But when I filter on a specific Id Ingeneer, it need to keep the same value

paulemmanuel_5-1663756274939.png

In this example, IdEngineer number 3310 in involved in only one project. But there are 3 persons in total on the same project
I need it as a measure because this value will be used for other calculations. 

 

I hope I am clear enough

Thanks in advance

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Try

Num people =
CALCULATE ( COUNTROWS ( 'Table' ), REMOVEFILTERS ( 'Table'[Engineer ID] ) )

View solution in original post

2 REPLIES 2
paulemmanuel
Frequent Visitor

That simple? 

Seems working
Thanks

johnt75
Super User
Super User

Try

Num people =
CALCULATE ( COUNTROWS ( 'Table' ), REMOVEFILTERS ( 'Table'[Engineer ID] ) )

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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