Create a Many to Many Relationship Model in Power Pivot

  Рет қаралды 76,599

Doug H

Doug H

Күн бұрын

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 2 күн бұрын
I couldn't agree more with other positive comments below. This is by far the best explanation video. Thank you so much!!
@derekgarner8524
@derekgarner8524 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 жыл бұрын
Thanks Derek Garner, glad it helped!
@ovmov3321
@ovmov3321 7 ай бұрын
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!
@richardkorver7482
@richardkorver7482 4 жыл бұрын
Many...many thanks....to you and the man behind your source- blog!!!
@DougHExcel
@DougHExcel 4 жыл бұрын
Much appreciated!
@jonathanniels
@jonathanniels 4 ай бұрын
I am going to give this a shot, it's been the best detailed explanation I found so far!
@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 жыл бұрын
Thanks soloseven007, glad it helped!
@jwf3148
@jwf3148 3 жыл бұрын
An EXCELLENT tuturial - clear, organized, professional - AND - an effective learning tool...cannot ask for more than that !!! Ha !!!
@DougHExcel
@DougHExcel 3 жыл бұрын
Wow, thanks!
@SEWEN7777777
@SEWEN7777777 Жыл бұрын
Helped me very much, ty
@DougHExcel
@DougHExcel Жыл бұрын
You’re welcome!
@jcorrea
@jcorrea 3 жыл бұрын
Thank you very much!! very clear explanation!
@DougHExcel
@DougHExcel 3 жыл бұрын
You are welcome!
@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!
@Mephistopheles019
@Mephistopheles019 3 жыл бұрын
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
@haashini10031985
@haashini10031985 3 жыл бұрын
Excellent Way of Teaching... Thank You
@DougHExcel
@DougHExcel 3 жыл бұрын
Thanks and welcome!
@SyedMuzammilMahasanShahi
@SyedMuzammilMahasanShahi 4 жыл бұрын
Beautiful video. Thanks for the share.
@DougHExcel
@DougHExcel 4 жыл бұрын
Hi Syed Muzammil Mahasan Shahi, thanks for the comment!
@KieuPhuongHoangDang
@KieuPhuongHoangDang 4 ай бұрын
thank you so much, it's so helpful and thanks again
@johng5295
@johng5295 4 жыл бұрын
Thanks in a million. Awesome!
@DougHExcel
@DougHExcel 4 жыл бұрын
You’re welcome!
@tinocoan
@tinocoan Жыл бұрын
The calculation step solved my problem. Thank you so much!
@DougHExcel
@DougHExcel Жыл бұрын
Hi Antonio Matheus Tinoco, you're welcome!
@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!
@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!
@info2satish
@info2satish 2 жыл бұрын
OMG! You've just solved my problem. Love from India ❤️🙏👍
@DougHExcel
@DougHExcel 2 жыл бұрын
Glad it helped!
@errolm8313
@errolm8313 3 жыл бұрын
Thank you!
@DougHExcel
@DougHExcel 3 жыл бұрын
You're welcome!
@yabezrosy
@yabezrosy 2 жыл бұрын
Thanks Dough H your video ended my 1 week search on the exact same issue I was having
@DougHExcel
@DougHExcel 2 жыл бұрын
Glad it helped!
@heshamsaad9883
@heshamsaad9883 6 ай бұрын
It helps so much - Gazak Allah Khier - Allah will reward you
@aluedemichael352
@aluedemichael352 Жыл бұрын
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.
@sergeyp6472
@sergeyp6472 3 жыл бұрын
Thanks a lot!!!
@DougHExcel
@DougHExcel 3 жыл бұрын
You're welcome!
@mozhistmk
@mozhistmk 2 жыл бұрын
OMG Awesome man.. you made my day ..! thanks a lot!
@DougHExcel
@DougHExcel 2 жыл бұрын
You’re welcome!
@gborka
@gborka 2 жыл бұрын
thank you so much
@DougHExcel
@DougHExcel 2 жыл бұрын
You’re welcome!
@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?
@mau_vh
@mau_vh 2 ай бұрын
Thanks man
@DougHExcel
@DougHExcel 2 ай бұрын
You're welcome!
@giordanirivas294
@giordanirivas294 Жыл бұрын
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?
@stevesullivan457
@stevesullivan457 4 жыл бұрын
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
@Tat-cx1lr
@Tat-cx1lr 3 жыл бұрын
Merci
@DougHExcel
@DougHExcel 3 жыл бұрын
De rien!
@largpack
@largpack Жыл бұрын
Why doesn't support Power Pivot this out of the box like Microsoft Power BI does? Thanks for the really helpful video!
@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? kzbin.info/www/bejne/nKvJf2tqoKmknbc
@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?
@simonhill9090
@simonhill9090 3 жыл бұрын
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
@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
@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?
@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 жыл бұрын
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)
@hamedu2965
@hamedu2965 2 жыл бұрын
What about if you have a date column too?
@noradorah8053
@noradorah8053 2 жыл бұрын
Hello, can you have a "many-to-one" relationship in a power pivot excel file?
@mattmatt245
@mattmatt245 3 жыл бұрын
Can't you just aggregate "prodcat" table (group by category), then merge it with "cust" table on category field ?
@cassandramah9786
@cassandramah9786 2 жыл бұрын
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))
@motionpicts
@motionpicts 3 жыл бұрын
Hi Doug, what if you don't have ProductID in your Product table, will this method be workable? thank you
@DougHExcel
@DougHExcel 3 жыл бұрын
Yes
@themerchant7494
@themerchant7494 2 жыл бұрын
Sir please help, how about many to many relationship using dates
@marcodivito8527
@marcodivito8527 4 жыл бұрын
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 жыл бұрын
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....
@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 :)
@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.
@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
@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!
@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!
@05khanha
@05khanha 3 жыл бұрын
Sumif formula in column C would be quicker.. ;)
@DougHExcel
@DougHExcel 3 жыл бұрын
Hi RLprod, thanks for the comment!
Create Time Intelligence Formulas in Power Pivot
15:54
Doug H
Рет қаралды 4,4 М.
Manage Many to Many Relationships in Power Pivot
17:27
Paula's Web3 & Crypto
Рет қаралды 170 М.
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 106 МЛН
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 7 МЛН
How to use Power Pivot in Excel | Full Tutorial
30:38
Kevin Stratvert
Рет қаралды 1,3 МЛН
Looking at Power BI Many to Many
8:47
Guy in a Cube
Рет қаралды 156 М.
How to Correctly Define Many-To-Many Relationships in Database Design
7:07
Many-to-Many Relationships - The Whiteboard #12
13:24
SQLBI
Рет қаралды 18 М.
3 Essential Excel skills for the data analyst
18:02
Access Analytic
Рет қаралды 1,5 МЛН
Ultimate Excel PivotTables Tutorial: Beginner to Advanced - 3.5 Hours!
3:25:48
Excel Data Modeling - Stop Using XLOOKUP | Learn PowerPivot
10:41
Professor Cubs
Рет қаралды 76 М.