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.
Hi, I'm stuck on a problem and love that there's a community that can help!
I have a table that contains a column of related record IDs
ID | Team1_ID |
Project_01 | Project_03 |
Project_02 | |
Project_03 |
I'd like to create a new column that shows the inverse, for example:
ID | Team1_ID | Desired Column |
Project_01 | Project_03 | |
Project_02 | ||
Project_03 | Project_01 |
I'm pretty new to DAX so any suggestions are appreciated!
Solved! Go to Solution.
If you know that there will only ever be 1 entry for an ID in the Team 1 ID column then you could use
Desired Column =
VAR CurrentID = 'Table'[ID]
RETURN
LOOKUPVALUE ( 'Table'[ID], 'Table'[Team 1 ID], CurrentID )
If you know that there will only ever be 1 entry for an ID in the Team 1 ID column then you could use
Desired Column =
VAR CurrentID = 'Table'[ID]
RETURN
LOOKUPVALUE ( 'Table'[ID], 'Table'[Team 1 ID], CurrentID )
This worked perfectly! Thanks for the help 🙂
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Desired CC =
MAXX ( FILTER ( Data, Data[Team1_ID] = EARLIER ( Data[ID] ) ), Data[ID] )
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
18 | |
13 | |
7 | |
5 |