Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I am trying to find the amount of people that transferred between a group of departments during each month:
The data:
EMPLOYEE | MONTH | DEPT | PRIOR MO DEPT | TRANSFER |
100216 | FEB | 5501 | 5501 | N |
100216 | JAN | 5501 | 2255 | Y |
100216 | DEC | 2255 | N/A | N/A |
If the slicer is set to 5501 the expected value is 1.
If the slicer is set to 5501 OR 2255 the expected value is 0.
I am looking for a measure with this formula.
Thanks!
Hi,
try this: