Advanced DAX: Problem, Design, Solution [Heavy Demo]

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

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

  • @thievingpanda
    @thievingpanda 10 месяцев назад +4

    You should provide a download of the data you're working with so viewers can follow along. People learn best by doing not watching.

  • @mounirkhaleq7589
    @mounirkhaleq7589 9 месяцев назад +1

    can you plese provide us the dataset used in the video

  • @parkashupadhyay4439
    @parkashupadhyay4439 5 лет назад +2

    Great stuff... hope we'll have more such advance sessions on DAX.........

  • @ajaypatil6862
    @ajaypatil6862 2 года назад +2

    where is student file for this video? please help me out

  • @florina-vq1db
    @florina-vq1db 11 месяцев назад

    That is very well explained!! Thank you very much! 😇

  • @this.is.lapc506
    @this.is.lapc506 4 года назад +2

    Why are you using MAX function at 23:15 to select the Affected Departments column? Isn't it a text value?

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

      Answered at 56:06. CALCULATE need first parameter as aggregate and beauty of MAX is it ignores non-numeric values and returns same value.

  • @danieldelgado-lw9br
    @danieldelgado-lw9br 2 года назад +1

    Really good video, I am learning a lot with this chanell

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

    Why you've used MAX inside UPPER in second argument of FIND?

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

    Very very useful video. Thank you

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

    Thank you, great stuff

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

    can we get a copy of pbix ?Thanks

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

    can i get the dataset ?

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

    many thanks

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

    Super informative webinar. Many thanks for that.

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

    The first example with dynamic measures... is almost correct. Why so? Well, instead of changing the individual measures, you should have created one generic measure that would use the other ones in its body with SWITCH. I don't know if you noticed but the way you did it makes the visual incorrect. How? Well, if you only select one of the measures in the slicer, one measure is producing its line but - AND THIS IS WHERE IT'S WRONG - the legend still shows the colors for all the measures! It's very misleading because the other measures do not appear in the graph, so one might think that the measures are BLANK or 0. With your setup this is the side-effect of how you code. As I said, you should have created one measure that would show the correct measure's values based on what's selected in the slicer. This will then work the way it should: non-visible measures will be removed TOGETHER with their legend entries. But the example is not the greatest for one other reason. You are changing perfectly good measures to just work with one visual. This is a no-no. It's brittle, it's ugly, it's not maintainable. On the other hand, creating a composite measure that would use the ones that already work OK is the only good way to go. You've got one place to change if a change is needed. Secondly, it's a measure that has a very concrete goal in life and if you need make changes to the other measures, they'll be reflected in the composite one automatically. Think about what's more maintainable: to have to change 20 measures because of your needs for the graph or... to have to change just one measure?
    The second example does demonstrate how to use FIND but such a function should almost never be used in a well-designed model. What you have is something that calls for a many-to-many relationship. Correctly coded, no FIND is needed, only relationships, which will be sooooooo much faster and cleaner. I do appreciate showing how to use FIND but I think you should also have showed how to build the model correctly, thus avoiding the ugly and not too performant FIND.

    • @TT-oy1rp
      @TT-oy1rp 3 года назад

      How would you do to create a generic measure? What the generic measure would look like?

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

      You are v-e-r-b-o-s-e, my friend. I'll summarize the issue with the first example and provide a better explanation of how to solve it:
      - Problem: when you select one measure in the slicer, that measure produces its line, ok, BUT the legend still shows the names and colors for all the measures, which can be misleading (a new user might think that they are BLANK or 0). A second problem is that
      - Alternative solution: create just one measure that contains a SWITCH statement based on SELECTEDVALUE(user_table[measures]). This is also much easier to maintain: the logic is centralized and you dedicate this special measure to a specific visual.

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

      @@olemew What's wrong with verbosity, my friend?

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

      @@dariuszspiewak5624 time is limited

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

      @@olemew Do not exaggerate. You lose so much time during the day that you should be ashamed to even write out such rubbish like "time is limited."