Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
Below is my sample data and i want to report the number of joiners who are also leavers.
For example : Employee ID = 24521 has type with "Joiner" and "Leaver". I want to list this employee id who has type both Joiner and Leaver.
Employee ID | Type |
23544 | Joiner |
24521 | Joiner |
34664 | Joiner |
87627 | Leaver |
61536 | Leaver |
86262 | Joiner |
24521 | Leaver |
34664 | Leaver |
Regards
Shiva
Solved! Go to Solution.
Hi @ncbshiva ,
Try this:
Joiner and Leaver =
VAR _cnt =
CALCULATE ( COUNTROWS ( 'Table' ), ALLEXCEPT ( 'Table', 'Table'[Employee ID] ) )
RETURN
IF ( _cnt = 2, MAX ( 'Table'[Employee ID] ) )
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
Hi @ncbshiva ,
Try this:
Joiner and Leaver =
VAR _cnt =
CALCULATE ( COUNTROWS ( 'Table' ), ALLEXCEPT ( 'Table', 'Table'[Employee ID] ) )
RETURN
IF ( _cnt = 2, MAX ( 'Table'[Employee ID] ) )
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |