Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Mohamadmonem
Regular Visitor

How to get a data field from a different row and retrieve it to another row corresponding to a data?

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

 

1 ACCEPTED SOLUTION
Mohamadmonem
Regular Visitor

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. 

 

View solution in original post

4 REPLIES 4
Mohamadmonem
Regular Visitor

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. 

 

Mohamadmonem
Regular Visitor

Does anyone know?

Thanks in advance.

VijayP
Super User
Super User

@Mohamadmonem  Still unable to understand the problem statement, provide some sample data with final expected outcome




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

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. 

ColumnAColumnBnew column
y1x1y2
y2x1 
y3x1 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors