How I Calculate Day Over Day Change in Tableau

Sdílet
Vložit
  • čas přidán 18. 01. 2023
  • In this tip, I going to show you how to build 3 different KPI cards for measuring day over day change.
    In just a few steps, I’ll show you how to calculate:
    1. Sales for the most recent day
    2. Sales for the previous day
    3. Difference in sales between those two dates
    4. Percent difference in sales between those two dates
    I'll then show you 3 different methods for displaying the KPIs so that you can create those that are most useful for your audience.
    RESOURCES
    • Workbook - www.vizwiz.com/2023/01/day-ov...
    • Data - data.world/vizwiz/sample-car-...
    • Month over Month Change - • Using LODs to View the...
    • Year over Year Change - • Using LOD Calcs to Com...
    ===============
    ABOUT THIS CHANNEL
    This channel is dedicated to making you great at Tableau and introducing you to careers and influential people in data.
    SUBSCRIBE
    / andykriebel
    MORE TIPS & INTERVIEWS
    www.vizwiz.com/
    www.dualaxispodcast.com/
    FOLLOW ME ON SOCIAL
    Get updates or reach out to get updates on my social media profiles!
    Twitter: / vizwizbi
    LinkedIn: / andykriebel
    Facebook: / vizwiz
    Spotify: spoti.fi/3Sw5i5D
    Apple Podcasts: apple.co/3yj7y89
    Google Podcasts: bit.ly/3yiz0mq
    Amazon Music: amzn.to/3yk27Wy
    ===============
    MY EQUIPMENT
    ** Blue Yeti Microphone
    amzn.to/3SjnjCX
    ** Endurax 66" Video Camera Tripod
    amzn.to/3F4ogMy
    ** iPhone 13 (camera)
    amzn.to/3VP01YA
    ** Neewer® 700W Professional Photography 24"x24"/60x60cm Softbox for Lighting
    amzn.to/3VJLoGa
    ===============
    CREATE GREAT CZcams CONTENT
    🎬 Part-Time CZcamsr Academy - Ali Abdall's 6-week live online course on becoming a part-time CZcamsr
    ptya.samcart.com/referral/IKj...
    📚 More great courses from Ali
    ptya.samcart.com/referral/7he...
    ===============
    DISCLAIMER
    This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. Proceeds go to producing content for this channel.
  • Věda a technologie

