Tableau Sales Dashboard Tutorial: Year Over Year Comparison

Поділитися
Вставка
  • Опубліковано 30 січ 2025

КОМЕНТАРІ • 50

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

    This is awesome Anthony! liked it

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

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

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

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

  • @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

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

    Loved this one, very practical!

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

    Very useful! thanks for sharing your knowledge.

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

    Thank you! It's very helpful

  • @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?

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

    Anthony this is really helpful

  • @ObjectiveMediaDoesntExist
    @ObjectiveMediaDoesntExist 4 роки тому +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?

  • @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

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

    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.

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

    Extremely helpful!

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

    Thanks Anthony for sharing

  • @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)

  • @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)

  • @RIVASCOSTA
    @RIVASCOSTA 6 місяців тому

    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  6 місяців тому +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

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

    Great work.. thnks for the video

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

      I appreciate the comment; thank you!

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

    Fantastic!! Thank you

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

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

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

      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 5 років тому +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.

  • @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.

  • @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.

  • @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.

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

  • @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 5 років тому +1

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

  • @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?

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

    can you please provide link for the data.

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

    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  5 років тому

      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 5 років тому +1

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

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

      @@shubhankartiwari876 Great, glad we solved the problem.

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

      Yeah absolutely you are fantastic guru of tableau

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

    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  4 роки тому

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

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

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

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

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