Create a Many to Many Relationship Model in Power Pivot

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.ค. 2024
  • If you're familiar with Power Pivot, you probably know that you can't create many-to-many relationships between multiple tables. But in real life there may be instances where we would want to manage many to many relationship to help answer some questions. This video give an example of a type of question that begs to be answer and uses Power Pivot and some DAX functions to help answer this question. Hint: It involves the use of a bridge table.
    🔔 SUBSCRIBE to my channel ➜ goo.gl/wN3c3p
    🏫 Excel Training ➜ www.exceltraining101.com/p/tr...
    📚 Excel Books & Tech Gear ➜ www.amazon.com/shop/dough
    ⚙️ Tools: Screencasting ➜ techsmith.z6rjha.net/5Qe53
    ⚙️ Tools: Microsoft Office ➜ microsoft.msafflnk.net/rKL0G
    ⚙️ Tools: TubeBuddy ➜ www.tubebuddy.com/et101
    📝 This description may contain affiliate links and we'll receive a small commission if a purchased is made using the links (but at no additional cost to you). It'll support the channel and so more videos like this can be made. Thanks for your support!
    🎁 If you find these videos useful and want to support my channel go to www.buymeacoffee.com/dough
    #excel
    #msexcel
    #doughexcel
    ~-~~-~~~-~~-~
    Please watch: "Convert Table in a PDF File to Excel"
    • Convert Table in a PDF...
    ~-~~-~~~-~~-~

