Tableau Sales Dashboard Tutorial: Year Over Year Comparison

Поділитися
Вставка
  • Опубліковано 14 жов 2024
  • In this Tableau data visualization tutorial we'll learn how to "equalize" dates from the data source so year over year analytics can be created. Don't miss out on this tip!
    ★☆★ Join this channel to get access to perks: ★☆★
    / @anthonysmoak
    ★☆★ SUBSCRIBE TO ME ON UA-cam: ★☆★
    Subscribe ► / anthonysmoak
    ★☆★ FOLLOW ME BELOW: ★☆★
    Blog ► anthonysmoak.com/
    Twitter ► / anthonysmoak
    Facebook ► / anthonybsmoak
    Tableau Public ► public.tableau...

КОМЕНТАРІ • 50

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

    This is so incredibly helpful!! You just saved me a lot of time. Thank you!!

  • @thaisonngodang8860
    @thaisonngodang8860 4 роки тому +1

    Extremely useful, it took me a few days before seeing this video to figure things out. Appreciate it!

  • @burrito16
    @burrito16 8 місяців тому +1

    Thank you! It's very helpful

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

    This is awesome Anthony! liked it

  • @rohithreddysureddy9151
    @rohithreddysureddy9151 4 роки тому +1

    Extremely helpful.. You always come out with good and useful content.. Thank you.. Looking forward for your LIVE sessions of makeovermoday..

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

    Very Helpful....I got a lot of information from this video. Thank You

  • @JoseCastro-br6to
    @JoseCastro-br6to 4 роки тому +3

    Excellent! THANKS!!! I wish to know how to do this for more than two years, let's say 2017, 2018 and 2019. Is that possible?

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

    Loved this one, very practical!

  • @leticiabenitez9926
    @leticiabenitez9926 4 роки тому +1

    Very useful! thanks for sharing your knowledge.

  • @davewhelton4166
    @davewhelton4166 5 років тому +4

    What about if I had DateCreated consisting of 5 years worth of data. You created a calculated field of MakeDate. How would I use DateCreated to show me the previous year as my Equaliser

  • @chrislucchesi2782
    @chrislucchesi2782 5 років тому +1

    Thank you, Anthony. I'm new to Tableau. I believe this strategy may not work if there is a leap lear involved. What I think happens is the additional day (2/29) gets added to March. Would you agree? Food for thought.

    • @AnthonySmoak
      @AnthonySmoak  5 років тому

      Good point Chris. I believe a leap year value would return NULL if not compared with other leap years. Thanks for watching.

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

    Hi Anthony. Thanks so much for your sharing. I have followed all your steps to do the comparative figure for four years sales. However, the line chart cannot be synchronies axis and all lines have been separate to show in different column. Would you please advise how could I fix it? Thank you.

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

    You could use the LOWER() function to keep the parameter options in title case.
    Can you advise if the makedate function will work when published to tableau server?

  • @graceding576
    @graceding576 3 роки тому

    Hi It is really useful . I have one question if I want to compare with last year same week day how to do it ? For example this year Jun 11 is Friday vs. 2020 Jun 12 (Friday)

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

    Extremely helpful!

  • @kinchalsharma3535
    @kinchalsharma3535 4 роки тому +1

    Thanks Anthony for sharing

  • @tumse_na_hoga2053
    @tumse_na_hoga2053 4 роки тому +1

    Anthony this is really helpful

  • @andreanlobo7373
    @andreanlobo7373 4 роки тому +2

    Great work.. thnks for the video

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

      I appreciate the comment; thank you!

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

    Thanks, very helpful. However, the tooltips of Equalize date is showing 2018 for year 2017, would be perfect if we could fix this.
    New to Tableau from Power BI.

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

    Hi, thank you, I dont have the option "MAKEDATE", do you know if is it normal? If yes, is there any other formula?

    • @AnthonySmoak
      @AnthonySmoak  2 місяці тому +1

      You must be using a live connection which doesn't accommodate MAKEDATE. Try the solution offered here: or switch to an extract community.tableau.com/s/question/0D54T00000C6mzeSAB/makedate-function-workaround

  • @nidhipatel2474
    @nidhipatel2474 4 роки тому +1

    This only works for extract and does not work with tableau server live , what is the alternative for this function? (the makedate function does not work when it is live)

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

    Very helpful video. Will this approach still work if you change the fiscal year start property on the date field?

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

      That's a good question, try it and let us know! I will say that the TRUNC function respects the fiscal year property. help.tableau.com/current/pro/desktop/en-us/dates_fiscal.htm

    • @andreajohnston9390
      @andreajohnston9390 4 роки тому +1

      @@AnthonySmoak Thank you for the help and the link. After a bit of trying I finally realized as long as you take out the day granularity option the chart will render as desired. Then I just had to leave the relative date filter off since that will not take into consideration the change in fiscal year start. Thank you!

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

      @@andreajohnston9390 Hey! Can you elaborate a little more on your solution? I too would like to get the axis to display starting with our federal fiscal year (Oct) instead of January and I'm not following the changes you made.

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

    I am confused about the MakeDate function. When the year is specified as 2018, why are the dates that were originally in 2017 still 2017? The function obviously worked, but I still don't understand the logic of it. Since you've forced a 2018 date, logic dictates to me that all the values should be for for 2018. Instead, it's created a separate line for what's actually 2018. Can someone please explain that for me? Thank you, in advance, for any clarification, and thank you for making this post.

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

      You are correct that we have shifted the 2017 dates to 2018. Since the original (unshifted) order date years are colored by year, this forces the separation into two lines. Hope that helps!

  • @ntorrente
    @ntorrente 4 роки тому +1

    Fantastic!! Thank you

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

    So what happened when it got to 2019? Did you have to go in and change your calculated fields that had a hard code of 2018 in there?

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

      Depending upon your use case, you can use a max LOD function in combination with datepart() to find the greatest year in your dataset instead of hard coding. Hardcoding dates was for ease of understanding the concept.

  • @rohithreddysureddy9151
    @rohithreddysureddy9151 3 роки тому

    Hey Anthony.. Please make a video to show Latest year Sales and Sales growth % over last year with a Year,month filters so that users can see the sales and growth only for the selected year,month..
    Please show the best approach LOD or SETS ..

  • @pradeeptakumarbarik6286
    @pradeeptakumarbarik6286 3 роки тому

    Anthony, how to fix a fiscal year with a particular date. Exa- Fiscal year starts from 26th July 2020 to 31st July 2021.We have to fix the quarters as follows & find out the sales for each quarter.
    Q1 26th Jul 2020 24th Oct 2020 90 Days
    Q2 25th Oct 2020 23rd Jan 2021 90 days
    Q3 24th Jan 2021 1st May 2021 97 days
    Q4 2nd May 2021 31st Jul 2021 90 days
    Please advice.

    • @AnthonySmoak
      @AnthonySmoak  3 роки тому

      Have you looked at the following? help.tableau.com/current/pro/desktop/en-us/dates_fiscal.htm

  • @Shamai2493
    @Shamai2493 3 роки тому

    What if I have 5 or 6 years and want to do the comparison??
    Please advise

    • @AnthonySmoak
      @AnthonySmoak  3 роки тому

      Have you experimented with some data and run into issues?

  • @oping00
    @oping00 5 років тому

    Hello when I create the Calculated field DATETRUNC('day',[Date Granulariy Param],[Equalizer Date]) it gives me an error 'DateTrunc is being called with a (string,string,date) did you mean (string,datetime,string). Why am I getting this error and how do I fix it. Thanks.

    • @benjaminsaladin1345
      @benjaminsaladin1345 4 роки тому +1

      Odell Ping You need to use DATETRUNC(‘[Date Gran Param]’,[Equalizer Date]) ;)

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

    Hi Anthony I am new in tableau area. I have created the same year over year sales trend using sample superstore data set; but what is happening when i am selecting the months from date granual param it is giving me an error like
    ' argument months to datetrunc must specify a datepart('year', 'month',etc.)'
    Please guide to resolve this issue

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

      If you created the parameter with the same spelling as in the video, you shouldn't have any issue passing the datepart to datetrunc(). Double check to make sure the spelling of your parameter options are correct.

    • @shubhankartiwari876
      @shubhankartiwari876 4 роки тому +1

      Thanks Anthony you were right i have misspelt the word Month to months that is why it is giving error

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

      @@shubhankartiwari876 Great, glad we solved the problem.

    • @shubhankartiwari876
      @shubhankartiwari876 4 роки тому +1

      Yeah absolutely you are fantastic guru of tableau

  • @sachinmalipatil1790
    @sachinmalipatil1790 3 роки тому

    can you please provide link for the data.

  • @anantasw9992
    @anantasw9992 5 років тому

    where's I can find the dataset? Please attach the dataset