+ Reply to Thread
Results 1 to 11 of 11

Power query - two-way data moving

  1. #1
    Registered User
    Join Date
    10-23-2017
    Location
    Est
    MS-Off Ver
    2013
    Posts
    49

    Power query - two-way data moving

    Hello,

    Is there any possibility to transfer data with power query two-way?

    1. I have one excel file for "orders".

    2. From "orders" excel i transfer order rows with category "P" using power query to "purchase" excel and purchasing departments adds purchase info.

    3. From "orders" excel i transfer order rows with category "M" using power query to "manufacturing" excel and manufacturing department adds manufacturing info.

    4. From "purchase" and "manufacturing" orders i transfer and merge data using power query to "logistic" excel where logistic department adds logistic info.

    5. Finally, i want to transfer logistic data from "logistic" excel back to "purchase" and "manufacturing" excel. I tried to use index and match formula but it makes it slow. Can this be done with power query?

    Thanks,
    Siim

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Power query - two-way data moving

    Attach a sample workbook (not a picture!). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    10-23-2017
    Location
    Est
    MS-Off Ver
    2013
    Posts
    49

    Re: Power query - two-way data moving

    Excels and accurate explanation is not so important, main thing is to get to understand is it possible to transfer information back with power query.

    But still, adding excel and explain it again.

    1. Tellimused.xls in the main excel where all orders are registred.

    2. ostmine.xls is the excel for purchase department. Data with category OT and OO is transfered from tellimused.xls using power query and purchase department adds purchase info.

    3. tootmine.xls is the excel for manufacturing department. Data with catecory TT is transfered from tellimused.xls using power query and manufacturing department adds manufacturing info.

    4. logistika.xls is the excel for logistic department. All data from ostmine.xls and tootmine.xls is merged and transfered using power query and logistic department firstly adds info to column T (staatus(logistika)) /status - ready for delivery, delivered

    5. This column value has to be transfered to ostmine.xls and tootmine.xls and also all info from logistika.xls is transfered to projektijuhtimine.xls using power query and there pwoject managers adds planned date of delivery.

    6. Planned date of delivery has to be transfered back to logistika.xls.

    Right now status from logistika.xls to ostmine.xls and to tootmine.xls and planned date of delivery from projektijuhtimine.xls to logistika.xls is transfered with index,match formula which makes slow. Need to make them faster.

    Thanks,
    Siim
    Attached Files Attached Files

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Power query - two-way data moving

    1. your data is not well organized
    2. your source data is not well defined
    3. point 5 about managers add planned date of delivery cannot be done due to lack of information on what and where
    4. point 6 cannot be done - see point 3 here
    5. I didn't make any corrections, only what was in points 1-4.5

    unzip and move folder to the root of C drive so path should be like: C:\pulleritz\(all files here)

    if you want to know why data (?) is loading too long - see point 2 here

    new columns/tables are green or orange

    answer for basic question: is it possible to transfer information back with power query is: yes, it's possible
    Attached Files Attached Files
    Last edited by sandy666; 12-19-2017 at 06:59 AM.

  5. #5
    Registered User
    Join Date
    10-23-2017
    Location
    Est
    MS-Off Ver
    2013
    Posts
    49

    Re: Power query - two-way data moving

    Whatīs yours opinion how the data should be organised?

    Rows sequence get mixed when i sort by category to ostmine and tootmine and after that merge them together. I need to get them to different files, what are the alternatives?

    Siim

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Power query - two-way data moving

    Try this book: Database Processing. Fundamentals, Design, and Implementation (David M. Kroenke David J. Auer)
    or
    this link for the begining: DB intro

    Answer for your questions is not one-click advice and exceeds the basic help here, but you can try PQ and DataModel & Relationships

    btw. don't use any formatting before your project will be not finished (Excel Tables are not formatting )


    If that takes care of your original question, & to say Thanks, please click on Add Reputtion (bottom left corner of the post of the person(s) who helped you)
    then select Thread Tools from the menu (top right corner of your thread) and mark this thread as SOLVED.
    If you did it already - ignore it.
    Thank you.
    Last edited by sandy666; 12-19-2017 at 03:27 PM.

  7. #7
    Registered User
    Join Date
    10-23-2017
    Location
    Est
    MS-Off Ver
    2013
    Posts
    49

    Re: Power query - two-way data moving

    Hello again,

    Managed to put the tables in connection. Using seperate power query connections.

    What are the dangers of this kind system? For me itīs danger to write over rows in tellimused.xls, is there any more?

    Siim
    Attached Files Attached Files

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,533

    Re: Power query - two-way data moving

    What exactly are you asking us to check? As Sandy has already intimated, this is a very broad brush - you can't expect one of us to trawl through your files looking for issues, as it's beyond the scope of this forum. Be specific, please. Thanks for your co-operation.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Power query - two-way data moving

    • 1st. use paths what I show you before (C:\test) will be easier for both of us
    • 2nd. you need create something like relationship between appropriate tables - (for project managers, manufacturing dept. & logistic dept.) These tables cannot be not connected to appropriate query tables because, like you notice before, cells (data) are moved down or up so tables are incoherent between each other.
    • 3rd. you mean overwrite rows with existing data?
    Last edited by sandy666; 12-21-2017 at 04:20 AM.

  10. #10
    Registered User
    Join Date
    10-23-2017
    Location
    Est
    MS-Off Ver
    2013
    Posts
    49

    Re: Power query - two-way data moving

    I have solverd the incoherence so:

    1. Ostmine.xlsx takes rows with category OO and OT from tellimused.xlsx. The order of rows stays same as in tellimused.xlsx

    2. Tootmine.xlsx takes rows with categories OT from ostmine.xlsx and they are listed first and also takes rows with categories TT from tellimused.xlsx and they are listed after that (in the same order as in tellimused.xlsx)

    3. Logistika.xlsx takes rows with categories OO and OT from ostmine.xlsx and they are listed first (same order as in ostmine and as in tellimused). Also logistika takes rows with categories TT from tootmine and they are listed after that (in the same order as TT rows in tellimused.xlsx).

    4. Projektijuhtimine.xlsx takes all info from logistika.xlsx and adds one column for delivery period (all rows stays in the same order as in logistika).

    5. Logistika takes back the delivery period from projektijuhtimine (all rows stays in the same order).

    My question is although there is no direct connection, is there possible to break system (without inserting new rows between already insterted rows/deleting already inserted rows/and replacing already inserted rows in tellimused.xlsx)?
    Last edited by Pulleritz; 12-21-2017 at 09:18 AM.

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Power query - two-way data moving

    If you move any of these files out of path - it will break the system partially or completely, the same will be if you change case size in source headers (PQ is case sensitive)

    you can see, eg. these tables are incoherent using your method

    sourceproject.jpg resultlogistika.jpg

    it shouldn't happen!

    and yours DV list in C column on Tellimused.xlsx is set improperly (different ranges)

    and on the end example Tellimused.xlsx file.
    this is Excel Table. If you want to add next row use Tab key, it will add new row and Jrk nr automatically
    Attached Files Attached Files
    Last edited by sandy666; 12-21-2017 at 02:45 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. error in power query & power pivot
    By Baldev Kumar in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 01-03-2018, 01:34 AM
  2. Data transformation using Formula or Power Query
    By chullan88 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-18-2017, 09:59 AM
  3. [SOLVED] Applying Power Query to New Data Sets
    By jdriscol in forum Excel General
    Replies: 1
    Last Post: 08-02-2017, 04:51 AM
  4. [SOLVED] Transforming data without Power Query
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2017, 11:16 AM
  5. Power Query - Add dates to fixed Data set
    By happydays886 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2017, 10:40 AM
  6. Adding data to the end of a table with Power Query
    By afila in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-14-2016, 08:29 AM
  7. Power Query - Get external data from Folder
    By crainaud in forum Excel General
    Replies: 0
    Last Post: 03-24-2016, 12:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1