Forum Discussion
Atanas_Atanasov
3 years agoHelper II
Counting People Based On Maximum Result
Dear All, I am really struggling with one calculation: Got the table from screenshot 1 where I have number of cases breakdown by person. In the rows I have a name and in the columns I have the BU: ...
- Anonymous3 years ago
Hi Atanas_Atanasov ,
Here I create a sample to have a test.
Measure:
Engineer_Count = VAR _STEP1 = SUMMARIZE ( ALL ( 'Table' ), 'Table'[Engineer Email], 'Table'[BU Name], "Count", COUNT ( 'Table'[Engineer Email] ) ) VAR _STEP2 = FILTER ( _STEP1, [Count] = MAXX ( FILTER ( _STEP1, [Engineer Email] = EARLIER ( [Engineer Email] ) ), [Count] ) ) RETURN COUNTX ( FILTER ( _STEP2, [BU Name] = MAX ( 'DimBU Name'[BU Name] ) ), [Engineer Email] ) + 0Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
bot_damo
3 years agoFrequent Visitor
Hi Atanas,
Can you please share how you're getting to the value you need to show '161'
Kind Regards,
Damian
- Atanas_Atanasov3 years agoHelper II
Dear bot_damo - I am counting them by hand from the second screenshot. I filtered it ony by compute I counted 161 rows with "Compute".