#Tableau

Поділитися
Вставка
  • Опубліковано 1 вер 2022
  • In this tip, I take you through the 5 most common date functions in Tableau:
    1. DATEPART
    2. DATENAME
    3. DATETRUNC
    4. DATEADD
    5. DATEDIFF
    By the end of this video you will understand when to use them to meet your use case.
    Here's a link to the cheat sheet - docs.google.com/presentation/...
  • Наука та технологія

КОМЕНТАРІ • 59

  • @olamideogundiran6892
    @olamideogundiran6892 Рік тому +2

    Amazing andy. such a blessing to the tableau community

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

    You are underrated sir. I like your content.

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

      Share away! That helped even more people learn. 👍🏻

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

    Andy, thank you!
    Great channel and amazing advices)

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

    Cheat sheet is a simple and powerful way to communicate. Great idea.

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

    Amazing video, thanks a lot Andy. I feel much more confident to use them now😊

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

    Thanks Andy! Your videos are great!

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

    Thank you Andy for this very interesting video 😀 mastering dates is so important in Tableau, your help is really appreciated

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

    This channel deserves at least a million subscribers

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

      Spread the word! 😊

  • @engineermajidd
    @engineermajidd 4 місяці тому

    Hats off to you!

  • @peacelovebella09
    @peacelovebella09 5 місяців тому

    Thank you so much!! Was looking for help with date diff for so long and this was by far the most straightforward and helpful explanation

    • @vizwiz
      @vizwiz  5 місяців тому

      Great to hear!

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

    Awesome Andy 👍🤞

  • @ramkrishna133
    @ramkrishna133 Рік тому +2

    Thank you Andy for the amazing introduction to the different date functions. I always used to struggle with date functions. Your video and cheat sheet really helps to simplify a lot of things. You are a gem 😊 Also, kudos to the video editing, it looks very refreshing and cool 👍😊

  • @1973youness
    @1973youness Рік тому +1

    Thanks .... Once again Andy Very well explainedd !

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

    Thank You Andy 🙂

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

    That cheat sheet is awesome!!!

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

      Thank you. I’m glad you find it useful. 👍🏻

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

    Really nice video Andy! It's getting a bit more complicated when we want to exclude weekends.

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

    Andy your best tutor , thank you somuch

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

      I appreciate that 👍🏻

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

    Thanks Andy

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

    Hi Andy, amazing video. Is there a method I can use to control say order date and return date using a single date parameter? I want to do a count of both orders and returns using the corresponding date field but using a single date parameter. Many thanks

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

    Thanks a lot! This was helpful!

  • @PradeepKumar-wi4ws
    @PradeepKumar-wi4ws Рік тому

    Thanks andy , for yr great efford, labour , u are the blessing of people that standing in the last of the row . Made by abs( ❤❤❤) . #india .

  • @FamilyDad5760
    @FamilyDad5760 4 місяці тому

    Andy, this is very helpful! Can you address how or if the values would change if you change the Fiscal Year Start feature to say October? Or how to otherwise manipulate the dates vis-à-vis a Fiscal Year. Thank you!!

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

    For the DATEDIFF Days Delayed example, I think you said the the logic backwards (starting around 8:10). It looks like the first order was actually shipped 1 day early (on September 18, 2021 instead of September 19, 2021), not delayed by 1 day.
    On the third line, the product was expected to be shipped September 20, 2021, but was not shipped until October 6, 2021 (making it delayed by 16 days).
    ** I am still trying to learn so please correct me if I am wrong, but I want to make sure I am comprehending correctly.
    Thanks for all your work, Andy!

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

      Then in the final calculation for "which weekdays have the most delays", it seems you used the logic of negative days = delayed orders, which is what I was thinking.

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

    Thanks Andy! Great video. Can you do a simple LOD vs window_functions video?

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

      What do you mean? What’s the use case?

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

    Very helpful!! Question: shouldn't the "Is Delayed" calculated field be > 0 and not less than?

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

      I also have the same question

    • @vizwiz
      @vizwiz  Рік тому +2

      Could be. Either way, you get the idea.

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

      @@vizwiz i have been following u for a long time and i look forward to ur videos. Watever i have learnt in tableau its all bcoz of u. I adore ur technical skills and i tell this to everyone. Keep making videos and help us to be good at it.

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

    I have a data source that shows the MONTH Column in integers. So when I tried to use the Calculated Field DATENAME('month', MONTH) it converts to DATENAME('MONTH!,MONTH) and it won't change the month numbers to month names. Why is that?

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

      Because the second part of the function requires a date field. Have you tried makedate to change your month # to a date?

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

    Thank you for this video, great explanation as usual )
    To make calculation based on integer comparison is better to use DatePart - always returns Integer
    Task Case: Select all the orders with the ShipDate after 10th of each Month:
    // iif([DateName_Day] > 10,'Ship after 10th','Other') // >> returns mistake message - can't compare string and integer values
    // until type conversion will be applied:
    // iif(INT([DateName_Day])>10,'Ship after 10th','Other')
    // While DatePart works well from the start:
    iif([DatePart_Day]>10,'Ship after 10th','Other')

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

      Yes that’s correct. In the video I say datepart returns an integer and datename returns a string.

  • @25070410
    @25070410 4 місяці тому

    Thanks for the video. But cheat sheet is not accessible any longer.

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

      Fixed! docs.google.com/presentation/d/1j-GiwmWOhSCF4GqHfM-M3910OjrXWTL9/edit?usp=sharing&ouid=109813978585042026440&rtpof=true&sd=true

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

    Hello !. Amazing as usual. But one thing caught my eye. The datepart - Week is shown as 38, however, as I checked my outlook calendar shows week num as 37. Please shed some light on this.

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

      Your starting day of week is probably Sunday. Mine is Monday.

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

    Awesom

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

    Thanks for this helpful video. This is exactly i what I wanted... I struggle a lot with date functions. Could you please make a video on MAKEDATE and how to create a date field when we don't have any date . Kindly help me on this

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

      Makedate needs three numbers passed to it. Year,month,day. So if you want to make up a date, you could have MAKEDATE(2022,9,1) to get September 1, 2022

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

      @@vizwiz Thanks a lot ... 👍

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

    What is Start of week in datepart function?

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

      Datepart(‘day’,[Date]) = 0

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

    If I may say one thing, it would be nice if everything done was a tad slower. Between the quick talking and fast movement and clicks, its difficult to follow.

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

      Got it 👍🏻 Thanks for the feedback. The more recent videos should have a better pace.