Computing open orders with visual calculations in DAX

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025

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

  • @nevermore17011990
    @nevermore17011990 หลายเดือนก่อน +7

    this man is like Messi of DAX, hat off to you sir !

  • @louism.4980
    @louism.4980 หลายเดือนก่อน +4

    Thank Alberto, your videos are always entertaining and insightful to watch!

  • @Jackassik
    @Jackassik หลายเดือนก่อน +2

    Great video. If I had to write it, I would probably begin with over-complicating it with Summarize() and SumX() formulas. The last DAX formula was very concise an simple. Great work as always!

  • @naveethsuraj6214
    @naveethsuraj6214 หลายเดือนก่อน +2

    Awesome explanation, clean and clear. Thanks for making this clear. I used to write dax keeping just the expected result in mind. Going forward will try to write optimized code.

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

    Excellent video and the final dax measure is a great inspiration.

  • @TRZMac
    @TRZMac หลายเดือนก่อน +2

    Alberto!
    We missed you!
    Thanks for the as always wonderful and very informative video!

  • @Pete.Nicholson
    @Pete.Nicholson หลายเดือนก่อน +1

    Amazing video again. I really need to look at using visual calculations in my reports - it would really help with the speed.

  • @SamFisher-x2y
    @SamFisher-x2y หลายเดือนก่อน +1

    As always, an excellent and informative video. Thank you Alberto!

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

    Thanks a lot for your share, enjoy your video.Your solutions for the question can lead to good cocepts and approaches to learning DAX, thanks again.

  • @mathsexperts4901
    @mathsexperts4901 หลายเดือนก่อน +2

    Excellent technique !!! Thank you so much for sharing

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

    Alberto is always on point!

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

    I love this kind of videos, Grazie mille Alberto.

  • @RajenderKumar-r7y
    @RajenderKumar-r7y หลายเดือนก่อน +1

    Amazing Teachings sir !! Massive respect

    • @RajenderKumar-r7y
      @RajenderKumar-r7y หลายเดือนก่อน +1

      Having urge to attend that Optimizing Dax course but it's too expensive for me

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

    Always look forward to your videos

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

    great work ! thanks

  • @BryanChaves-r2m
    @BryanChaves-r2m หลายเดือนก่อน +1

    Could you create a calculated table with unique orders so that you no longer have to deal with DistinctCount?
    Great video BTW

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

      Yes - but it wouldn't work if you filter by product. It's a good optimization when you have a large amount of data,

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

    Awesome!

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

    I still prefer treatas() for such database as both start and end date can have same syntax;)

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

    Great!

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

  • @КириллЧесноков-л7д
    @КириллЧесноков-л7д หลายเดือนก่อน

    Maby I'm wrong but I think [Received RT] - [Delivered RT] (measures) is not the same as
    
    VAR Deltas =
     ADDCOLUMNS (
     ALL ( 'Date'[Date] ),
     "@Delta", [Orders Received] - [Orders Delivered]
     )
    VAR MaxDate = MAX ( 'Date'[Date] )
    VAR Result =
     SUMX (
     FILTER ( Deltas, 'Date'[Date]

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

      Why it's not the same? It's an additive measure.

    • @КириллЧесноков-л7д
      @КириллЧесноков-л7д หลายเดือนก่อน

      @SQLBI but [received rt] and [delivered rt] are non additive

    • @zvikabar-kochva3641
      @zvikabar-kochva3641 หลายเดือนก่อน

      ​@@SQLBI , Obviously, it is the same. That said, it turns out the crux of the DAX optimization is avoiding the non-additivity of DISTINCTCOUNT by storing the individual daily delta results in a virtual column. This is a clever solution, however, it is exactly this kind of issues that makes me NOT enjoy DAX, due to the level of details one must familiar himself\herself with the nuts and bolts of the language, in order to create efficient solutions, instead of focusing his creativity on one’s project. One may hope that in the age of AI, a clever program would find ways to take care of such issues for the user automatically. I wonder, if you gave the original solution to DAX Optimizer, would it generate the suggested solution? Other than that, a very good presentation of the problem and its solution. Thanks very much.

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

      @@КириллЧесноков-л7д what you wrote doesn't make any sense. Do you mean "Cumulative" instead of "Additive"? I think you don't know how DAX work if you mean that.