The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
I would like a measure that give the total number of persons per Id in order to have something like
But when I filter on a specific Id Ingeneer, it need to keep the same value
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
Solved! Go to Solution.
Try
Num people =
CALCULATE ( COUNTROWS ( 'Table' ), REMOVEFILTERS ( 'Table'[Engineer ID] ) )
That simple?
Seems working
Thanks
Try
Num people =
CALCULATE ( COUNTROWS ( 'Table' ), REMOVEFILTERS ( 'Table'[Engineer ID] ) )
User | Count |
---|---|
13 | |
8 | |
8 | |
7 | |
5 |
User | Count |
---|---|
21 | |
15 | |
15 | |
10 | |
7 |