Power Query Editor Help or Use DAX Calc Column?

Hi,

I’m using a SAP Data Set to analyse how many units have we receipted into the Warehouse v’s how many units we loaded to the Van Sales Order of the same line.

Did we load in full or suffer a loss?

My question is:

The delivery ID is SAP is an unique number, I would like to tie this same number into the empty column REF2 for all the TRAN Rows (Van Sales Loadings)

Basically creating a reference/relationship

How do I do that in Power Query?

I have heard of Fill Down option but I want the Unique Reference to repeat down the next column and then again for the next delivery of the next line and so on and so on.

Hope that makes sense

Any help would be greatly appreciated.

Hi @DarrenG, we aim to consistently improve the topics being posted on the forum to help you in getting a strong solution faster. While waiting for a response, here are some tips so you can get the most out of the forum and other Enterprise DNA resources.

  • Use the forum search to discover if your query has been asked before by another member.

  • When posting a topic with formula make sure that it is correctly formatted to preformated text </>.

  • Use the proper category that best describes your topic

  • Provide as much context to a question as possible.

  • Include demo pbix file, images of the entire scenario you are dealing with, screenshot of the data model, details of how you want to visualize a result, and any other supporting links and details.

I also suggest that you check the forum guideline How To Use The Enterprise DNA Support Forum. Not adhering to it may sometimes cause delay in getting an answer.

Is it possible to setup a simple demo of this in a pbix file and then share that. This way you’ll get a quick response.

Sam

@DarrenG

If I’ve understood what your wanting, then the attached simple example in Excel should help. Otherwise could you please upload an example?

Book1.xlsx (18.1 KB)

1 Like

Hi @DarrenG, we’ve noticed that no response has been received from you since the 3rd of August. We just want to check if you still need further help with this post? In case there won’t be any activity on it in the next few days, we’ll be tagging this post as Solved. If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the checkbox. Thanks!

@samaguire

Hi,

Apologies for the delay in replying (Working long shifts this week)

Initially I liked and used @samaguire excellent suggestion, you were spot on with what I was trying to achieve to basically create a Key relationship between Del Ref and Tran entries.

Using the same Conditional Column option was a very useful technique.

I have since solved the same problem in a slightly different approach by adding an additional column known as PO No from SAP and using 'Fill Up approach to achieve the same solution (See Screen shot)

Hope that makes sense and many thanks for your support.

Darren