Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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] )
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
24 | |
10 | |
10 | |
9 | |
6 |