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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi all,
I have a data table that looks like this:
| PERSONID | EFFFROMDATE | EFFTODATE | TNFR_CC_CHANGE_IN | DIM_FROM_RC_KEY | DIM_RC_KEY |
| 1003110 | 3/1/2018 | 3/31/2018 | 1 | 67400 | 68211 |
| 1003110 | 8/1/2020 | 8/1/2020 | 1 | 68211 | 70515 |
Each record with a value of 1 for the TNFR_CC_CHANGE_IN field represents an employee transfer. The request from the user base is identify where there is a transfer in and a transfer out (2 separate measures) based on the selected DIM_RC_KEY value. So, if a user filtered the report on DIM_RC_KEY = 70515 (or any attributes related to this value), the 'Transfer In' measure should show a value of 1. If a user filtered the report on DIM_RC_KEY = 68211, the 'Transfer Out' measure should show a value of 1.
Is this possible to achieve through 2 measures?
Thanks in advance!
Solved! Go to Solution.
@garynorcrossmmc , The two columns should join with a common dimension DIM_RC and there will be one inactive join, that can be activated using userelationship
example
CALCULATE(
SUM('Table'[personID]),
USERELATIONSHIP('DIM_RC'[DIM_RC_KEY],'Table'[DIM_FROM_RC_KEY])
)
@garynorcrossmmc , The two columns should join with a common dimension DIM_RC and there will be one inactive join, that can be activated using userelationship
example
CALCULATE(
SUM('Table'[personID]),
USERELATIONSHIP('DIM_RC'[DIM_RC_KEY],'Table'[DIM_FROM_RC_KEY])
)
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 52 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 112 | |
| 108 | |
| 39 | |
| 34 | |
| 27 |