#4 DAX Fridays! 101: What is Context transition in DAX?

Поделиться
HTML-код
  • Опубликовано: 2 ноя 2024

Комментарии • 109

  • @Rapaz-v9n
    @Rapaz-v9n 4 года назад +24

    None of the various videos explaining context transition, even from SQLBI, had so much assertiveness in demystifying the context transition in DAX.
    This is the million dollar video.
    Thank you.

  • @supersayan9888
    @supersayan9888 3 года назад +2

    Your my Hero Ruth!
    I went from SQLBI Mastering DAX course to your video to understand context transition. A milion dollar video indeed.
    Gracias!

    • @Aussiepeoplestats
      @Aussiepeoplestats Год назад +2

      SQLBI is a great course but even they haven't been able to dumb down why SUM ignores the row context. This video is the only resource that breaks it down in an easy to understand manner.

  • @dmytroandriychenko4714
    @dmytroandriychenko4714 3 года назад +3

    The easiest and the best explanation of context transition I have seen so far!!! Brilliant work, Ruth, please keep it up, you are awesome!

  • @brunof.s.8186
    @brunof.s.8186 4 года назад +9

    oh my god, context transitions are my personal demons in learning dax.... must face it now! thank you Ruth!

    • @CurbalEN
      @CurbalEN  4 года назад +1

      Will do more on the topic soon :)
      /Ruth

  • @t.g.399
    @t.g.399 Год назад

    Your teaching method is the easiest to understand by far. Thank you🎉

  • @alt-enter237
    @alt-enter237 Год назад

    Nice job! I am searching for ways to explain row to filter context transition and this is the simplest, most elegant explanation thus far!

  • @marcoantoniobajanabarahona3300
    @marcoantoniobajanabarahona3300 3 года назад +1

    I love you Ruth how you explain such a complex concept in something so easy in 5 minutes. Excellent video

  • @bradj229
    @bradj229 4 года назад +1

    Your videos are always great! Very informative and easy to understand. However, your transparency of where you stumbled when originally learning what you're now teaching is my favorite part and why I like your content more than anyone else's! It reminds me that tripping up is part of the learning process. Keep up the wonderful work!

    • @CurbalEN
      @CurbalEN  4 года назад +1

      It sounds like we have similar learning styles!! ;)
      /Ruth

  • @gonzalofuste
    @gonzalofuste 10 месяцев назад

    coincido con muchos comentarios; explica de forma facil y se entiende a la primera incluso de forma mas clara que otros canales con mas "renombre". Enhorabuena.

  • @kumanan4u
    @kumanan4u 4 года назад +2

    The best explanation for context transition. You nailed it

  • @AyowumiOgunjobi
    @AyowumiOgunjobi 2 года назад

    You gave an easy to understand explanation to a difficult concept. Thanks a lot.

  • @laurenceabrahams3996
    @laurenceabrahams3996 Год назад

    The best explanation I heard so far , Thank you (PBI Trainer) 👏

  • @MichaelBrown-lw9kz
    @MichaelBrown-lw9kz 3 года назад

    This is an excellent explanation. It is tricky explaining how the CALCULATE function creates a filter context.

  • @jandersonaraujo7796
    @jandersonaraujo7796 4 года назад +1

    The best explanation about context transition ever!

    • @CurbalEN
      @CurbalEN  4 года назад

      Thanks!! 🥳🥳

  • @AbhijeetVishal
    @AbhijeetVishal 4 года назад

    Thanks Ruth, have read so many articles about context transition, but nowhere it has been explained so well 😊

  • @square007tube
    @square007tube 4 года назад +1

    This is Awesome DAX video, simple and informative. Well done Ruth!

  • @minurapunchihewa4592
    @minurapunchihewa4592 4 года назад +1

    Hi Ruth,
    Amazing video, I just wanted to make a small clarification.
    This article on sqlbi actually presents the opposite argument, from what I have gathered. According CALCULATE introduces filter context to calculations, not row context,
    www.sqlbi.com/articles/understanding-context-transition/
    I am just a little confused. Could you tell please clear this up for me?

  • @dicky4780
    @dicky4780 4 года назад +1

    Thank you DAX just made more sense than it did 5 minutes ago before wathcing your video

  • @benhalicki9749
    @benhalicki9749 3 года назад

    Great explanation! DAX does my head in...

  • @ravishmahajan9314
    @ravishmahajan9314 2 года назад

    Do you know you are the best teacher on PowerBI on RUclips?
    No you don't know.

    • @CurbalEN
      @CurbalEN  2 года назад

      And you are awesome ☺️

  • @alinasamburska867
    @alinasamburska867 3 года назад

    Thank you soooo much! You gave an easy explanation of such a difficult-to-understand concept.

  • @gxsoft
    @gxsoft 4 года назад +1

    Nice explanation of CALCULATE() and context filter, thanks

    • @CurbalEN
      @CurbalEN  4 года назад

      You welcome 🙏!
      /Ruth

  • @RobertoStaltari
    @RobertoStaltari 4 года назад

    Nice and clean way to explain context transiction. Thanks Ruth

    • @CurbalEN
      @CurbalEN  4 года назад

      Thanks 2 u and happy friday!
      /Ruth

  • @marilenadonofrio9787
    @marilenadonofrio9787 2 года назад

    Bravissima Ruth! 👏👏👏👏👏

  • @tlee7028
    @tlee7028 2 года назад

    Da Best CT tutorial ! Thank you 😊

  • @solarson_studio
    @solarson_studio 4 года назад

    Thanks Ruth! This is a great example to make sense context transition! I am learning this concept from SQLBI as well, actually a measure already had a hidden calculate()there. If you can have another video in the future to talk about context transition pros & cons, and it should be wonderful. I learned context transition cannot work well when we have duplicates, but I still want to understand deeply on that.

  • @kahhengyeong7947
    @kahhengyeong7947 4 года назад

    Oh my god, I've been using PBI for years already and yet I didn't know about this! And I sometimes still get mixed up with SUM and SUMX because many times they give the same result. Very appreciate these info as it's good to go back to basics :)

    • @CurbalEN
      @CurbalEN  4 года назад +1

      Will continue with this series :)
      /Ruth

    • @kahhengyeong7947
      @kahhengyeong7947 4 года назад

      Cool! And probably would be good to know if CALCULATE(SUM) is actually the same as SUMX?

  • @svenkatjkn
    @svenkatjkn 4 года назад

    Awesome explanation!

  • @shyamthakur9799
    @shyamthakur9799 4 года назад +2

    Hi,
    Your video's are very helpful...
    Can you make vdo's on Azure with power bi..✌️

    • @CurbalEN
      @CurbalEN  4 года назад +1

      Anything in particular you would like to see?
      /Ruth

    • @shyamthakur9799
      @shyamthakur9799 4 года назад +1

      @@CurbalEN The way you explain most of things...it makes so easy to understand.
      So may be you can make vdo's for BI guys using Azure world for there reporting purposes....if possible then you can make vdo's on following flow ( Multiple source data upload in azure > consolidation in azure > transformation in azure > uploading in azure Analysis service > power bi > uploading in cloud > sharing )

  • @asideofrice
    @asideofrice 4 года назад

    Another great thing to go over would be why certain calculations completely remove the context in a matrix. Example add + 0 to your measure for the purpose of dividing and getting 0 instead of blank. (There may be a better way, perhaps ISBlank to differentiate)

  • @feng3625
    @feng3625 16 дней назад

    It is the best of the best! So COOL!

  • @samuelmanseau6905
    @samuelmanseau6905 4 года назад

    Congratulations (recommanded by Guy in a Cube!) et Merci Beaucoup for that clear explanation !

  • @kaistasch4028
    @kaistasch4028 2 года назад

    Thank you very much. I watched several videos and I did not get it until now.

  • @bc67
    @bc67 4 года назад

    I like this topic! Can you explain why measures DO see the rows as filters? :) I've read that we use measures when we want to aggregate values from many rows in a table, but I'm confused by that. I view "aggregate" as being synonymous with "Sum." So based on that description, I'd expect to see the result that the calculated column in your example produced.

    • @reed311
      @reed311 2 года назад

      Measures are always surrounded by an implicit Calculate. It wasn’t discussed in this video but really needs to be talked about to get the entire picture.

  • @bravucod
    @bravucod 4 года назад

    Thanks, Ruth that is extremely useful

    • @bravucod
      @bravucod 4 года назад

      Any books that you recommend that will provide a good foundation? Thanks

  • @LA-sw1gv
    @LA-sw1gv Год назад

    fun and objective. thank you

  • @1yyymmmddd
    @1yyymmmddd 3 года назад

    What if you have two similar rows? For example in your example if you have 4 rows instead of 3 4th row being exactly the same as the 3rd row? Would "Sum as CC" give you 500 twice (for row 3 and 4) ?

  • @HarshNathani
    @HarshNathani 4 года назад

    Hi Ruth,
    Thanks for the video.
    Just a quick know how question.
    If measures and calculate columns with Calculate both do a context transition. Why do we prefer measures over Calculated Columns ?? Is it memory space ?

    • @CurbalEN
      @CurbalEN  4 года назад

      Check this video out:
      m.ruclips.net/video/SmXLgEHXSGc/видео.html&vl=en
      /Ruth

  • @FalconFlyer75
    @FalconFlyer75 4 года назад

    question, would the sum be caused by the product name or the discount amount? wouldn't it be the discount amount?
    also great Job on this, I'm taking SQLBI but really struggling (I made it as far as context transition and was on the verge of giving up) I'm glad I found your videos this makes more sense

  • @Phoenixspin
    @Phoenixspin 3 года назад

    Calculate gave Sum a helping hand. We should learn from this. Let's help our fellow human beings.

  • @marioestrada2233
    @marioestrada2233 3 года назад

    Great example!

  • @tipums123
    @tipums123 4 года назад

    Thank you for explaining.

  • @DanW0416
    @DanW0416 4 года назад

    Thanks. Very good explanation. You might want to add a duplicate row to the table and show what happens then as I believe that also will produce unexpected results, correct?

    • @CurbalEN
      @CurbalEN  4 года назад

      Will do on next video ;)
      /Ruth

  • @pabeader1941
    @pabeader1941 4 года назад +2

    But how does it know that Product is the filter for Calculate? Isn't Discount just as usable as a filter for Calculate?

    • @CurbalEN
      @CurbalEN  4 года назад

      Great questions, one step at a time :)
      /Ruth

    • @trevorhardy9045
      @trevorhardy9045 4 года назад

      I had the same question!

  • @powerbinareal
    @powerbinareal 4 года назад +1

    Sempre top e direto!

  • @Unbox747
    @Unbox747 4 года назад

    Thanks again!

  • @hnp250
    @hnp250 4 года назад

    Could you please do a video explaining the Table Expansion technique? Thank you in advance!!

    • @CurbalEN
      @CurbalEN  4 года назад

      I dont know what that is?
      /Ruth

  • @MrRohanroxx1
    @MrRohanroxx1 2 года назад

    Why do switch statements or if give correct results in calculated columns then ?

  • @GrandizerIntali9
    @GrandizerIntali9 4 года назад

    Thanks for the tip !

  • @Phoenixspin
    @Phoenixspin 4 года назад

    So simple, yet so complex.

    • @CurbalEN
      @CurbalEN  4 года назад

      And that is why we love it, isnt it?
      /Ruth

  • @mahikakhare
    @mahikakhare 4 года назад

    Wow.. didn't knew this👍👍

  • @vishaljhaveri7565
    @vishaljhaveri7565 Год назад

    At 5:53, Calculate Sum where Product = "Queso Cabrales".
    Why not Calculate Sum where Discount=10??
    I mean on basis of which column it is calculating the value?

  • @rizkyramdhany4549
    @rizkyramdhany4549 Год назад

    Thanks!!

  • @arklur3193
    @arklur3193 4 года назад

    Another thing would have been interesting to show here, writing this when adding a new column to the table: Sum as CC2 = [Sum as measure]. The result might not be what you expect!

    • @CurbalEN
      @CurbalEN  4 года назад

      Will talk about it in another video!
      /Ruth

  • @adan8657
    @adan8657 3 года назад

    Tengo que comentar esto:
    Después de tantas horas de aprendizaje de Dax, después de cientos de [products names] pasando ante mis ojos, ver el queso de cabrales en una matriz de Power BI me ha hecho feliz.🥰

    • @CurbalEN
      @CurbalEN  3 года назад

      A mi me paso lo mismo 😍😍

  • @sanjeevsoni6793
    @sanjeevsoni6793 4 года назад

    Great!!

  • @christianstork1049
    @christianstork1049 4 года назад

    Wouldn't this be the time to introduce row context v filter context, i.e., that context transition means the transition from row to filter context?

  • @luisalejandrorodriguezcamp9516
    @luisalejandrorodriguezcamp9516 4 года назад

    I love your video, it's very cool and simple to understand. However, I think you are missing something (or I missed it from your explanation). Calculate does not take any particular columns as context filters, but takes all previous columns. This is very weird, and I learned it the painful way, when trying to add two calculated columns with very similar sintax and getting a circular reference error... maybe for another dax friday...

    • @CurbalEN
      @CurbalEN  4 года назад

      Baby steps ;)
      /Ruth

  • @YazanWael
    @YazanWael 4 года назад

    I think this is confusing. As you said, CALCULATE will return the value per row not per column. But it doesn't look at any value in any other column to use it as a filter. So what you've said in the end @5:48 is not really accurate.
    For example, if we add another row that has "Konbu" sale of 700, it will not affect "Sum as CC" in the existing "Konbu" row.

  • @manofhat676
    @manofhat676 2 года назад

    Thanks

  • @adammachonko7090
    @adammachonko7090 Год назад

    Awesome

  • @seven7189
    @seven7189 4 года назад

    Noob question: so is the calculate function used in a measure just overkill?

    • @jtmh31
      @jtmh31 4 года назад

      If a measure you're using in a visual, it's insanely powerful. Think of it like a supercharged SUMIFS, though it can be used for count, min, max, average, rank and more.
      I don't understand why you would use a calculate here.

  • @monmorelord6368
    @monmorelord6368 Год назад

    is this not that a measure takes on the filter context in a visual while a column measure does not ??? checxk with otehr functions on a column and then put inside calculate ?

  • @sandip_bettereveryday
    @sandip_bettereveryday 4 года назад

    How can 'Context Transition' feature be used effectively somewhere else (in measures) and not in Calculated Columns?

    • @CurbalEN
      @CurbalEN  4 года назад

      I dont know, so many variables that matter...

  • @DanielTavares29
    @DanielTavares29 3 года назад

    Practice, practice, practice hehehe

    • @CurbalEN
      @CurbalEN  3 года назад

      Yep, that is the only way!

  • @powerbinareal
    @powerbinareal 4 года назад +1

    Vou add vc no netflix

  • @sbn4862
    @sbn4862 2 года назад

    I don’t understand what you say at all

    • @CurbalEN
      @CurbalEN  2 года назад +1

      That is a common DAX problem :(

  • @sourabhpatel3834
    @sourabhpatel3834 Год назад

    I am calculating Total sales in two ways but it is providing wrong results
    First way :
    Total sales =
    var sale = SUMX(
    order_details,
    order_details[unitPrice] * order_details[quantity])
    var discount = SUMX(
    order_details,
    order_details[discount] * order_details[unitPrice] * order_details[quantity] )
    return sale-discount
    __________________________________________________________________________________________________
    and the second way ( i am using sale variable):
    Total sales =
    var sale = SUMX(
    order_details,
    order_details[unitPrice] * order_details[quantity])
    var discount = SUMX(
    order_details,
    order_details[discount] * sale )
    return sale-discount
    this two must provide same result ?

  • @Wzxxx
    @Wzxxx 2 года назад

    Thx. I was going crazy trying to understand what is going on.

    • @CurbalEN
      @CurbalEN  2 года назад

      Yeah, we all have been there, it gets better I promise!!

  • @bi2thelly
    @bi2thelly 4 года назад

    Why did it choose products field? If they were not unique records would it still be the same?

    • @CurbalEN
      @CurbalEN  4 года назад

      Will talk about it on another video :)
      /Ruth