Clever Date Table Trick in Power BI you've got learn!

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

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

  • @GoodlyChandeep
    @GoodlyChandeep  7 месяцев назад +1

    ⬇Download the file used in the video -
    goodly.co.in/neat-calendar-table-trick-power-bi

  • @Nalaka-Wanniarachchi
    @Nalaka-Wanniarachchi 7 месяцев назад +2

    Nice one Chandeep !!
    W/O Calc column using measure ;
    MEASURE 'My Measures'[Sales YTD2] = TOTALYTD([Total Sales],'Calendar'[Date],
    FILTER(
    all('Calendar'),
    'Calendar'[Date]

  • @МихайлоСтерлігов
    @МихайлоСтерлігов 7 месяцев назад

    Hi.
    What wrong with
    Calculate( totalYTD(...)
    , NOT ISempty(Sales[date])
    )

  • @SSRealEstates83
    @SSRealEstates83 2 месяца назад

    Will the months change dynamically?? When i used 0 i was getting all trues so i tried with -2 then my data got matched,when i move from july to August month will this measure work dynamically??
    Thank you

  • @WaymondJr
    @WaymondJr 7 месяцев назад +2

    Your videos are gold! Thank you for all your efforts, I learn every time I watch!❤

  • @RamonTomzer
    @RamonTomzer 7 месяцев назад +1

    Calculate wrapped in a calculate?! Greg Deckler would not approve of this 😂

  • @RayyanAziz-ku2rc
    @RayyanAziz-ku2rc 2 месяца назад

    for the same problem, once you used a nested calculate, and the other time you did not. This is quite confusing.

  • @justapasserby69420
    @justapasserby69420 7 месяцев назад +3

    Why not just create a calendar table using MIN and MAX dates of the fact as the date range to avoid this problem altogether?

    • @GoodlyChandeep
      @GoodlyChandeep  7 месяцев назад +3

      Possible if you have only a single date column in the sales table.
      Imagine a sales table with 3 date columns : Sales Date, Delivery Date, Refund Date (if refunded), in those cases you're somehow forced to make a longer calendar table than the last date of sales date.

    • @dimmitrio
      @dimmitrio 7 месяцев назад

      Imagine that you have table with plan data that is set in future dates. And you need to track plan and fact. So you need approach from video.

  • @deeswift-z1h
    @deeswift-z1h 6 месяцев назад

    Hi
    It looks out of the context but I wanted to know if is it possible that
    can we 've Month on month %change of count even if we just have one month data and next month data is yet to get updated ?

  • @juanocasio8998
    @juanocasio8998 5 месяцев назад

    Thank you for all of the content you provide. For those of you who have not purchased Chandeep's courses, I totally recommend them.
    Chandeep: I am thinking about purchasing the Mastering DAX in Power BI course. What's the difference between that and Mastering DAX and Data Modeling (which I already purchased)?

    • @GoodlyChandeep
      @GoodlyChandeep  5 месяцев назад

      You have the new one.. don't buy the old one.

  • @syrophenikan
    @syrophenikan 7 месяцев назад +1

    FANTASTIC!!! I'll be implementing this ASAP!!!

  • @azwarmzafar
    @azwarmzafar 7 месяцев назад +1

    Thank you, that was an amazing trick and eye opener video.

  • @gennarocimmino
    @gennarocimmino 7 месяцев назад

    Dear chandeep,
    In this video, you proposed as a solution the addition of a calculated column in the date table.
    It would be interesting to have a video, a version 2 of the proposed solution, with a DAX measure, perhaps with a virtual calendar table and with the addition of a calculated column, but in the virtual table, variable of a DAX measure.
    Greetings

  • @textnotepro
    @textnotepro 6 месяцев назад

    I got here by searching for a solution to this problem - this video is fantastic, so clearly explained with great examples. Thank you. I have subscribed.

  • @skv4611
    @skv4611 7 месяцев назад

    Hi Chandeep, Can't we just create a measure using isempty func with not and apply as filter

  • @tubephvalue
    @tubephvalue 7 месяцев назад

    How would you do this in Excel Power Query?

  • @user-yh8wp2ic6o
    @user-yh8wp2ic6o 7 месяцев назад

    Why not create a few variables and wrap it in a
    RETURN
    IF(
    X
    ),
    BLANK()
    )
    ?

  • @williamarthur4801
    @williamarthur4801 7 месяцев назад

    Thanks, I've always just use a if total sales Blank etc. , but this is much neater also
    regarding the use of nested CALCULATE that is something that I never really know if it's needed.

    • @GoodlyChandeep
      @GoodlyChandeep  7 месяцев назад +2

      Total Sales Blank can also be false in a month or week in between the data.
      What we really need is display until the end of the last sales date.

  • @chrism9037
    @chrism9037 7 месяцев назад +1

    Very clever, thanks Chandeep!

  • @unnikrishnansanthosh
    @unnikrishnansanthosh 7 месяцев назад

    another class one, thank you for sharing

  • @gennarocimmino
    @gennarocimmino 7 месяцев назад

    Thank you Chandeep,
    better and better

  • @rajendracheraku1
    @rajendracheraku1 6 месяцев назад

    Super Brother

  • @Bhavik_Khatri
    @Bhavik_Khatri 7 месяцев назад

    Nice technique.

  • @joselencinamalgor6548
    @joselencinamalgor6548 7 месяцев назад

    Brilliant!

  • @gezin_longuevilleosaer4245
    @gezin_longuevilleosaer4245 7 месяцев назад

    You make my day, again. Thanks!!

  • @mienzillaz
    @mienzillaz 7 месяцев назад

    Normally I love your content, especially about PQ but.. this one is just really bad..
    Avoid calculated columns people whenever you can and put that check in YTD measure itself..
    EZ to pull, and if someone want to know how leave a comment below mine..

    • @djl8710
      @djl8710 7 месяцев назад +1

      Whole day calculated columns are NOTHING for performance, on the other hand billions of fractions of time are a problem like you say.

    • @GoodlyChandeep
      @GoodlyChandeep  7 месяцев назад +3

      I don't out rightly discard calculated columns, especially if they simplify logic and improve performance.
      The use of calculated columns is very selective case by case.