Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello, I searched for this in the forums, but I think I'm using the wrong terms and it's not a "match and count".
I'd like to take the "Employee ID" data and count how many times it appears in the "Mgr_EmplID" column and return a total to a new column. In the example below "111" shows up twice under MGR_EMPLID, so the new column entry would show a "2". I'm sure this has been answered before on the forums, but I can't find it, can someone point me in the right direction? Thank you!
EMPLOYEE ID | MGR_EMPLID |
111 | 122 |
155 | 111 |
122 | 104 |
124 | 111 |
Solved! Go to Solution.
Hi @Anonymous ,
You can use this measure:
CountOfEmployeeId =
CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'), 'Table'[MGR_EMPLID] = SELECTEDVALUE('Table'[EMPLOYEE ID])))
Proud to be a Super User. If I helped, please accept the solution and give kudos! |
@Anonymous try this
Column = CALCULATE(COUNTX('Table 1','Table 1'[MGR_EMPLID]),ALLEXCEPT('Table 1','Table 1'[MGR_EMPLID]))
Perfect, thank you very much!
Hi @Anonymous ,
You can use this measure:
CountOfEmployeeId =
CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'), 'Table'[MGR_EMPLID] = SELECTEDVALUE('Table'[EMPLOYEE ID])))
Proud to be a Super User. If I helped, please accept the solution and give kudos! |
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
75 | |
60 | |
37 | |
33 |
User | Count |
---|---|
102 | |
56 | |
52 | |
46 | |
40 |