ความคิดเห็น • 98

  • @joycelau3508
    @joycelau3508 8 วันที่ผ่านมา

    I couldn't agree more with other positive comments below. This is by far the best explanation video. Thank you so much!!

  • @ovmov3321
    @ovmov3321 7 หลายเดือนก่อน +2

    Man, you are the best
    really
    i spent so much time to figure it out
    and you here just in 10 min explain everything ...

    • @DougHExcel
      @DougHExcel  7 หลายเดือนก่อน

      Thanks OV MOV, glad it helped!

  • @jonathanniels
    @jonathanniels 4 หลายเดือนก่อน

    I am going to give this a shot, it's been the best detailed explanation I found so far!

  • @richardkorver7482
    @richardkorver7482 4 ปีที่แล้ว

    Many...many thanks....to you and the man behind your source- blog!!!

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

      Much appreciated!

  • @jwf3148
    @jwf3148 3 ปีที่แล้ว

    An EXCELLENT tuturial - clear, organized, professional - AND - an effective learning tool...cannot ask for more than that !!! Ha !!!

  • @derekgarner8524
    @derekgarner8524 3 ปีที่แล้ว +3

    I can't thank you enough. I often needed some way to combine results by a time period or market segment and this solution is so easy and well illustrated. You have made my Friday. Thank you.

    • @DougHExcel
      @DougHExcel  3 ปีที่แล้ว +2

      Thanks Derek Garner, glad it helped!

  • @soloseven007
    @soloseven007 4 ปีที่แล้ว

    Can't thank you enough! Been suffering with this issue for so long, and I'm so thankful to have found your help. Like & subscribe..Done!

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว +1

      Thanks soloseven007, glad it helped!

  • @john4thelove
    @john4thelove 4 ปีที่แล้ว

    I read that blog months ago and could not make it work, thank you this! It WORKS!

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

      Thanks john4thelove, glad it helped!

  • @haashini10031985
    @haashini10031985 3 ปีที่แล้ว

    Excellent Way of Teaching... Thank You

    • @DougHExcel
      @DougHExcel  3 ปีที่แล้ว

      Thanks and welcome!

  • @jcorrea
    @jcorrea 3 ปีที่แล้ว

    Thank you very much!! very clear explanation!

    • @DougHExcel
      @DougHExcel  3 ปีที่แล้ว

      You are welcome!

  • @Mephistopheles019
    @Mephistopheles019 3 ปีที่แล้ว +1

    Finally!! After searching for a very long time I finally stumbled on this video. You’ve increased my education bigtime with this one. Appreciate it.

    • @DougHExcel
      @DougHExcel  3 ปีที่แล้ว

      Glad it was helpful!

    • @gianniedgar8940
      @gianniedgar8940 2 ปีที่แล้ว

      you probably dont care but does anyone know a method to log back into an Instagram account..?
      I somehow lost the login password. I appreciate any help you can give me

  • @SEWEN7777777
    @SEWEN7777777 ปีที่แล้ว +1

    Helped me very much, ty

    • @DougHExcel
      @DougHExcel  ปีที่แล้ว +1

      You’re welcome!

  • @KieuPhuongHoangDang
    @KieuPhuongHoangDang 4 หลายเดือนก่อน

    thank you so much, it's so helpful and thanks again

  • @heshamsaad9883
    @heshamsaad9883 6 หลายเดือนก่อน

    It helps so much - Gazak Allah Khier - Allah will reward you

  • @tinocoan
    @tinocoan ปีที่แล้ว

    The calculation step solved my problem. Thank you so much!

    • @DougHExcel
      @DougHExcel  ปีที่แล้ว

      Hi Antonio Matheus Tinoco, you're welcome!

  • @johng5295
    @johng5295 4 ปีที่แล้ว

    Thanks in a million. Awesome!

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

      You’re welcome!

  • @SyedMuzammilMahasanShahi
    @SyedMuzammilMahasanShahi 4 ปีที่แล้ว

    Beautiful video. Thanks for the share.

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

      Hi Syed Muzammil Mahasan Shahi, thanks for the comment!

  • @ericgonzalez2292
    @ericgonzalez2292 9 หลายเดือนก่อน

    This helped a lot to resolve a problem I have had for many months now!! Thanks!

    • @DougHExcel
      @DougHExcel  9 หลายเดือนก่อน

      Glad it helped!

  • @info2satish
    @info2satish 2 ปีที่แล้ว

    OMG! You've just solved my problem. Love from India ❤️🙏👍

  • @yabezrosy
    @yabezrosy 2 ปีที่แล้ว

    Thanks Dough H your video ended my 1 week search on the exact same issue I was having

  • @averageboy5
    @averageboy5 ปีที่แล้ว

    This is solid! Great job on explaining DAX cross table filtering. I’d been spinning wheels more times than I can dare to count. I am now going to dazzle the masses, thanks to this!

    • @DougHExcel
      @DougHExcel  ปีที่แล้ว

      Glad it was helpful!

    • @averageboy5
      @averageboy5 ปีที่แล้ว

      Btw, on close scrutiny, I don’t think you need that extra “unique customer” filter table. The unique product bridge table s/b sufficient to pull the correct totals. It puzzled me the first time but still great example!

  • @mozhistmk
    @mozhistmk 2 ปีที่แล้ว

    OMG Awesome man.. you made my day ..! thanks a lot!

    • @DougHExcel
      @DougHExcel  2 ปีที่แล้ว

      You’re welcome!

  • @errolm8313
    @errolm8313 3 ปีที่แล้ว

    Thank you!

  • @sergeyp6472
    @sergeyp6472 3 ปีที่แล้ว

    Thanks a lot!!!

  • @mau_vh
    @mau_vh 2 หลายเดือนก่อน

    Thanks man

    • @DougHExcel
      @DougHExcel  2 หลายเดือนก่อน

      You're welcome!

  • @aluedemichael352
    @aluedemichael352 ปีที่แล้ว +1

    This video hit the spot! great job!! however grand total of potential sales isn't accurate. how do you spin that? it has me stuck on me current work.

  • @gborka
    @gborka 2 ปีที่แล้ว

    thank you so much

    • @DougHExcel
      @DougHExcel  2 ปีที่แล้ว

      You’re welcome!

  • @stevesullivan457
    @stevesullivan457 4 ปีที่แล้ว +6

    Great job. Alas, my head is spinning lol

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

      Hi Steve Sullivan, thanks for the comment!

    • @shounaksen3336
      @shounaksen3336 4 ปีที่แล้ว

      hahaha.. Same here

    • @danjarupath
      @danjarupath ปีที่แล้ว

      Me too

  • @jorisvanh.9274
    @jorisvanh.9274 ปีที่แล้ว

    Thank you for the video. When applying slicers for let's say customer name, based on what table in the data model would you do this?

  • @giordanirivas294
    @giordanirivas294 ปีที่แล้ว +1

    Great solution for the dilemma of many to many relationships. My example is similar but the values repeated are percentages and I am not solving the problem with a sum formula (adding percentage is not correct). Any idea on a work around?

  • @largpack
    @largpack ปีที่แล้ว +1

    Why doesn't support Power Pivot this out of the box like Microsoft Power BI does? Thanks for the really helpful video!

  • @Tat-cx1lr
    @Tat-cx1lr 3 ปีที่แล้ว

    Merci

  • @hasinarafenoarisoa7063
    @hasinarafenoarisoa7063 3 ปีที่แล้ว

    thank you so much for these videos!
    How to solve one to one relationship model in powerpivot, please?

    • @DougHExcel
      @DougHExcel  3 ปีที่แล้ว

      Sorry, don’t understand the comment/ question... but it sounds more like a lookup item? th-cam.com/video/fzfN84kDqgU/w-d-xo.html

  • @giordanirivas294
    @giordanirivas294 ปีที่แล้ว

    Hi Doug, I applied this solution to a sample I have. I have a Product table where the price is, a Customer table where I have many repetitive elements, and I have 6 tables for unique elements. Each of these tables with unique tables are connected to the Customer table (addressing the one to many relationships) and I also have a connection between the Product table and one of the unique tables (addressing the one to many relationship). I created a measure "xIRR" and the formula works. I created a pivot table showing the xIRR by the different elements but it only works for 2 out of the 6 tables with unique elements. Did I provided enough info to diagnosed why it is not working for the rest of the elements?

  • @lisbongraffiti242
    @lisbongraffiti242 10 หลายเดือนก่อน

    When you add this kind of tables for a many-many relationships it can be considered a star model or is a different kind?Thank you

  • @simonhill9090
    @simonhill9090 3 ปีที่แล้ว +1

    Looks good, could you also get a list of the products under each category in the resulting report?

    • @DougHExcel
      @DougHExcel  3 ปีที่แล้ว

      Suppose so, depending on how the pivot is built out

  • @fernando36881
    @fernando36881 8 หลายเดือนก่อน

    Hi, i follow the tutorial the calculation in potentialSales row is correct but the grand total didn't calculate true it's like show the maximum value, do you know what wrong?

  • @hamedu2965
    @hamedu2965 2 ปีที่แล้ว

    What about if you have a date column too?

  • @MountainSnowFlyer
    @MountainSnowFlyer 3 ปีที่แล้ว

    This video was very helpful, and it does seem to be working for my case. I'm trying to organize my data from a main table using some groups that have a many to many relationship. However, I keep getting an error message that says: "A Pivot Table report cannot overlap another PivotTable report". Any idea what is causing that?

    • @DougHExcel
      @DougHExcel  3 ปีที่แล้ว +1

      Hi MountainSnowFlyer, thanks for the comment. Basically the update to one of the pivot tables in a worksheet will extend the column/rows onto another pivot table on the sheet, so a solution is to move the pivot tables away from each other (i.e., to another range or another worksheet)

  • @motionpicts
    @motionpicts 3 ปีที่แล้ว

    Hi Doug, what if you don't have ProductID in your Product table, will this method be workable? thank you

  • @noradorah8053
    @noradorah8053 2 ปีที่แล้ว

    Hello, can you have a "many-to-one" relationship in a power pivot excel file?

  • @cassandramah9786
    @cassandramah9786 2 ปีที่แล้ว +1

    Great video! I'm working on a problem where I need to add another dimension to the measure formula to calculate a proportion. Essentially, CALCULATE( (sum of variable A in table 1) / (count of variable B in table 2). I get the error: "Calculation error in measure 'NameofMeasure': A function 'COUNT' has been used in a True/False expression that is used as a table filter expression. This is not allowed". Any suggestions? :)

    • @DougHExcel
      @DougHExcel  2 ปีที่แล้ว

      Not sure...maybe wrap it in with a FILTER function? CALCULATE( FILTER ( (sum of variable A in table 1) / (count of variable B in table 2))

  • @mattmatt245
    @mattmatt245 3 ปีที่แล้ว

    Can't you just aggregate "prodcat" table (group by category), then merge it with "cust" table on category field ?

  • @themerchant7494
    @themerchant7494 2 ปีที่แล้ว

    Sir please help, how about many to many relationship using dates

  • @cavorka216
    @cavorka216 3 ปีที่แล้ว

    When I do this Excel creates a Connection tied to the filename. If I create a copy the new file breaks when updating. Do you know how to solve this?

    • @DougHExcel
      @DougHExcel  3 ปีที่แล้ว

      Sorry, don’t understand the comment/ question... maybe make a post to the mrexcel.com forum.

  • @marcodivito8527
    @marcodivito8527 4 ปีที่แล้ว +1

    Great job!
    One question. Same example as yours, but a DATE instead of a PRICE (so no sum or counts in “Values”) - namely, a product order date for a specific customer.
    Would like to show all the orders to be placed in a date.
    Doing so, I would like to put the date at second column (after “Customer” but before “product” in your example).
    Unfortunately, it seems that the date is not linked to the product to be ordered (all the dates are present even though, from raw data, no orders should be present all the days).
    Thanks for your help!
    Marco

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

      The concept would be similar but a calendar table will be the bridging table between the two.

    • @marcodivito8527
      @marcodivito8527 4 ปีที่แล้ว +2

      Doug H it seems doesn’t work unfortunately - I have created a relationship between order dates present in the table “prod” and a new table (“calendar table”).
      It continues showing all dates present in the calendar table (no sense) and then the product associated with the customer.
      Thanks for the help

    • @French_Connection
      @French_Connection 4 ปีที่แล้ว

      @@marcodivito8527 I also have similar situation. I was able to show number of dates within a month, quarter, etc. Totals were still wrong, but all within ranges was OK. But had to use blank so that it was not counted.. Could not take it one step further ... to map categories for groups.

  • @errolm8313
    @errolm8313 3 ปีที่แล้ว

    I'm still getting errors.... Will this concept work with setting up a relationship in access and then importing into power pivot?.... I'm now at 7 tables and still can't get referential integrity between them (so it can be a clean import into power pivot)

    • @DougHExcel
      @DougHExcel  3 ปีที่แล้ว

      haven't tested this with Access....

  • @casst346
    @casst346 4 ปีที่แล้ว

    what if you have many field columns with many to many between 2 or 3 tables

    • @DougHExcel
      @DougHExcel  3 ปีที่แล้ว

      that would be additional bridge table, but it's not ideal

  • @LargeLondonGirl
    @LargeLondonGirl 4 ปีที่แล้ว

    What happens when a new customer is added to the “cust” table...do you need to manually update the “uniquecust” table as well?

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

      Yes you would need to manually update. The other option would be to create a query on the cust table to pull out the unique customer names and then output that as the uniquecust table and then use it as part of the bridging table...that might be another video :-)

    • @good2see
      @good2see 4 ปีที่แล้ว

      @@DougHExcel There must be a way to update the unique tables automatically.

    • @john4thelove
      @john4thelove 4 ปีที่แล้ว

      You can create a power query that saves the distinct results to a table :)

  • @msoffice6037
    @msoffice6037 3 ปีที่แล้ว

    Can you please tell what is the name of picture you used for this video (blonde girl pointing at table)

    • @DougHExcel
      @DougHExcel  3 ปีที่แล้ว

      Purchased a licensed version for this pic and it's called "Database Table - technical concept, girl pointing screen"

    • @msoffice6037
      @msoffice6037 3 ปีที่แล้ว

      @@DougHExcel Thank you very much for reply!

  • @peterfj6218
    @peterfj6218 ปีที่แล้ว

    Jesus titty fucking christ. This is an absolute game changer. I've struggled with this for days and I finally managed to make it work. Thanks alot for the video!!

    • @DougHExcel
      @DougHExcel  ปีที่แล้ว

      Oh my😆 Glad it helped!

  • @05khanha
    @05khanha 3 ปีที่แล้ว

    Sumif formula in column C would be quicker.. ;)

    • @DougHExcel
      @DougHExcel  3 ปีที่แล้ว

      Hi RLprod, thanks for the comment!