MSPTDA 28: Build Power Query Bridge Table in Power BI & Power Pivot for Many To Many Relationship

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024

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

  • @excelisfun
    @excelisfun  5 ปีที่แล้ว +4

    Topics:
    1. (00:23) Introduction & look at Data Modeling Problem
    2. (01:00) Fundamental Problem with a Many-To-Many Relationship
    3. (02:05) What is a Many-To-Many Relationship?
    4. (03:25) Start to create Reports and discover the Problem with a Many-To-Many Relationship.
    5. (04:52) Build Bridge Table using Excel Power Query
    6. (07:32) First look at underlying filtering for a Many-To-Many Relationships
    7. (08:36) Three Options with a Bridge Table.
    8. (09:02) Build Bridge Table using Power BI Desktop Power Query
    9. (10:25) Bi-Directional Filter
    10. (10:53) Visual Animation to illustrate how Many-To-Many Relationship works with a Bridge Table.
    11. (11:39) Ambiguity in Model with Bi-Directional Filters.
    12. (12:19) CROSSFILTER DAX Function example
    13. (13:41) Table Filter Example
    14. (14:05) Expanded Diagram to “see” how Table Filter works with a Bridge Table and a Many-To-Many Relationships
    15. (15:08) Difference between Grand Total Cell formulas for CROSSFILTER and Table Filter
    16. (16:10) Cross Tab Report
    17. (16:53) Conclusion

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

    This is magic. UNBELIEVABLE. I watched Ferrari's presentation about sales, Rossi's about time functions. But they gave just formulae.
    In this presentation, the formula and comparison on worksheet is available.
    Also, Mike, you saved the best for last. Just throwing full bridge table to filter is amazing.
    I have to say that even when I was selecting the items in formula by tabs I made some mistakes. Model did not work initially. But with table filter - it did right away. And I understood the hassle it saved me.
    I may add that you give so much more here than most !!!

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

      I am glad to help you and others, F C : ) My goal for 12 years at YoTube is: Free Excel Education for the World!!!

  • @xiaojienan7891
    @xiaojienan7891 11 หลายเดือนก่อน +1

    Sooo appreciate your video, god bless you, help me a lot

  • @athandapani
    @athandapani 5 ปีที่แล้ว +8

    Excellent explanation, it includes all variations I wanted to understand about many to many relationship and visuals in between clarified the doubts. Great work Mike👍👏

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว +4

      Glad the visuals help you to gain the knowledge of how and why, Arun!!!! Please help support this channel with your Sub, and your thumbs up and comment on each video that you watch : )

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

    Wow!!! I see some things clearer now! Your videos are comprehensive and cover every important topic! Thumbs up!👍

  • @pmsocho
    @pmsocho 5 ปีที่แล้ว +2

    So cool!!!

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

      Yes, indeed! Thanks Teammate pmsocho!!!!

  • @IoriYagamiKOF98
    @IoriYagamiKOF98 5 ปีที่แล้ว +5

    i just want to leave my opinion, i barely do comment any videos, but i think you are one of the best educator when in BI , your videos are so freaking well explained, your examples , you don't just talk and show the demo.... you take a momment to show how the background of the engine works, with your tables examples, how the filter flows throught the arrows ... just amazing.... i hope you never stop... your videos are really the best i found

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

      I am glad that the resources that I post are helpful for you, Erick! I will not stop, especially since I have been posting videos at 11 years and it is just too much fun! The detailed video story takes a lot of time to plan, film, edit and upload - but I would not do it any other way. If these help, please help support the cause by supporting with comments and thumbs ups on each video and a Subscription : ) Good news, Erick, there are many many more videos to come and over 3000+ videos posted for you to search for just the topic you want : )

  • @GeertDelmulle
    @GeertDelmulle 5 ปีที่แล้ว +15

    Thanks for the video and the clarification, Mike. As per usual your visuals are the best and a huge help in clarifying how it all works!
    Other channels -- although professional (apparently) -- do such a lousy job "explaining" how it works (they just talk around the subject), and show nothing to support the explanation. Unbearable for us who are spoiled by your level of teaching.
    Indeed, the easiest explanation is the best: "in the total row the CROSSFILTER measure does not filter out any records and therefore it gives the overall total, including the count of units for the unmatched record in the dBooks table.

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว +12

      I can not even put into words how much I appreciate you saying, out loud Geert, that the resources I create explain well. I agree that my video story telling, to help reveal "complicated topics as less complicated topics", is mostly unmatched in the world, and this includes all the smartest book writers and bloggers in the world. As I have mentioned before, I just can't seem to get the free resources out to more of the people who want them, people like you who want to take the time to learn well, learn the whys, and then have fun applying the concepts in creative ways to solve problems... If only I new how to market free resources better... Thanks, Geert : )

    • @ricos1497
      @ricos1497 5 ปีที่แล้ว +2

      @@excelisfun Well I'd like to thank Geert. The way Geert explains his thoughts on your videos is so clear, with all the supporting evidence, explaining why he finds them so useful. In fact, Geert, I think your comments of appreciation for Mike are the best of all the comments on youtube!
      Basically, I agree with Geert. Phenomenal videos Mike.
      Could you do a video on the many to many relationship between my comments on Geerts comments on your videos?

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

      @@ricos1497 , Thank you Rico S and Geert : ) : )

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

      Geert ... other channels have usually a beautiful girl shown in front of tables, they spend time on showing how to change colors on chart, make things nice but no substance. Here a bald guy actually delivers the goods. What difference.

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

    You are awesome.

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

      Glad the video helps : )

  • @laviedandre
    @laviedandre 5 ปีที่แล้ว +6

    Table expansion is powerful but it's also one those more abstract DAX concepts (like context transition). Love how you included it and showed the implications side-by-side with the CROSSFILTER approach. Thank you, as always!

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      You are welcome, Andre! I am happy that the side-by-side action was fun and helpful! Thanks for your support : )

  • @MalinaC
    @MalinaC 5 ปีที่แล้ว

    I love the solution and "Bil Power Query Poet Szysz" nick ;)

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      I just made up most of those books, for fun with out Team!!!! Glad you love this, Malina : )

  • @nimrodzik1
    @nimrodzik1 5 ปีที่แล้ว +2

    Thank You Mike. It was great video :)

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      You are welcome, nimrodzik1!!!! Thanks for your support : )

  • @SyedMuzammilMahasanShahi
    @SyedMuzammilMahasanShahi 5 ปีที่แล้ว +2

    Beautiful work. Thanks Mike for the share.

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      Yes, Sir!!! I am happy to share the fun : )

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

    Hello Mike, i also want to join in into the grateful community here. I like, u also show possible obstacles first and then how to resolve them. I focusd now in Power tools and Power BI since about one year (sorry Im german lols) since I took a class on EDX Platform. The lecturer from Davidson college uses DAX "Userelationship" to fix the "Many to Many-Relationship". ofc Im aware there are always many roads to Rome .... but I feel still uncertain when to use. Maybe its worth an extra topic in EMT/PBIMT? i watched for a while your amazing helpful videos: Maybe u covered it already , but still lot of fun(work) to do for me...

  • @shadow_gaming_sk
    @shadow_gaming_sk 5 ปีที่แล้ว +2

    Thanks Mike u r sharing good knowledge to all👍

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      Yes, that is my intent : ) Thanks for your support, chinna k!!!!!!

  • @chrism9037
    @chrism9037 5 ปีที่แล้ว +2

    Powerful stuff Mike! Fantastic!!

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      Thanks, Chris!!! I am glad that you get this power!!!!

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

    Great video! Thanks for making it understandable

  • @xiaojienan7891
    @xiaojienan7891 11 หลายเดือนก่อน

    hi me again, the pdf notes and links etc were unable to be download. if not too much trouble to fix it. thanks very much!

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

    Just to re iterate, there's a word we know and love, everything in previous comments.

  • @usedcarsuae.
    @usedcarsuae. 5 ปีที่แล้ว +3

    Great informative video 💟

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      Glad it is informative!! Thanks for your consistent support, Qasr : )

  • @georgetosounidis5545
    @georgetosounidis5545 5 ปีที่แล้ว +2

    Thank you so much for this, it was simply amazing!!! Congratulations for your excellent work!!

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      You are welcome so much, George! Thanks for your comment, Thumbs up and your Sub : )

  • @JIMMYLoki1
    @JIMMYLoki1 5 ปีที่แล้ว +2

    You are making me a star, I really appreciate

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว +4

      Yes, I love to hear that, Loki!!! You aer a Star!!!! Do NOT forget your duty, since I am helping to make you a star, for you to help get these free resources to more humans in the world with your comments and thumbs ups on each video that you watch : )

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

    Thank you for the great video Mike and great explanation as always

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      You are welcome, Katerina!!!

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

    Came here after a long time Man!
    And this video is still Awesome, Thanks, Mike!

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

      Yes!!! You are welcome! Great to see that you are keeping it Sane with MSPTDA : )

  • @gentle2005phir
    @gentle2005phir 5 ปีที่แล้ว

    Super!!!!!!!👍👌 Duper, intense,
    cross filter, many to many, both, bridge
    Mike this excelisfun!!!!

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

    amazing as always.

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

    My head exploded.

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

    GOOD GOOD GOOD!!!!

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

    Hello. Thanks for such videos. I have just 1 question. If for instance, first we unpivot columns (AuthorID-1, AuthorID-2) in table dBooks, how we achieve the same results? for instance, if we have the same 3 tables, with only difference that dBooks has 1 colomn AuthorID, and we have the same goals, how can we do that? Thanks in advance

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

    WOhh!!.. Just opened my mind .....It was really amazing video Mike especially Bridge Table as a filter argument to Calculate to remove unmatched rows from Dim Table...

  • @ismailismaili0071
    @ismailismaili0071 5 ปีที่แล้ว

    I'm still not that familiar with Power BI

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      But when you want shareable and interactive visualizations, it sure is nice : )

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

    well done!

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

    Amazing!!

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

    Thanks

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

    Thx very much great job

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

      You are welcome!

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

    top

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

    Thanks Mike! Question: If, to the bridge table, you add a PK that also was in fact table as a FK, would you be able to make that connection, thereby making unnecessary the dBooks connection to the fact table? Would this be an improvement to the model?

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

    Fantastic video Mike. Would you mind expanding this topic to include the impact of RLS across the many to many/bridge table?

  • @lawrence2786
    @lawrence2786 5 ปีที่แล้ว

    Thanks for the great videos and tutorials.
    I love them all. 2 related questions.
    1. What would you recommend the best way to pass a parameter to PowerQuery/PowerPivot before refreshing the data (like a date range or Branch in order to reduce the query size). I want to enable users to do this who would not have the knowledge to edit the Query.
    2. Can one pass a parameter / edit a step in PowerQuery/PowerPivot via VBA code?

  • @calvoenterprises7711
    @calvoenterprises7711 5 ปีที่แล้ว

    @excellsfun can you make a simple account receivables using different sheets. thank you

  • @wayneedmondson1065
    @wayneedmondson1065 5 ปีที่แล้ว

    Hi Mike.. another excellent video. Thanks for the lesson on Bridge Tables and how to make them work. Thumbs up!

  • @johnborg6005
    @johnborg6005 5 ปีที่แล้ว

    Thanks Mike. Geert comments are so true. I can't thank you enough for all the material I get from you. :)

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

    This was an outstanding explanation of how to introduce a bridge table to overcome the limitations of the many-to-many relationship. I really enjoyed the PowerQuery transformation of Unpivoting Other Columns to generate the bridge table so effortlessly. It was also informative to hear that it is preferable to explicitly define the relationship in the DAX calculation by both using CROSSFILTER and the "Expanded Table Concept" thus avoiding the risk of ambiguity in bigger data models. Thank you for the great introduction to many-to-many relationships in Data Modeling.

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

      You are welcome, TP : )

  • @mohamedchakroun4973
    @mohamedchakroun4973 5 ปีที่แล้ว

    Thanks Mike millions thanks for the effort of teaching us secrets tricks of Excel

  • @ogwalfrancis
    @ogwalfrancis 5 ปีที่แล้ว

    As always, Awesome Videos only, Thank u so much Mike.

  • @goutamporel3119
    @goutamporel3119 5 ปีที่แล้ว

    Sir i am your fan, sir i have a excel problem, excel contain huge data and formula thats why excel size about 50mb, now and then excel open and sometimes excel not open please suggest how to run this excel smoothly for ever

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      I have no idea. You have not provided any specific detail. Help will require extensive back and forth dialog during consult engagement, for me. For free help and back and forth dialog, try this amazing Excel question site: mrexcel.com. When you post, provide people with clear details so they can try and help.

  • @zt.5677
    @zt.5677 4 ปีที่แล้ว

    I have not visited ExcellsFun for some time. It is still rock hard excellent. It is good to know that it is still being updated and managed. Thank you, Mike!

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

      Are you subscribed, so you know when videos are posted? You are welcome for the material, M. SZ.

  • @billk1917
    @billk1917 5 ปีที่แล้ว

    Is there a trade-off between using the Crossfilter approach as opposed to using the Tablefilter approach? The tablefilter looks a little easier to me.

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      Yes, Table Filter will send all filters backward across Many To One Relationship, CROSSFILTER just activates the one relationship.

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

    you are taking me from zero to hero, i thought i should learn power pivot, but i ended up become a fan of power query.
    thanks mike

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

      Yes, Power Query is the key to everything becasue if the data is no good, everything that follows in no good ; )

  • @clarkwang2945
    @clarkwang2945 5 ปีที่แล้ว

    Extremely clear explanation on those table connections and this is very helpful to beginners for sure. Thanks Mike.

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      You are welcome, Clark! There is almost nothing more fun than getting the Data Model just right for your report : )

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

    Thank you.

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

      You are welcome, Henry!!!

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

    Thanks for another stellar video - it's cool to see how to do these data evaluations in 3 (or more) ways.

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

      Yes, always multiple ways to have fun with Excel : )

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

    Great explanation! The best teacher in the world!

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

      Glad you think so!

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

    Very informative. Thank you.

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

      You are welcome for the bridge to useful information, Hendrick!!!

  • @Durikru
    @Durikru 5 ปีที่แล้ว

    Magic! Live and learn. Спасибо!

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      Glad you like it and thanks for your support,
      Денис Малев!!!

  • @Sal_A
    @Sal_A 5 ปีที่แล้ว

    Is it safe to say, bi-directional filter is primarily used for bridge tables when there is a many to many relationship?

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      No, there are other uses also, like if you need to jump backwards across a many-to-many relationship to make a calculation, but I tend to do that with formulas, like with Table Filters that I have shown in the past...

    • @Sal_A
      @Sal_A 5 ปีที่แล้ว

      @@excelisfun Gotcha. When there is a many to many relationship do you always need a bridge table or use cross filter/table filter in order to make a calculation in Power Pivot?

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      @@Sal_A We always need some method to pass a filter from a Many Side to a One Side, whether bi-directional filter, CROSSFILTER or Table Filter. This is TRUE whether or not we have a Bridge Table. Bridge Tables are for when there is a Many-To-Many Relationship.

    • @Sal_A
      @Sal_A 5 ปีที่แล้ว

      @@excelisfun Ah! Thanks for the clarification.

  • @abdulazizalduhayan5026
    @abdulazizalduhayan5026 5 ปีที่แล้ว

    thanks mike

    • @excelisfun
      @excelisfun  5 ปีที่แล้ว

      You are welcome, Abdulaziz!!!!!

  • @taintsweatnope5093
    @taintsweatnope5093 5 ปีที่แล้ว

    First of all THANK YOU FOR ALL YOU DO!!
    Off topic of this videos topic, is it possible to reference different tabs with cell content?
    I have a workbook with 30+ tabs and am looking for a simple way to capture data from all/different tabs on a summary page.