DAX for Power BI Part 5.1 - The Calculate, Filter and CalculateTable Functions

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

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

  • @darenlim6467
    @darenlim6467 ปีที่แล้ว +6

    New version of Power BI is able to use OR across multiple columns. No need to use FILTER anymore. But good learning practise on understanding the use of FILTER function. Thank you.

    • @WiseOwlTutorials
      @WiseOwlTutorials  ปีที่แล้ว +2

      Indeed it is - Power BI and DAX videos become out of date so quickly!

  • @nikakalichava8012
    @nikakalichava8012 ปีที่แล้ว +1

    Finally I have time to continue the series. Thanks again, Mr. Owl!

  • @jasonturingan3279
    @jasonturingan3279 2 ปีที่แล้ว +1

    Thanks sir Andrew for all the tutorials in DAX. You are amazing. You really made it very simple to follow DAX. I hope you cover all the DAX function imbedded inside the CALCULATE function in your future videos.

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว

      Thanks Jason, happy to hear that you've been enjoying the DAX series. More videos are on the way!

  • @samirmishra507
    @samirmishra507 2 ปีที่แล้ว +5

    Thanks Andrew for this. Please make video on other Table Functions like Summarize, Cross join and union and others use

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว +1

      Hi Samir! Yes, I will, those topics are on the list of DAX videos to create. Thanks for watching!

    • @christophmeirich5928
      @christophmeirich5928 2 ปีที่แล้ว +1

      @@WiseOwlTutorials Thx in advance, Andrea!!!! Greetings from germany Christoph 👏 👏 👏 👏 👏

  • @garrybye4415
    @garrybye4415 2 ปีที่แล้ว +2

    Excellent video. You’ve made it all very simple to follow, thanks

  • @padynz9869
    @padynz9869 2 ปีที่แล้ว +2

    Great examples and Excellent Clarity. Thank you very much.

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว

      You're very welcome, thanks for watching!

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

    Thanks for making such an awesome video! It covered all possible combination for Filters with Calculate. This video is a gem🔸🔸

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

      Thank you so much for the kind comments and for watching!

  • @ItsWithinYou
    @ItsWithinYou 2 ปีที่แล้ว +1

    Simple yet very effective! Many thanks for sharing this video!

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว

      Thanks! Happy to hear you found it useful!

  • @siddharthrao3115
    @siddharthrao3115 2 ปีที่แล้ว +1

    I like the accent more than the videos!
    Just Kidding XD
    Thank you for the fantastic content man!

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว +1

      😄 happy to hear that you enjoyed it, thanks for watching!

  • @ellukayou
    @ellukayou 2 ปีที่แล้ว +1

    A complete guide. Love it.

  • @stickercode
    @stickercode 2 ปีที่แล้ว +2

    Mr. Gould, in the section of comparing colums in a filter expression, I managed to handle it without adding "filter" function by this code;
    // avgruntime of profitable movies = CALCULATE(AllMeasures[Avg runtime],
    Film[BoxOfficeDollars] > Film[BudgetDollars])
    //
    It let me type this without any error warning and calculated the whole expression. I think it is because of an upgrade by powerBI.

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว +1

      Yes, that's correct, DAX is frequently changing!

    • @jeetborooah
      @jeetborooah 2 ปีที่แล้ว +1

      @@WiseOwlTutorials I believe that even the CALCULATE TABLE function has probably changed as well as the Avg profits/loss only formula works in calculate table function for me as shown below:
      Avg Profit Only = AVERAGEX(
      CALCULATETABLE(
      Film,
      not ISBLANK(Film[BoxOfficeDollars]),
      not ISBLANK(Film[BudgetDollars]),
      (Film[BoxOfficeDollars] > Film[BudgetDollars])
      ),
      Film[BoxOfficeDollars] - Film[BudgetDollars]
      )
      Thanks for the brilliant video and great work!

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว +1

      @@jeetborooah Yes, agreed!

  • @mePrafull
    @mePrafull ปีที่แล้ว +1

    thank you very much for sharing the detailed explaination

    • @WiseOwlTutorials
      @WiseOwlTutorials  ปีที่แล้ว

      You're very welcome, thank you for watching!

  • @rajkumarrajan8059
    @rajkumarrajan8059 ปีที่แล้ว +1

    This is Legendary!!!!

  • @mePrafull
    @mePrafull ปีที่แล้ว +1

    29:21 , in newer version of POwerBI
    CALCULATETABLE(
    Film
    , NOT ISBLANK(Film[BoxOfficeDollars])
    , NOT ISBLANK(Film[BudgetDollars])
    , Film[BoxOfficeDollars] > Film[BudgetDollars]
    )
    the column references ( Film[BoxOfficeDollars] > Film[BudgetDollars]) are accepted

  • @Coglitics
    @Coglitics ปีที่แล้ว +1

    Bravo!!!

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

    excellent

  • @HaiderAli-vt8wn
    @HaiderAli-vt8wn 2 ปีที่แล้ว

    Great stuff, membership icon and link not working , is it available in Pakistan?

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว

      Hello Haider! TH-cam does not currently list Pakistan as an available location for channel memberships support.google.com/youtube/answer/7636690?hl=en-GB#zippy=%2Cavailability

  • @TaiTran-ud2jh
    @TaiTran-ud2jh ปีที่แล้ว

    I have a question why don't we use filter ( film, [avg run time] >120) but instead filter ( genre, [avg run time] >120) in 22:08

    • @WiseOwlTutorials
      @WiseOwlTutorials  ปีที่แล้ว

      Hi! Because we're interested in returning the genres where the average run time of all the films in the genre is greater than 120 - we need to evaluate the [Avg Run Time] measure for each row of the Genre table. Filtering the Film table would return a table of films where the run time is greater than 120. I hope that helps!

    • @PowerBILearner-c6d
      @PowerBILearner-c6d 5 หลายเดือนก่อน

      @@WiseOwlTutorials Hi. Thank you for the explanation and the awesome videos. So, does this mean that, unlike in visual filters where filters only propagate from dimension tables to fact tables in a one-to-many relationships, with measures, like in this case, filters can propagate from the fact table (like Film) back to the dimension tables (like Genre) in one-to-many relationships?

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

      @@PowerBILearner-c6d Hi! The short answer is no 😀 If you want to modify the direction in which filters propagate in a measure, you can use the CROSSFILTER function (we cover that topic in this video th-cam.com/video/Ma87Bn4-t1w/w-d-xo.htmlfeature=shared)
      In the example above, the FILTER function is evaluating a measure for each row of the Genre table and checking if the result of the measure is >120. It's not filtering rows of the Film table and then propagating the filter to the Genre table.
      Hope it helps!

    • @PowerBILearner-c6d
      @PowerBILearner-c6d 5 หลายเดือนก่อน

      @@WiseOwlTutorials Hi again, Mr. Gould, and thank you for your prompt reply. I don't understand how it is possible to invoke the [Avg Run Time] measure for the Genre. The [Avg Run Time] measure in its internal code contains the field of Film[RunTimeMinutes], which field is not in the Genre table?

  • @_huinorman9487
    @_huinorman9487 2 ปีที่แล้ว

    Can u do the fifo calculations in power bi?

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว

      Try this community.powerbi.com/t5/Desktop/Using-FIFO-in-calculation/td-p/1124600

  • @learnenglishgeo6622
    @learnenglishgeo6622 ปีที่แล้ว

    how to get a member ?

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

    You can do this with sql or excel but why should we learn this ?

  • @RobsondeAOliveira
    @RobsondeAOliveira 2 ปีที่แล้ว +1

    Hi! Website certificate expired!

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว

      Indeed it has, thanks for the heads up Robson, I've informed the people responsible!