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
Dorinb
Frequent Visitor

lookup initial entry in multiple transfers

Hi,

 

I have two columns with Entry no and Transferred from entry no and would need to calculate a column Expected initial Entry no, that brings the initial entry no if an item has transferred ( it's differnt than zero).

 

It is easy to bring the value if we have one transfer for example entry 2 but I couldnt find a solution where you have multiple transfers. Eg. entry no 5, the initial entry no is 1.

Entry no.JPG

Any help would be much appreciated.

 

 

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @Dorinb 

Based on my research, you could try this way to get it:

Step1:

In Edit Queries, repleace "0" with null for [Transferred from entry no] column.

Step2:

Create a new calculate column for Entry No which is not transformmed.

WithoutTransferred = IF('Table'[Transferred from entry no]=BLANK(),'Table'[Entry no])

Step3:

Then use this formula to create the result column:

initial entry = 
VAR InitialentryNo=PATHITEM(PATH('Table'[Entry no],'Table'[Transferred from entry no]),1) return
LOOKUPVALUE('Table'[WithoutTransferred],'Table'[Entry no],VALUE(InitialentryNo))

Result:

6.JPG

By the way, I changed the last row data for test.

 

and here is sample pbix file, please try it.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @Dorinb 

Based on my research, you could try this way to get it:

Step1:

In Edit Queries, repleace "0" with null for [Transferred from entry no] column.

Step2:

Create a new calculate column for Entry No which is not transformmed.

WithoutTransferred = IF('Table'[Transferred from entry no]=BLANK(),'Table'[Entry no])

Step3:

Then use this formula to create the result column:

initial entry = 
VAR InitialentryNo=PATHITEM(PATH('Table'[Entry no],'Table'[Transferred from entry no]),1) return
LOOKUPVALUE('Table'[WithoutTransferred],'Table'[Entry no],VALUE(InitialentryNo))

Result:

6.JPG

By the way, I changed the last row data for test.

 

and here is sample pbix file, please try it.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors