VizWiz

Launch, grow, and unlock your career in data
Showing posts with label % difference. Show all posts

May 25, 2024

How to Calculate Year over Year Change in Tableau

No comments
With Level of Detail Expressions, calculating year over year change is simple with the 7 steps.

January 31, 2023

How to Calculate Day over Day Change Excluding Weekends

No comments

In a previous tip, I showed you how to calculate day over day change and build 3 KPI cards.

However, this does not cover the case when you need to ignore weekends. In this #Tableau tip, I show you how to calculate daily change excluding the weekends.

You can copy/paste the calculations from below the video. Enjoy and good luck!


Calculations

  1. Latest Day
    {MAX([Order Date])}

  2. Weekday for Latest Day
    DATEPART('weekday',[1. Latest Day])

  3. Sales for Latest Day
    INT([Order Date]=[1. Latest Day])*[Sales]

  4. Previous Day
    IF [2. Weekday for Latest Day]=2
    THEN [1. Latest Day]-3
    ELSE [1. Latest Day]-1
    END

  5. Sales for Previous Day
    INT([Order Date]=[4. Previous Day])*[Sales]

  6. DoD Change
    SUM([3. Sales for Latest Day])-SUM([5. Sales for Previous Day])

  7. DoD Change %
    [6. DoD Change]/SUM([5. Sales for Previous Day])

  8. Positive Change
    [7. DoD Change %]>0

August 9, 2021

#MakeoverMonday 2021 Week 32 - Mortality Rates in England and Wales

No comments

I couldn't find too much to do with this week's data set, so I ended up with some simple BANs and line charts that take the original and reorganize them a bit to make them more clear.

Resources:

  1. Data set - https://data.world/makeovermonday/2021w32
  2. Chart Guide - https://chart.guide/
  3. Final Viz - https://bit.ly/mm2021w32


July 21, 2021

How to Compare to the Prior N Months Using the IN Function

No comments
This tip comes from an exercise I did alongside DS21 to find different ways to compare to the prior 3 months. Owen Barnes came up with the method using the IN function upon which this tip is based.

Check out how we did this same exercise with a table calculation and a level of detail expression on Owen's blog here.

November 24, 2020

How to Create a Combination Bar Chart & Candlestick Chart

No comments

In a recent Makeover Monday #WatchMeViz, I showed how to create a bar chart to compare two measures and then add a candlestick chart as well to show the difference between the two measures. It's actually quite simple; it requires some knowledge of:

  1. How Measure Names and Measure Values work together
  2. How to create a combined axis chart
  3. How to create a dual axis chart
  4. How to create a Gantt chart

In this video, I show you how to do just that. Enjoy!