Bidirectional relationships and ambiguity

  Рет қаралды 109,878

SQLBI

SQLBI

Күн бұрын

Пікірлер: 188
@atanasprodatanasov9233
@atanasprodatanasov9233 2 жыл бұрын
Brutal! I spent 4 sleepless nights because of that... thank you so much!
@teunkruijer
@teunkruijer 4 жыл бұрын
I can't even begin to describe how happy I am that i found this video. I was about to redesign my whole model to only use one fact table, and all I had to do to get the filters to sync was add a measure. Thank you so much! Great video.
@karannchew2534
@karannchew2534 2 жыл бұрын
Hi, Would you mind sharing more please? What type of measure did you create to get the filters to sync please?
@hasnainhaider8191
@hasnainhaider8191 3 жыл бұрын
man wow, how beautifully he explains and all the tools he uses. a true master.
@harfshortshayari3340
@harfshortshayari3340 3 жыл бұрын
could you please help me in understanding why it worked after applying the visual filter?
@vithaitang6492
@vithaitang6492 2 жыл бұрын
Thank you Mr. Ferrari, I love the way you raise the problem, analyze it and give the solution. Very clear and useful!
@Jackassik
@Jackassik 3 жыл бұрын
My company created a bunch of data models where every possible relationship is bi-directional before hiring me... I told them that I won't touch them and I won't take responsibility for the numbers they display and your video will be a very good example why you need people who knows how to build data models as it's not simply drag and drop. Thank you very much for a very informative and well presented video :)
@bactran7799
@bactran7799 3 жыл бұрын
While looking for a solution for my model that has a lot of bidirectional relationships, I meet Alberto with the amazing video and the answer for my big question. Thank you for your great works, I always appreciate your contribution to make DAX easier to use
@huseyinburaktasci1638
@huseyinburaktasci1638 Жыл бұрын
I noticed the name of the final tab called "Welcome to hell" :D Clearly explains the issue! Thanks for the content, very useful!
@JawadAli-nv9mr
@JawadAli-nv9mr 4 жыл бұрын
I always had issues with ambiguous models. and what I concluded from my report is to never use bi directional filter. I never knew what was the reason. now I got I must appreciate your efforts 👍👍
@kevinlabore1726
@kevinlabore1726 Жыл бұрын
in Summation WOW -- the really explains why you should ALMOST never use bi-directional relationships for purposes of filtering and why you probably should ALMOST NEVER trust a model that does .. in the back of my mind I was trying to figure out how the ambiguity impact things -- great walk through THANK YOU
@Broadmoore
@Broadmoore 3 жыл бұрын
This is the best video I’ve ever seen on ambiguity and relationships. Thank you!
@birasafabrice
@birasafabrice 3 ай бұрын
this has definetely earned you a new sub, you really nailed every part of the clarification needed throughout the tutorial. thanks a lot for this helpful tutorial. I have to learn from you a lot!
@rick_.
@rick_. 3 жыл бұрын
"Welcome to Hell!" I was laughing so much that I had to pause the video to put in this comment! I think the real key to understand why adding the filter to the slicer works is that a slicer is just another visual. All the usual cross-visual filtering rules apply. It's one of those things that is obvious if you think about it at all, but it is easy to fall into the trap of thinking a slicer is just a different way to show a filter. I did.
@MichelMetran
@MichelMetran Жыл бұрын
I discovered the channel today and... congratulations on such quality content! Learning a lot here!
@diederikvankolfschoten47
@diederikvankolfschoten47 3 жыл бұрын
This is a very neat trick to avoid ambiguity!! Thanks! SQLBI is on top of my top 5 resources!
@Bharath_PBI
@Bharath_PBI 4 жыл бұрын
Amazing explanation. Self service BI report developers MUST watch this video. I had to explain this to lot of people and now I can just guide them here 👍 Thank you.
@manuelcometto13
@manuelcometto13 3 ай бұрын
Sono rimasto stupefatto dalla chiarezza della spiegazione. Complimenti davvero
@brianligat9493
@brianligat9493 11 ай бұрын
Just as I was looking at this, I found this video and it answered everything. Thanks Alberto. I think PBI should give a warning if it detects alternate fllter paths. If it would be difficult to explain such ambiguity to a non-technical person, then the design should be changed. The stakeholders/consumers will lose trust and confidence if something is happening that cannot be understood.
@dsfshshfhgsghs
@dsfshshfhgsghs 3 жыл бұрын
What a good teacher you are, Alberto! Fantastic explanation! Tante grazie!
@preethul1
@preethul1 3 жыл бұрын
Excellent. So well explained. I would have never understood the consequences of bidirectional if I didn't bump into this video. Thanks a lot.
@TrungNguyen-jy2bc
@TrungNguyen-jy2bc 2 жыл бұрын
Amazing sir! The solution is so elegant that I have to clap when I saw it!
@mau_lopez
@mau_lopez 4 жыл бұрын
Great video, very clear and well done, thanks Mr. Ferrari. I would just emphasise that that the problem presented doesn't come only from using the bidirectional relationship, but it comes form using the bidirectional relationship IN a loop, because in a purely star schema no ambiguity is created when using bidirectional relationships. This would be just to reinforce what is already a great explanation!
@SQLBI
@SQLBI 4 жыл бұрын
True - but you have to be sure you'll not add other fact tables to the same model sharing the same dimensions... in the future
@rawalkarnikita2947
@rawalkarnikita2947 11 ай бұрын
Thank you so much Sir for posting this valuable video. I can't express my gratitude towards you that how much I was needed this video. Thank you again 😊
@dbszepesi
@dbszepesi 4 жыл бұрын
Such an important video. I keep seeing bi-directional relationships in model and model and my concerns usually fall on deaf ears. Great to have a very detailed video to point people to now. Something not discussed here but I thought I remembering seeing in the video training that SQLBI does - the bidirectional relationships can also slow performance because they tend to keep the model from being able to choose the optimal path.
@SQLBI
@SQLBI 4 жыл бұрын
yes bidirectional filters can also affect performance, but first of all you need to get right numbers!
@albinlabelle
@albinlabelle 3 жыл бұрын
Thank you for this clear explanation (love the handwritten arrows on top of the modeling view !). Aside from the ambiguity arising from the use of a bidirectional relationship (which I manage to keep away from), I discovered a neat way to show only relevant choices in slicers !
@Istion2991
@Istion2991 2 жыл бұрын
Amazing explanation. Fixed the problem I didn't even know how to frame a question around.
@rafaelmiralha5995
@rafaelmiralha5995 2 жыл бұрын
Thank you very much for these videos Alberto and SQLBI! Learning a lot about DAX!
@florin996
@florin996 4 жыл бұрын
Really easy to understand, as always great job. Thank you SQLBI team for your amazing work.
@ongkamsiong
@ongkamsiong 7 ай бұрын
You provided much better insight about bidirectional filter than Microsoft documentation / training.
@tuliofernandopinillosalegr3799
@tuliofernandopinillosalegr3799 2 жыл бұрын
Excelente exposición!!! Eres lo máximo Alberto Ferrari.
@Hurairahgiri
@Hurairahgiri 2 жыл бұрын
Wow. I am taken aback by the explanation. Much love!
@joseaugustocarvalhofilho3506
@joseaugustocarvalhofilho3506 9 ай бұрын
Excellent explanation! Congrats for such a great work!
@gborka
@gborka 3 жыл бұрын
Thank you a lot. Really happy to find this channel.
@sachin.tandon
@sachin.tandon 4 жыл бұрын
Very elegantly explained. Using the side Filter Pane would not have occured to me. I would have edited the Sales Measure by using CROSSFILTER. But I think the Filter Pane, does the job just as well!
@alessandrocadenelli5849
@alessandrocadenelli5849 4 жыл бұрын
yes, but you have to do anyway the 'trick of filter pane' if you want to "synchronize" the two slicers...so two birds with one stone..
@lovebites4098
@lovebites4098 9 ай бұрын
I was facing the same issue and was stuck trying to figure out how bidirectional works from the last 2 days. I tried to check if it works like sql joins but still the result was ambiguous showing a greater value than that in sql. Thanks a lot for making this content. For slicer u used 'is not blank' filter. but i have direct column from 2 unrelated table(not connected directly, although connected through other tables, but flow non-unidirectional) and that too numerical(sum of amount). But now i hope i will figure it out how is it working in my case. thanks a lot lot sir. its much much informative and helpful.
@MahmoudSamir7oda
@MahmoudSamir7oda 3 жыл бұрын
Thank you Alberto i have been looking at that trick for weeks since i have similar business problem. Glad i came a croos the video. 🤗
@Robay146
@Robay146 2 жыл бұрын
This is a classic lesson. Thank you! Big up!
@AnhTuan-fv2kn
@AnhTuan-fv2kn 2 жыл бұрын
Thank you very much for these videos Alberto and SQLBI
@bluesage1528
@bluesage1528 3 жыл бұрын
Fantastic explanation and presentation! Thank you so much.
@DawoodChoudry-r3j
@DawoodChoudry-r3j 2 ай бұрын
Great Explanation Sir!! Keep it up👍
@fadwa2413
@fadwa2413 3 жыл бұрын
I LOVE YOU Alberto !! YOU ARE THE LEGEND
@nishanthvarmas8568
@nishanthvarmas8568 Жыл бұрын
Oh my goodness, such a beautiful explanation. Wow Man!
@ThePasserby76
@ThePasserby76 3 жыл бұрын
Hello Alberto. Have just found your channel. Awesome video. Just one request - pleaseeee do more examples on ambiguity. Really helps us the beginners.
@Zenith40450
@Zenith40450 2 жыл бұрын
Really loved the tab you named "Welcome to Hell" 😀😀😀😀
@27sreeni
@27sreeni 2 жыл бұрын
Really Really Superb explanation, I love your videos .. one request if any monthly enable SQLBI its really helpful to me
@raitup00
@raitup00 2 жыл бұрын
Omg! Good problem, great explanation and excellent solution
@rachitgoyal521
@rachitgoyal521 3 жыл бұрын
Amazingly explained such a complex scenario.. Kudos!
@vijaynrao2499
@vijaynrao2499 Жыл бұрын
Great! Really really great examples and explanation!
@barishazar5908
@barishazar5908 4 жыл бұрын
Useful content, poetic explanation...Suberb teacher
3 жыл бұрын
Love this one, a true best pratice that can change life and model design
@Nura853
@Nura853 2 жыл бұрын
Thank you for clear and precise explanation!
@CharudattaAmbekar
@CharudattaAmbekar 3 жыл бұрын
Thanks! This quick solution of visual filters is possible only in Power Bi. In Excel, we use 'Crossfilter' in the measure formula.
@dhiraj3933
@dhiraj3933 Жыл бұрын
This is a great! I need to try this next time I come across situation like this.
@RonaldPostelmans
@RonaldPostelmans 4 жыл бұрын
Nice explanation, i now finally understand ambiguity and now why i can not use bidrectional filters
@RACHIMSAJA
@RACHIMSAJA 4 жыл бұрын
Very insightful! Thanks for the knowledge master🙏
@dariuszspiewak5624
@dariuszspiewak5624 3 жыл бұрын
Hi Alberto. I think it would stand to reason to also mention that if someone uses USERELATIONSHIP and/or CROSSFILTER, they should always make sure that such a manipulation does not transforms the model into an ambiguous one.
@whdea3426
@whdea3426 4 жыл бұрын
So, the filter actually applies the crossfilter at the backend, this was not known to me , thanks a lot
@monicaosetkowski1542
@monicaosetkowski1542 4 жыл бұрын
Mind blown! I need to try this. Thank you
@wexwexexort
@wexwexexort 3 жыл бұрын
Great explanation. You just earned a new sub sir.
@phoenixsandy74
@phoenixsandy74 4 жыл бұрын
Wow. This is so informative and useful.
@ooooFISCHERoooo
@ooooFISCHERoooo 4 жыл бұрын
Cool. And yet so simple. Love the sheet name “Welcome to hell” 😂
@williamrodriguez2694
@williamrodriguez2694 3 жыл бұрын
Literally busted out laughing when I saw that!
@ExplorandoDatos
@ExplorandoDatos 4 жыл бұрын
Fantástico! Thank you MAESTRO!
@tomreborns5739
@tomreborns5739 2 жыл бұрын
Thanks you to make it so clear and easy ! without avoiding to dig in detail :) Make times fresher to me haha
@evalang4435
@evalang4435 2 жыл бұрын
Absolutely perfect, thank you so much for this video
@goolamfareedbangie510
@goolamfareedbangie510 Жыл бұрын
This video is great but I'm not allowed to apply the measure on a visual if the visual is a card
@gpdoc4699
@gpdoc4699 4 жыл бұрын
Very well explained. Thanks Alberto.
@Ronnet
@Ronnet 8 ай бұрын
Would've liked to see the "welcome to hell" calculated metrics before and after removing the both directions relationship.
@olgaitskova8542
@olgaitskova8542 2 жыл бұрын
This is amazing, thank you so much for this video!
@DanielADamico
@DanielADamico 4 жыл бұрын
Excellent Video as Always!!
@shantanudeshmukh4390
@shantanudeshmukh4390 3 жыл бұрын
Such a nice explanation !!
@sukoi2113
@sukoi2113 4 жыл бұрын
Very nicely explained. Thank you so much.
@DanielTavares29
@DanielTavares29 4 жыл бұрын
Ciao, friends! Enjoy DAX! Thanks for sharing
@oliveroshea5765
@oliveroshea5765 4 жыл бұрын
Alberto is the "data monster"!
@wasserslasken
@wasserslasken Жыл бұрын
Thank you for a great video. I'm a newbie and am a bit confused as to how the direction of filtering goes when you apply a filter on the visual in the end of the video. It seems the cross filter direction does not affect that, since a filter on sales has an effect on product.
@New2you09
@New2you09 4 жыл бұрын
Your videos are amazing.
@inerasmodellfornyttokalkyl1201
@inerasmodellfornyttokalkyl1201 2 жыл бұрын
Fantastic video!
@MohamedHassan-fo3no
@MohamedHassan-fo3no 9 ай бұрын
Finally understood it right!!
@danielhowe4460
@danielhowe4460 7 ай бұрын
Thank you for providing this detailed video on ambiguous models. There isn't a lot of information out there, so this is very much appreciated. Though, I only see a problem if you have a model with two fact tables. If you keep things simple (single fact table, multiple dimension tables), there should be no opportunity for multiple paths, correct? Therefore the model wouldn't be ambiguous?
@nevermore17011990
@nevermore17011990 3 ай бұрын
this video islike a movie of DAX !
@ahamedyasar4722
@ahamedyasar4722 3 жыл бұрын
wonderful explanation... thank you...😀
@kashifhaque2085
@kashifhaque2085 Жыл бұрын
This is very helpful, thanks!
@kg1610
@kg1610 3 жыл бұрын
Thanks for explaining this, much appreciated.
@kg1610
@kg1610 3 жыл бұрын
Alberto, can you read this thread on the same topic. If you have any thoughts please comment. www.reddit.com/r/PowerBI/comments/kqsy0v/filter_direction/ Thanks for all the insight you have been sharing.
@SQLBI
@SQLBI 3 жыл бұрын
You should avoid bidirectional filters in the model, use them in the measures only if possible. Best practices, workarounds, and explanations here: www.sqlbi.com/articles/syncing-slicers-in-power-bi/ www.sqlbi.com/articles/bidirectional-relationships-and-ambiguity-in-dax/
@madroneroc
@madroneroc 2 жыл бұрын
Great, thanks! Would be interesting if you have a video on when is a good time to use bi-directional relationships?
@SQLBI
@SQLBI 2 жыл бұрын
Beside limited cases (like implementing security patterns or physical implementation of M2M cardinality relationships - see sqlbits.com/Sessions/Event18/Different_types_of_many-to-many_relationships_in_Power_BI), it's almost never a good idea to enable bidirectional filters in the model, while it makes perfect sense in specific measure where you can control the side effects of it.
@harfshortshayari3340
@harfshortshayari3340 3 жыл бұрын
I do not understand how it worked, how it is filtering colour? Can anyone please help
@rezag.7349
@rezag.7349 2 жыл бұрын
Thank you for this useful video. Would it be fair to say that the ambiguity issue which you describe would not be an issue in a Star Schema w. one fact table (where Dimensional tables only reach to each other via the Fact table)?
@SQLBI
@SQLBI 2 жыл бұрын
Yes, but it will appear the day you add another fact table, and at that point removing the bidirectional filter would break existing reports.
@FahimWahid-g2t
@FahimWahid-g2t 11 ай бұрын
I couldn't understand why filtering could make the data sync. Can you give me a simple example? By the way, Great video, thanks a lot.
@marilenadonofrio9787
@marilenadonofrio9787 3 жыл бұрын
Grazie! Chiarissimo come sempre.
@muhammadraza3290
@muhammadraza3290 3 жыл бұрын
Thanks a ton for the great explanation!! I tried it out and worked perfectly! However, if I want to influence from lets say the customer dimension, a measure in the products table, then this does not seem to work. Would you be so kind to help?
@karannchew2534
@karannchew2534 2 жыл бұрын
Notes for my future revision 6:05 A bi-directional relationship created two paths that link Date and Purchases. Yellow and Red. That's why the model is ambiguous. Yellow: direct link. Red: through Sales and Product. // A table can flow to another table by relationship via only one path. Multiple paths create ambiguity. // Here, Purchase table has relationships to both Date and Product. //These relationships affect filter going into Purchase, which is usually OK and is a typical star scheme. // However, with the bi-direction link into Product, Date now also reaches the Purchase table through another path (Date-Sales-Product). There are two separate paths from Date to Purchase. IF ANY TABLE REACH ANY ANOTHER TABLE THROUGH MORE THAN ONE PATH, THE DATA MODEL RISK BEING AMBIGUOUS 8:10 Sales is filtered by Customer and Dates. Which one being used? 8:38 Purchase can be calculated by including: 1. Customer and indirect Date filter 2. Direct Date filter 3. Customer and indirect Date filter (with direct date filter removed)
@abdulbasitbello2381
@abdulbasitbello2381 2 жыл бұрын
Can someone please explain why filtering the color slicer by non-blank sales gives us a dynamic slicer? I can't seem to wrap my head around the idea.
@smithp3302
@smithp3302 2 жыл бұрын
Hello Alberto, thanks for putting this video together. Very helpful! I do have a question about the sales measure you used and the calculation it performs. Would you be able to share?
@OneNI83
@OneNI83 Жыл бұрын
Good video.Actually what happen in the behind when you add sales measure to the filters as not blank.Can you elaborate?
@mabl4367
@mabl4367 3 жыл бұрын
I guess sales of zero amounts are uncommon but would it not be better so have a measure called "sales exists" and filter on that instead?
@frankgovers8420
@frankgovers8420 4 жыл бұрын
Great, thx, great explanation... there are dax teachers who tell their students to put all the crossfilter in relations in both directions. Here is the reason why you never do this. Great alberto. ( who rides in a maserati! 😄)
@SQLBI
@SQLBI 4 жыл бұрын
It hurts to know that someone promotes bad practices teaching that!
@meradbhima3951
@meradbhima3951 10 ай бұрын
Name of the 3rd Tab is actually make sense🤣😂
@divyasree8773
@divyasree8773 Жыл бұрын
i want to use a column from fact table in the slicer to filter data from dimension table in my table visualization. how to approach this scenario without changing the relationship to bidirectional as my data flows from dim to fact
@SQLBI
@SQLBI Жыл бұрын
Use a measure filter in the slicer with the dimension you want to hide. See www.sqlbi.com/articles/syncing-slicers-in-power-bi/
@luistorres3653
@luistorres3653 3 жыл бұрын
Thank you Alberto and sqlbi team. I have one doubt. Assuming one scenario where only have 1 fact and multiple dimensions. In this case could we use all relationships bidirectional or it is still not recommended? If not recommended, why? Thanks in advance. BR, LT
@SQLBI
@SQLBI 3 жыл бұрын
If you have a plain star schema (not a snowflake schema) with a single fact table, bidirectional filters don't have side effects. But, we still don't recommend them for this reason: if in the future you want to add other fact tables, you are going to break existing reports. If you share dimensions with other fact tables, you have to disable bidirectional filters. Existing reports based on such behavior will no longer produce the same results/behavior. If you think long-term, the additional effort required by creating measure to filter slicers in a report is paid off as soon as the model evolves. Clearly, if you make a huge bet about the absence of future evolution of your data model, you can avoid to worry about these issues.
@luistorres3653
@luistorres3653 3 жыл бұрын
@@SQLBI thank you very much for the quick reply and the insight 😉
@gabrielkn
@gabrielkn 4 жыл бұрын
Very, very well explained! *standing applause
@giacofigueroa
@giacofigueroa 4 жыл бұрын
Unfortunately this cannot be done when the user uses the filter pane to filter the report
@SQLBI
@SQLBI 4 жыл бұрын
Yes, Microsoft didn't implement a UI for that. But if you enable bidirectional filters for that, you know the risk!
@StephanOnisick
@StephanOnisick 3 жыл бұрын
Excellent Example of Crossfilter
@rashmiveena315
@rashmiveena315 3 жыл бұрын
thank you so much for this video. It was of great help. What if the "Color" is not in the slicer but in the visual and the user wants the visual filtered based on selection in "customer" slicer? how do i achieve that?
Filter context in DAX explained visually
24:40
SQLBI
Рет қаралды 28 М.
Propagating filters using TREATAS in DAX
19:18
SQLBI
Рет қаралды 46 М.
SIZE DOESN’T MATTER @benjaminjiujitsu
00:46
Natan por Aí
Рет қаралды 7 МЛН
I was just passing by
00:10
Artem Ivashin
Рет қаралды 18 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 252 МЛН
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 3,4 МЛН
Top 10 Power BI Features You Should Be Using Right Now!
17:24
How to Power BI
Рет қаралды 95 М.
Looking at Power BI Many to Many
8:47
Guy in a Cube
Рет қаралды 162 М.
Handling MULTIPLE fact tables in Power BI
9:02
Guy in a Cube
Рет қаралды 321 М.
When you should avoid using bidirectional filters in Power BI
20:28
Row context in DAX explained visually
21:45
SQLBI
Рет қаралды 19 М.
Using RELATED and RELATEDTABLE in DAX
18:04
SQLBI
Рет қаралды 43 М.
SIZE DOESN’T MATTER @benjaminjiujitsu
00:46
Natan por Aí
Рет қаралды 7 МЛН