+ Reply to Thread
Results 1 to 4 of 4

Combine three datasets in Power Query

  1. #1
    Registered User
    Join Date
    05-09-2022
    Location
    Netherlands
    MS-Off Ver
    2106
    Posts
    2

    Combine three datasets in Power Query

    Dear Excel experts,

    I need to combine three different datasets which I already cleaned. They are all in the same Excel file and I need/want to combine them with Power Query:

    - Partnumber information, with the columns: partnumber, part description, the delivery time in days and the delivery time in months (If {Delivery time in days}<30;1;{Delivery time in days}/30)

    - Orders for the past 250 days, with the columns: partnumber, customer number, Year-Month of order (YYYY-MM) and the sum of all parts that are send within that month.

    - Forecast information about the last x years, with the columns: partnumber, date for when the forecast counts (so when the real order is needed) (in Year-Month (YYYY-MM)), the quantity that is needed that month, the date the forecast is delivered at us (in Year-Month (YYYY-MM)) and the forecast code.


    The goal is to check the sum of quantity in the orders with the forecast of the lead time ago. The lead time is the number of days in which we can deliver. So I want to check the forecast they handed in the lead time ago, for today (for example).

    The goal is to create a pivot table, in which you can Cleary see the difference (or not). I just do not know how to combine the three power query's, so I will match the part numbers, but also to use put the forecast with the delivery time in the past next to the current forecast.

    Who can help me solve this Power Query case?

    Thank you VERY much in advance
    Attached Files Attached Files

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,908

    Re: Combine three datasets in Power Query

    From your description. I would not combine this in PowerQuery.

    However, create relationship between fact & dimension table(s).

    In this case... you'd likely want Forecast and Orders as fact tables. With date/calendar and part information as dimension tables.

    Though, I find it bit difficult to see how forecast data is used in your case. It would help, if you can manually create few desired result (and explain logic behind it).
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    05-09-2022
    Location
    Netherlands
    MS-Off Ver
    2106
    Posts
    2

    Re: Combine three datasets in Power Query

    Hi CK76,

    Thank you for your quick response.
    I use the data to compare (sometimes daily and other times weekly, so we need to be able to refresh the data quick) the forecast with actual dispatched orders. We want to be able to check if our customers order more than they forecasted. If that is the case, they should pay the costs we need to make in order to fulfill their orders. This is a tool that should help with checking.

    I am sorry, but I do not understand what you mean with fact tables and how I should implement that in my file.

    Thank you in advance

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,908

    Re: Combine three datasets in Power Query

    Have a read of article below. This is specifically geared to Power BI. But Excel Power Query & Power Pivot uses same engine (with minor differences).

    https://docs.microsoft.com/en-us/pow...ce/star-schema

+ 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. [SOLVED] Combine tables in Power Query
    By Ebl in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 08-02-2021, 08:11 AM
  2. Power Query - Combine Merges
    By ptmuldoon in forum Excel General
    Replies: 1
    Last Post: 12-19-2020, 06:45 PM
  3. [SOLVED] Power Query Combine
    By kabseeker in forum Excel General
    Replies: 2
    Last Post: 05-05-2020, 10:12 AM
  4. [SOLVED] Power Query: Combine records with deliminter
    By misty15 in forum Office 365
    Replies: 4
    Last Post: 09-17-2019, 04:34 PM
  5. Power Query: Combine and Transform from folder
    By LUKE92 in forum Excel General
    Replies: 13
    Last Post: 06-26-2019, 12:34 AM
  6. [SOLVED] I do not have a combine option - Power Query
    By callumlmcgrath in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 05-08-2019, 06:24 AM
  7. Power Query: combine sheets from different workbook
    By erica.ho56458 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-09-2018, 02:28 AM

Tags for this Thread

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