#Tableau

Sdílet
Vložit
  • čas přidán 1. 09. 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/...
  • Věda a technologie

Komentáře • 59

  • @olamideogundiran6892
    @olamideogundiran6892 Před rokem +2

    Amazing andy. such a blessing to the tableau community

  • @romanvasiura6705
    @romanvasiura6705 Před rokem

    Andy, thank you!
    Great channel and amazing advices)

  • @hnjonesf
    @hnjonesf Před rokem

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

  • @ramkrishna133
    @ramkrishna133 Před rokem +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 👍😊

  • @longyanchen3755
    @longyanchen3755 Před rokem

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

  • @DrJuanTaco
    @DrJuanTaco Před rokem

    Thanks Andy! Your videos are great!

  • @alainponroy2621
    @alainponroy2621 Před rokem

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

  • @peacelovebella09
    @peacelovebella09 Před 5 měsíci

    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  Před 5 měsíci

      Great to hear!

  • @vaibhavkamble3325
    @vaibhavkamble3325 Před 3 měsíci

    You are underrated sir. I like your content.

    • @vizwiz
      @vizwiz  Před 2 měsíci

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

  • @prashantyadav6915
    @prashantyadav6915 Před rokem

    Awesome Andy 👍🤞

  • @TalhaParkarTech
    @TalhaParkarTech Před rokem

    Thanks a lot! This was helpful!

  • @engineermajidd
    @engineermajidd Před 5 měsíci

    Hats off to you!

  • @leoooo11646
    @leoooo11646 Před rokem

    That cheat sheet is awesome!!!

    • @vizwiz
      @vizwiz  Před rokem

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

  • @1973youness
    @1973youness Před rokem +1

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

  • @macc4544
    @macc4544 Před rokem

    This channel deserves at least a million subscribers

    • @vizwiz
      @vizwiz  Před rokem +1

      Spread the word! 😊

  • @pardhasaradhik9234
    @pardhasaradhik9234 Před rokem

    Andy your best tutor , thank you somuch

    • @vizwiz
      @vizwiz  Před rokem

      I appreciate that 👍🏻

  • @vrdsp1
    @vrdsp1 Před rokem

    Thank You Andy 🙂

  • @PradeepKumar-wi4ws
    @PradeepKumar-wi4ws Před rokem

    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 .

  • @apaumichael954
    @apaumichael954 Před rokem

    Thanks Andy

  • @jakubg1267
    @jakubg1267 Před rokem

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

  • @JD_018
    @JD_018 Před rokem

    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

  • @FamilyDad5760
    @FamilyDad5760 Před 5 měsíci

    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!!

  • @ronenTheBarbarian
    @ronenTheBarbarian Před rokem

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

    • @vizwiz
      @vizwiz  Před rokem

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

  • @wwpharmacist
    @wwpharmacist Před rokem

    Awesom

  • @jordantoups3248
    @jordantoups3248 Před rokem

    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 Před rokem

      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.

  • @CerealMJ
    @CerealMJ Před rokem +1

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

    • @ranadeepghosh1891
      @ranadeepghosh1891 Před rokem +1

      I also have the same question

    • @vizwiz
      @vizwiz  Před rokem +2

      Could be. Either way, you get the idea.

    • @ranadeepghosh1891
      @ranadeepghosh1891 Před rokem +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.

  • @angelinajames9230
    @angelinajames9230 Před rokem

    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  Před rokem

      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 Před rokem

      @@vizwiz Thanks a lot ... 👍

  • @manishagrawal417
    @manishagrawal417 Před rokem

    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  Před rokem

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

  • @25070410
    @25070410 Před 5 měsíci

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

    • @vizwiz
      @vizwiz  Před 4 měsíci

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

  • @MissTopDJ007
    @MissTopDJ007 Před rokem

    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  Před rokem

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

  • @aniketjamode5290
    @aniketjamode5290 Před rokem

    What is Start of week in datepart function?

    • @vizwiz
      @vizwiz  Před rokem

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

  • @markkligman7177
    @markkligman7177 Před rokem

    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  Před rokem

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

  • @andriykabanets4493
    @andriykabanets4493 Před rokem

    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  Před rokem

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