+ Reply to Thread
Results 1 to 2 of 2

PowerQuery Many 2 Many Relationships

  1. #1
    Registered User
    Join Date
    04-29-2017
    Location
    London
    MS-Off Ver
    2016 Professional
    Posts
    46

    PowerQuery Many 2 Many Relationships

    Hi All

    I have just started to use PowerQuery and my first real world problem involves a many to many relationship. I have successfully merged the tables together to achieve the correct pivot table results but I am looking to avoid this step. I am looking to show the quantity of each child item required each month as a consequence of the demand for the parent items and the parent / child relationships. With relation to the attached file and screen shots I have created relationships as below using a unique list of items in Item Master to provide a 1 to Many relationship with the two tables.

    Capture1.JPG

    However, the resulting pivot table does not display the correct quantities, see below. The quantity for each child repeats each month.

    Capture2.JPG

    I would be grateful if someone could steer me the right direction.

    Thanks


    Also posted on https://stackoverflow.com/questions/...-relationsship
    Attached Files Attached Files
    Last edited by rabbit_post; 02-04-2018 at 04:42 PM.

  2. #2
    Forum Expert sandy666's Avatar
    Join Date
    02-05-2015
    Location
    Any Country
    MS-Off Ver
    farerwell
    Posts
    8,749

    Re: PowerQuery Many 2 Many Relationships

    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.

    Note that I didn't say I'll help, I said attach example excel file
    sandy
    How to create an editor for Power Query with Notepad++ (tutorial)
    How to create timeline project with vertical today marker (2010, 2013, 2016 etc...) (examples)
    Tips for Excellent Spreadsheets

    What makes learning so hard is the amount of knowledge you have to unlearn
    Why is my program not doing what I expect?
    Because you set the wrong expectations. Rewire your brain

+ 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. Unpivot with PowerQuery possible?
    By nobodyukno in forum Excel General
    Replies: 3
    Last Post: 08-23-2017, 03:34 PM
  2. PowerQuery and Alt image text
    By BuntyMac in forum Excel General
    Replies: 2
    Last Post: 05-04-2017, 10:26 PM
  3. PowerQuery/Dax - Valid Date Look-up
    By happydays886 in forum Access Tables & Databases
    Replies: 1
    Last Post: 03-21-2017, 10:55 PM
  4. VBA vs PowerQuery
    By Trachr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-08-2017, 11:50 PM
  5. PowerQuery and VBA
    By Trachr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-08-2017, 12:10 AM
  6. Help with powerquery.
    By stephme55 in forum Excel General
    Replies: 0
    Last Post: 09-01-2016, 07:31 PM
  7. PowerQuery Keep Rows Between Two Row Criterias
    By wallstguy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-10-2016, 02:05 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