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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.