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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello Experts,
I would like to get a particular data from a different row and retrieve it to another row corresponding to a data. Let me explain it:
Assume that I have a column (A). the column A has differrnt data (values) within different rows.
I would like to create a new column (for example column New) and retrieve the different values of the column A in my new column based on a shared value from column B.
How to do that?
something like that:
Column A ColumnB New Column
Row1: x1 y x2
Row2: x2 y x4
.
.
.
Row3=xn y
Thanks in adavnce
Solved! Go to Solution.
I have my own idea for that,a and it worked for me.
I got the same datasource again and created a connection between two tables. then, I used the lookup function in the first table and retrieved my intended data.
I have my own idea for that,a and it worked for me.
I got the same datasource again and created a connection between two tables. then, I used the lookup function in the first table and retrieved my intended data.
Does anyone know?
Thanks in advance.
@Mohamadmonem Still unable to understand the problem statement, provide some sample data with final expected outcome
Proud to be a Super User!
Thanks for your kind reply;
I would like to get y3 from row3 based on x1 (which is common data among the rows) and retrieve it in a new column in the row 1. How to do that? Of course this is simple. I would like to write a function to do for all of my rows.
| ColumnA | ColumnB | new column |
| y1 | x1 | y2 |
| y2 | x1 | |
| y3 | x1 |
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 69 | |
| 46 | |
| 44 | |
| 28 | |
| 19 |
| User | Count |
|---|---|
| 199 | |
| 129 | |
| 102 | |
| 69 | |
| 55 |