Power BI DAX Tutorial (9/50) - What is DateAdd Function

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

КОМЕНТАРІ • 41

  • @ravishankar-ly1yg
    @ravishankar-ly1yg Рік тому +5

    I guess u are giving ur Teaching Free of cost ,some people are charging so much for Powerbi just for Nothing
    YOU ARE A REAL JEMS - proud to be ur student
    one again very much thankyou Sir

  • @Idgaf-1998
    @Idgaf-1998 Рік тому +6

    you're an exceptional teacher. may god bless you.

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

    I have a doubt, since the requirement is to compare current year sales(2019 acc to the data) with the business starting year (2016), the interval in the dateadd function should be -3 ?

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

    Sir, basically Instead of LASTYear or LASTmonth or Lastqtr, we can use Dateadd with simple understanding and comfortably. Am i correct?

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

      No. It is because some year have 365 days leap year has 366 days.
      Also months have 30,31,28,29 days so last year , last month will handle these gaps automatically.

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

      Right 🙏

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

    As you have added -2 years we can only compare 2018 with 2016. For other years we need to change the formula manually. can you kindly explain how to achieve this dynamically? Is there any dax function with which we can achieve this ?

  • @siddheshdandagavhal9804
    @siddheshdandagavhal9804 3 місяці тому

    To compare with data with past data: Ex - Compare current sales with sales 2 years ago
    2 Years Ago = Calculate(sum(Sales[Sales Amount]), DATEADD(DimDate[Date].[Date], -2, YEAR))

  • @davidcarter1354
    @davidcarter1354 Рік тому +1

    Very useful. Thank you.
    Can you show how this would work for fiscal periods where actual period flows over into the next month?

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

      Thanks keep learning share this channel with friends and colleagues

  • @bushrarahman8480
    @bushrarahman8480 2 місяці тому

    Sir, could you please explain how you created DimDate table?

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

    Hello, thanks for sharing your knowledge. Can we achieve the same funcanality by user's input. I mean to say, when the user selects the multiple years using filters this will compare the sales on year then month as per user's input. Not just last month's comparison.

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

      That requires some more Dax , I will make a dedicated video highlighting the scenario

  • @eswarkumar8458
    @eswarkumar8458 2 роки тому +2

    excellent session

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

      Keep learning share this channel with friends and colleagues

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

    thanks for this video as unable to ans Dateadd function in my last intervw it was cleared now. can u please do a video on custom visuals. which are commonly used..and refresh data from onedrive in PowerBI service..

    • @AnalyticswithNags
      @AnalyticswithNags  3 роки тому +2

      Follow other videos in Dax playlist. You can able to clear your next interview.
      All the best.

  • @keithwong8144
    @keithwong8144 Рік тому +1

    in summary , can i say that the DateAdd function is more flexible as compared to the other time intelligence function?

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

    could you please confirm dateadd and parallelperiod functions does same?

  • @shruthishree5785
    @shruthishree5785 3 роки тому +2

    Well explained sir.. Thankyou..

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

    Hello, could you please explain how to calculate dynamically the min of year in powerbi.

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

      Use min function

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

      @@AnalyticswithNags Hello,
      Thank You for the guidance.
      i tried with the MIN function but it seems only min didnt help me out that much. i used Tableau LOD concept and used allexcept. i did the trick. When i plotted it in a bar chart 2016 was single bar but 2017, 2018, 2019 had two bars one for that year sales and the other bar was 2016 sales (which is my Minimum year sales).

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

    How to do this if we dont consider Sunday in date range with dateadd

  • @kevdo6333
    @kevdo6333 Рік тому +1

    Thanks

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

    can u pls share dimdate table source link

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

      we dont maintain , prepare your own file like the one shown , with your own sample data.

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

    In v13 data set no sales table

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

    could you please provide excel data with every video

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

      We have uploaded the file now. Thanks for highlighting