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

Поділитися
Вставка
  • Опубліковано 28 вер 2024

КОМЕНТАРІ • 108

  • @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 Рік тому +1

      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.

  • @t.g.399
    @t.g.399 Рік тому

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

  • @AbhijeetVishal
    @AbhijeetVishal 4 роки тому

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

  • @dicky4780
    @dicky4780 4 роки тому +1

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

  • @Rapaz-v9n
    @Rapaz-v9n 4 роки тому +23

    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.

  • @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.

  • @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

  • @marilenadonofrio9787
    @marilenadonofrio9787 2 роки тому

    Bravissima Ruth! 👏👏👏👏👏

  • @kaistasch4028
    @kaistasch4028 2 роки тому

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

  • @MrRohanroxx1
    @MrRohanroxx1 2 роки тому

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

  • @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) ?

  • @LA-sw1gv
    @LA-sw1gv 11 місяців тому

    fun and objective. thank you

  • @powerbinareal
    @powerbinareal 4 роки тому +1

    Sempre top e direto!

  • @manofhat676
    @manofhat676 2 роки тому

    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

  • @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.

  • @powerbinareal
    @powerbinareal 4 роки тому +1

    Vou add vc no netflix

  • @DanielTavares29
    @DanielTavares29 3 роки тому

    Practice, practice, practice hehehe

    • @CurbalEN
      @CurbalEN  3 роки тому

      Yep, that is the only way!

  • @brunof.s.8186
    @brunof.s.8186 4 роки тому +8

    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

  • @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!

  • @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 )

  • @dmytroandriychenko4714
    @dmytroandriychenko4714 2 роки тому +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!

  • @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?

  • @kumanan4u
    @kumanan4u 4 роки тому +2

    The best explanation for context transition. You nailed it

  • @marcoantoniobajanabarahona3300
    @marcoantoniobajanabarahona3300 3 роки тому +1

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

  • @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.

  • @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?

  • @square007tube
    @square007tube 4 роки тому +1

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

  • @gonzalofuste
    @gonzalofuste 9 місяців тому

    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.

  • @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 ?

  • @laurenceabrahams3996
    @laurenceabrahams3996 Рік тому

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

  • @benhalicki9749
    @benhalicki9749 3 роки тому

    Great explanation! DAX does my head in...

  • @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

  • @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!

  • @Unbox747
    @Unbox747 4 роки тому

    Thanks again!

  • @rizkyramdhany4549
    @rizkyramdhany4549 Рік тому

    Thanks!!

  • @adammachonko7090
    @adammachonko7090 Рік тому

    Awesome

  • @sanjeevsoni6793
    @sanjeevsoni6793 4 роки тому

    Great!!

  • @jandersonaraujo7796
    @jandersonaraujo7796 4 роки тому +1

    The best explanation about context transition ever!

  • @ravishmahajan9314
    @ravishmahajan9314 2 роки тому

    Do you know you are the best teacher on PowerBI on UA-cam?
    No you don't know.

    • @CurbalEN
      @CurbalEN  2 роки тому

      And you are awesome ☺️

  • @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)

  • @tipums123
    @tipums123 4 роки тому

    Thank you for explaining.

  • @FalconFlyer75
    @FalconFlyer75 3 роки тому

    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

  • @MichaelBrown-lw9kz
    @MichaelBrown-lw9kz 3 роки тому

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

  • @tlee7028
    @tlee7028 2 роки тому

    Da Best CT tutorial ! Thank you 😊

  • @AyowumiOgunjobi
    @AyowumiOgunjobi 2 роки тому

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

  • @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!

  • @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?

  • @sbn4862
    @sbn4862 2 роки тому

    I don’t understand what you say at all

    • @CurbalEN
      @CurbalEN  2 роки тому +1

      That is a common DAX problem :(

  • @mahikakhare
    @mahikakhare 4 роки тому

    Wow.. didn't knew this👍👍

  • @svenkatjkn
    @svenkatjkn 4 роки тому

    Awesome explanation!

  • @GrandizerIntali9
    @GrandizerIntali9 4 роки тому

    Thanks for the tip !

  • @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

  • @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.

  • @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.ua-cam.com/video/SmXLgEHXSGc/v-deo.html&vl=en
      /Ruth

  • @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

  • @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...

  • @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 ?

  • @samuelmanseau6905
    @samuelmanseau6905 4 роки тому

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

  • @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

  • @Phoenixspin
    @Phoenixspin 4 роки тому

    So simple, yet so complex.

    • @CurbalEN
      @CurbalEN  4 роки тому

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

  • @RobertoStaltari
    @RobertoStaltari 4 роки тому

    Nice and clean way to explain context transiction. Thanks Ruth

    • @CurbalEN
      @CurbalEN  4 роки тому

      Thanks 2 u and happy friday!
      /Ruth

  • @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

  • @bravucod
    @bravucod 4 роки тому

    Thanks, Ruth that is extremely useful

    • @bravucod
      @bravucod 4 роки тому

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

  • @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?

  • @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 😍😍

  • @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!!