Komentáře • 67

  • @julienbeylat5616
    @julienbeylat5616 Před rokem

    I love your pace ! Great video Andy ! Thank you :)

    • @vizwiz
      @vizwiz  Před rokem +1

      Glad you enjoy it! It’s nice to see a comment from a colleague. 😁

  • @piotrmuryjas
    @piotrmuryjas Před rokem

    As always, great explanations and many useful ideas for the KPI presentation. Thank you, Andy. Waiting for the next videos.

    • @vizwiz
      @vizwiz  Před rokem

      Glad you like them!

  • @thejag144
    @thejag144 Před rokem

    Thank you so much, Andy, for making this video when I ask you. It helps the full video. Once again Thank you, Andy.

    • @vizwiz
      @vizwiz  Před rokem +1

      Happy to help! Thanks for asking!

  • @stefantodorovikj6165
    @stefantodorovikj6165 Před rokem

    Excellent Andy ! Keep up the good work !

  • @apexsmart6337
    @apexsmart6337 Před rokem

    Yes, this is the right way to learn!

  • @imsajiv
    @imsajiv Před rokem +1

    Thanks Andy for this wonderful tutorial, very practical cases you are taking on here, I'm definitely getting better and better on Tableau🙏

  • @jagonzalezcl
    @jagonzalezcl Před rokem +1

    Thanks for share your knowledge. You’re awesome. Greetings from Colombia.

  • @sanjayvats4916
    @sanjayvats4916 Před rokem

    Thank you for the informative and knowledgeable videos. They help to expand our understanding and deepen our knowledge on Tableau.
    Keep up the great work!

    • @vizwiz
      @vizwiz  Před rokem

      So nice of you...thanks!

  • @cruzjeanc
    @cruzjeanc Před rokem

    Great content as always. Keep rocking Andy. Greetings from Brazil

  • @nicolelily
    @nicolelily Před rokem

    I love the one-sheet KPI with bar! I just used it to visualize door-to-discharge minutes for an urgent care center (fewer is better, so my color palette is opposite). I can't wait to show my client--I think it's really effective!

    • @vizwiz
      @vizwiz  Před rokem

      Fantastic! What did they think?

  • @Bon2kute
    @Bon2kute Před rokem

    Thanks a lot Andy. It is very great and helpful ☺️☺️☺️☺️

    • @vizwiz
      @vizwiz  Před rokem

      Glad you think so!

  • @ItsMehras
    @ItsMehras Před rokem +1

    Great video, thanks! Now I need to go and watch your Month over Month Change and YOY Change videos.

    • @vizwiz
      @vizwiz  Před rokem +1

      Please do! You’ll find them very similar. The links are in the description.

    • @ItsMehras
      @ItsMehras Před rokem

      @@vizwiz will do!

  • @TH-vw4qn
    @TH-vw4qn Před rokem

    Liked and shared!

  • @alexandrelorenzzonlazaron3426

    Helpful, thanks

  • @AvanthaPeiris
    @AvanthaPeiris Před rokem

    Superstuff Andy !

  • @shakirakhan9076
    @shakirakhan9076 Před rokem

    Thank you, Andy! Could you please show WTD calculation as well please

  • @muratcansimsek3153
    @muratcansimsek3153 Před rokem

    Great content Andy, very very usefull! I have a question , what if we use aggrageted value instead of sales ? Like count of distinct customers ?

    • @vizwiz
      @vizwiz  Před rokem

      Where I have a SUM, you would use the COUNTD

  • @ryangarland251
    @ryangarland251 Před rokem

    Great stuff as always, Andy! Come On you Chels! Can you do a video where to show prior day sales but excluding weekend? Example, today is Monday and need to display Friday ales but in an easy calc.

    • @vizwiz
      @vizwiz  Před rokem +1

      Yes, possible, but definitely more complicated. The method I’m using looks at the literal previous day. I know you can do it with a table calc, but as I type this, I’m thinking you could change the -1 to -3 if the latest day is a Monday. So -3 when the latest day is Monday, -1 when it’s any other day. Does that make sense?

    • @ryangarland251
      @ryangarland251 Před rokem +1

      @@vizwiz It does, in the meantime, I just did a CF as a filter using the following: DATEPART('weekday', TODAY()) = 2 AND [Date] = DATE(DATEADD('day', -3, TODAY()))
      OR
      DATEPART('weekday', TODAY()) IN(3,4,5,6) AND [Date] = DATE(DATEADD('day', -1, TODAY()))
      Def more complicated and took a bit to figure out but managed to get it to work

    • @vizwiz
      @vizwiz  Před rokem +1

      Here's a blog post for you that I've just uploaded. The video is on the blog too.
      www.vizwiz.com/2023/01/exclude-weekends.html
      Or if you just want the video...
      czcams.com/video/SgH4dgGJd5o/video.html

    • @vizwiz
      @vizwiz  Před rokem +1

      And thanks for the suggestion!

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

    Hey Andy, this is great! How can i get this to work on an aggregated calculation?

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

      Same way. Just don’t aggregate inside the LOD.

  • @amitojsingh3489
    @amitojsingh3489 Před 16 dny

    i got it working - i have left out the curly brackets which is why it wasnt working - i cant help notice adding the {} brackets changes the calculated from a measure to a dimension is that the main function of using {} brackets ?
    thank you for your time

  • @user-bk7xx3xq8l
    @user-bk7xx3xq8l Před rokem

    Great tutorial 😊,
    I had succeeded in getting result in first place, however when user select a date it is showing zero in previous day column! Advise please.

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

    awesome, one doubt at 10:13 why you dropped the measure name to view? What is the thought process?

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

      So I could show the names of the measures.

  • @GeoDataViz
    @GeoDataViz Před rokem

    Thanks, Andy! That is awesome. What application are you using to recorde videos, edit, and add animations to your recordings? See you a'll at TC23!

    • @vizwiz
      @vizwiz  Před rokem +1

      Final Cut Pro for editing (I use an editor). Video of me is done with my iPhone or a webcam using OBS and the screen is recorded using Cleanshot (I’d highly recommend it).

    • @GeoDataViz
      @GeoDataViz Před rokem

      ​@@vizwiz Thanks Andy. Appreciate all your efforts.

  • @amitojsingh3489
    @amitojsingh3489 Před 16 dny

    Hi Andy thanks for this tutorial however i get an error at an early stage at 2:13 mins in the video
    i have a date field called Wk_Starting_date and i am using that instead of your Day field against my calculated field "Latest_Wk_Date" but when i times it by my value it gives me an error saying - "Cannot mix aggregrate and non-aggregate arguments with this function"

  • @valc4l
    @valc4l Před 4 měsíci +1

    Thank You for this. So I have tried this but now for months, while the latest is showing the correct figures, the % change is not indicating anything while the previous month is showing 0.

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

      I have actually been able to crack it. 🙂

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

      Good to hear

  • @m_stedt
    @m_stedt Před 9 měsíci +2

    How would you handle having to work with an aggregate in the Sales Latest Day Calculation? Let's say your Total sales are made up of the reported sales from two locations.
    I'm getting a error there because I can't use aggregate & non-aggregate together

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

      Don’t aggregate inside the LOD if your data is already aggregated.

  • @daneal_humn
    @daneal_humn Před rokem

    Hi Andy,
    I am using a date filter(Selected over range) and when I am sliding the date lower than the maximum date, the method is not working as Max date is selected over the entire dataset. Could you please suggest what shall I do?

    • @vizwiz
      @vizwiz  Před rokem

      Add the filter to context.

  • @israelmiranda7814
    @israelmiranda7814 Před rokem

    Hello good evening, I would like to count service orders and not sales value, is it possible to do it the same way?

    • @vizwiz
      @vizwiz  Před rokem

      Yes. Use countd([orders]) instead of Sum(Sales)

  • @pradeeptippe6184
    @pradeeptippe6184 Před rokem

    When the day is monday compare change with friday and if not compare with yesterday...
    But it not based on only max date means user want to select date from filter and i.e single date or multiple dates....how to acheive this.

    • @vizwiz
      @vizwiz  Před rokem

      I don’t understand your questions. Sorry.

  • @aniketraikwar3795
    @aniketraikwar3795 Před rokem

    When i am creating calculated field Sales Latest Days getting this errors - "Cannot mix aggregate and non aggregate arguments with this function"

    • @vizwiz
      @vizwiz  Před rokem

      That means one of the fields is aggregated and one is not. The LOD needs a SUM around it. Have another look at the video. 👍🏻

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

      @@vizwiz I don't understand this part. My sales value in your example is an aggregate already. What can I do to make this calc work with an aggregated sales value?

  • @rajeshpanwar8945
    @rajeshpanwar8945 Před rokem

    I'm perplexed, about data school.
    I have seen some interviews, but confused here - paid for learn 🤔

    • @vizwiz
      @vizwiz  Před rokem

      100%...that's correct! Check it out thedataschool.com

    • @rajeshpanwar8945
      @rajeshpanwar8945 Před rokem

      I have some quires.. Can we get through what's app or other thing.

    • @vizwiz
      @vizwiz  Před rokem

      @@rajeshpanwar8945 check the website. If that doesn’t answer your questions (there’s an FAQ), then you can email the DS.

    • @okentan
      @okentan Před rokem

      Thanks Andy for sharing. I am just amazed with the numbers of steps it take to do the last example. If someone who doesn’t have the experience like you, it would probably take days just to figure out with all the different options in tableau to do that last one.

    • @vizwiz
      @vizwiz  Před rokem +1

      @@okentan Yeah, it's not exactly straightforward, but that's also why I create the videos. Hopefully people can follow along if they like the look of it. I wouldn't expect someone without quite deep experience to know how to do it.