How to Calculate Week over Week Change of the Last Complete Week

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

КОМЕНТАРІ • 59

  • @ronenTheBarbarian
    @ronenTheBarbarian 7 років тому +51

    Great walkthrough! Not many people can pull this off with a 4% battery to start with.

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

    Tableau is a great tool, but the fact that it takes that much work and thought to calculate Latest WOW% to me shows some of its weaknesses.

  • @nooruliqbal3131
    @nooruliqbal3131 6 років тому +1

    I used the same method as Andy suggested for previous week but i am getting a rolling sum value.Like week 1 and week 2 added in week 3 .....Can you help on this

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

    WOW! I think i will try to apply this to what i need; Day over Day changes. I hope I'm saying that right. I'd like to see the changes of calls made per day.

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

    Hi Andy, It will be nice if you'd one day do the same same video with more explanation on the table calc or even a videos on exclusively on table cal ( I specifically mean Edit table calculation).
    Thanks

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

      Like this? www.vizwiz.com/2017/02/table-calcs.html

  • @AbhishekKG-cp6gf
    @AbhishekKG-cp6gf 2 роки тому

    How can we do this if we have multiple KPIs, is it necessary we have to repeat the process for sales, profit, loss etc???? Or is there short cut for that

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

      Yes, you have to repeat it.

    • @AbhishekKG-cp6gf
      @AbhishekKG-cp6gf 2 роки тому

      @@vizwiz Thank you, its a great video

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

    Hi , I did the same but without using Window_MAX - why do you need this ? Thanks!

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

      Which part?

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

      @@vizwiz Hi , the calculation of "Completed Week Sales"

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

      @@igorgolubochanski5485 What was your calculation?

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

    Very Helpful...I can't thank you enough.

  • @maggiejiang5657
    @maggiejiang5657 6 років тому

    Hi thank you for the great video! Do you know how to compare the current week data to the last 4/10 week's average in Tableau?

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

    Hi, Thank you for the video :) Its working till the last step like adding 'latest week' to filter pane and selecting True. When I tried removing Year and week number from Rows to Details pane, it is giving all values instead of maintaining last row. Can you please let me know how to resolve it? I followed all the steps from the video. Thanks in advance!

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

      I hate to say it…but, you must have missed a step along the way. I went through the steps again myself and they worked.

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

    I want to compare versus the best week, any ideas? I was able to rank the weeks in terms of sales but I don't know how to compare the current week vs the best week

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

    Need some help! I followed the same procedures shown in the video but the moment I shift the Year and Month dimensions to the Details button, the calculated figures from the other months all shown up again. Possible to get some help on this please? Thanks in advance.

  • @adrianzinovei2390
    @adrianzinovei2390 7 років тому

    the best Tableau specialist ever! Can we invite you for a training?

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

    Hi, just struggling to do this by month. If i wanted to do this by month is it the same concept?

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

      Should be pretty similar. Replace week with month in the calculations. This might help too. www.vizwiz.com/2017/03/latest-previous-prior.html

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

      @@vizwiz Thank you. I think I got it working. I am trying to use the same concept but to work out average days, but I seem to be getting blanks in some completed weeks. my first calculation was to work out the Avg days between by using this calculation
      1. AVG(DATEDIFF('day',[CreatedDate],[Start_Time__c]))
      Then I added this calculation to work out my completed weeks by doing this
      2. IF WINDOW_MAX(MAX(DATEPART('weekday', [CreatedDate])))= 7
      THEN WINDOW_AVG([Avg Days to complete an Inspection])
      END
      When I put the completed week into the table I get missing weeks eg:
      Week 21 - Comp Wk 213.9
      Week 22 Comp Wk ( Blank)
      Week 23 210.8
      I cant seem to troubleshoot it.
      If you can help that would be great

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

    Why would another week other than week 53 for 2013 be blank? Week 53 of 2012 is done, so why is it blank?

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

      Maybe there were no sales that week.

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

      @@vizwiz but I thought the goal of that formula was to ensure that the calculation only applied to weeks that had been completed in the calendar year in question, as in yes we wouldn't want to calculate WoW difference for a week that wasn't over yet ... the only week not over yet is the one we are currently in, and as such it should only apply to the most recent week; would you agree? If so I'd love to get your thoughts; I did that same formula and see a lot of weeks with blanks.

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

    Hi Andy - Thanks for this Great video. Can you please help with the logic to calculate day over day sales values like i want to see( Todays sales, Yesterdays sales, difference of Todays - Yesterday sales and difference in percentage of Todays - Yesterday sales? It will be very help full if you help with this logic in calculated field. Thanks in advance!.

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

      It should be the same process as this video except using days instead of weeks. I'll create a video either way. Hopefully next week.

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

      @@vizwiz Thanks, Andy. I would be very grateful if you could create a video on this.

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

    coming to your vid in 2021..Still useful thanks a lot

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

    Why when i create Laters WOW% appers an error as syntax error( maybe you are missing an operator). But i apply the same steps.

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

      That error means that you are missing a parentheses or something like that. Double check. If you did it exactly like it did, then you won’t get that error.

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

    please help... i spend nearly one hour trying to figure out the solution ... After following the tutorial I am trying to add a filter for the last order week into filters so users can pick and choose the filter. As soon as I add a filter, the values are disappearing

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

    Hi Can you please help me to find Last 3 days sales for every month dynamically

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

      Find the max date for each month with an LOD. The a datediff function to get the latest 3 days.

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

    Can I enter the week myself i.e. Week 2 to week 3 and week 1 to week2

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

    Very helpful. thanks!

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

    Thanq so much .. have a great day

  • @changalbert
    @changalbert 8 років тому

    How would you do this if you wanted to calculate 13 weeks by 13 weeks change? I can't get lookup() to sum multiple rows.

    • @vizwiz
      @vizwiz  8 років тому +1

      The trick is to figure out how to calculate the 13 weeks. Does it need to be a rolling 13 weeks? Or will you only display every 13th week? Can you post a link to a workbook?

    • @changalbert
      @changalbert 8 років тому

      Hey sorry about the delay. I figured it out just using Window_Sum

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

    Great Work

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

    Thank you for the great video!!!

  • @gvaabaseball9024
    @gvaabaseball9024 7 років тому

    Excellent. Works perfectly for what I am doing. The only thing I can't figure out, is how to 2 step the text color (red/green for negative/positive percentages respectively). If you have any advice, it would be greatly appreciated. If I add latest_wow_% to colors, and try to select stepped color, the start and end values are NULL and I am unable to modify them.

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

    Is it me or the assumpion of max(datepart('weekday', [Order Date])=7) is incorect? Due to my knowledge it means, that within the week one specified day of week occurs (this weekday maybe e.g. Saturday or Sunday, the seventh day of week, depends on local settings) but it does not cover the need to take into consideration "full" week - the seven day period. I would appreciate if someone could answer that, thank you and regards

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

      you can set it on end date of week on datasource level
      Steps:
      1. Right click on the Data Source.
      2. Navigate to Date Properties
      3. Here you can change Week Start day, Fiscal year start and date format.

  • @changalbert
    @changalbert 8 років тому

    Can you explain why with the LAST () = 1, the calculated fields still work, but if you were to filter to just that week, they wouldn't?

    • @vizwiz
      @vizwiz  8 років тому +2

      Last() is a table calculation which happens against the data that's already in the view. Filtering by Week is part of the query that's sent to the database so the results that come back into Tableau would not include those weeks.

    • @changalbert
      @changalbert 8 років тому +1

      ok thanks for the explanation. That was helpful

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

    sir how if i want to compare uncomplete day in one week, let's 5 days current week to 5 day previous week. Thx

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

      I don’t not understand your question. Can you make it clearer?

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

      @@vizwiz I had a similar question: As I get more and more data during the current week , how do I compare data of this week (Mon - Wed) to data from last week ( Mon- Wed) rather than comparing it to (Mon - Sun). Hope this helps Andy!!

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

    I want to calculate the WoW views of articles and want to see if they are increased/decreased. Can anybody help? For example for 4/1/21 the view is 23 and for 11/1/21 the view is 25 for the same article. Like that i have 10k articles week wise

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

      Isn't that exactly what this tip covers?

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

    excellent

  • @My-ToolKit
    @My-ToolKit 6 років тому +1

    Please explain clearly, what is the logic behind this calculation

  • @AliTwaij
    @AliTwaij 8 років тому +1

    Brilliant thankyou

  • @rithvikkjohn6149
    @rithvikkjohn6149 7 років тому +1

    Hi Andy ,
    I just wanted to ask one question could you please tell me.
    Jan feb March April
    81 105 79 70
    How should I do difference between Jan value and feb value where Jan and feb are not diff columns.
    They are under one column.
    Could you please tell me
    Thankyou

  • @chandanakollu1664
    @chandanakollu1664 6 років тому

    I really didn't understand the last steps last week ..Iam confused totally