Тёмный

How To Build A Waterfall Chart With Multiple Measures | How To Tableau | Data Coach 

Data Coach
Подписаться 3,7 тыс.
Просмотров 2,9 тыс.
50% 1

Tableau Zen Master Luke Stanke shows how to build a waterfall chart when you have to use multiple measures in your dataset. For most waterfall charts we need just one measure and one dimension, but this video shows an alternative when you have measures you want on a single dashboard.
Datasets:
Adjusted Superstore: www.tessellationtech.io/wp-co...
Values: www.tessellationtech.io/wp-co...
Calculations:
// Labels
CASE MIN([Values])
WHEN 1 THEN "MSRP"
WHEN 2 THEN "Promo Costs"
WHEN 3 THEN "Sales"
WHEN 4 THEN "Manufacturing Cost"
WHEN 5 THEN "Transportation Cost"
WHEN 6 THEN "Overhead Cost"
WHEN 7 THEN "Profit"
END
// Start
CASE MIN([Values])
WHEN 1 THEN 0
WHEN 2 THEN SUM([Orders (Sample - Superstore - Adjusted)].[MSRP])
WHEN 3 THEN 0
WHEN 4 THEN SUM([Orders (Sample - Superstore - Adjusted)].[Sales])
WHEN 5 THEN SUM([Orders (Sample - Superstore - Adjusted)].[Sales]) + SUM([Orders (Sample - Superstore - Adjusted)].[Manufacturing cost])
WHEN 6 THEN SUM([Orders (Sample - Superstore - Adjusted)].[Sales]) + SUM([Orders (Sample - Superstore - Adjusted)].[Manufacturing cost]) + SUM([Orders (Sample - Superstore - Adjusted)].[Transportation Costs])
WHEN 7 THEN 0
END
// Bars
CASE MIN([Values])
WHEN 1 THEN SUM([Orders (Sample - Superstore - Adjusted)].[MSRP])
WHEN 2 THEN SUM([Orders (Sample - Superstore - Adjusted)].[Promo Costs])
WHEN 3 THEN SUM([Orders (Sample - Superstore - Adjusted)].[Sales])
WHEN 4 THEN SUM([Orders (Sample - Superstore - Adjusted)].[Manufacturing cost])
WHEN 5 THEN SUM([Orders (Sample - Superstore - Adjusted)].[Transportation Costs])
WHEN 6 THEN SUM([Orders (Sample - Superstore - Adjusted)].[Overhead Costs])
WHEN 7 THEN SUM([Orders (Sample - Superstore - Adjusted)].[Profit])
END
// color
CASE MIN([Values])
WHEN 1 THEN SIGN(SUM([Orders (Sample - Superstore - Adjusted)].[MSRP]))
WHEN 2 THEN SIGN(SUM([Orders (Sample - Superstore - Adjusted)].[Promo Costs]))
WHEN 3 THEN SIGN(SUM([Orders (Sample - Superstore - Adjusted)].[Sales]))
WHEN 4 THEN SIGN(SUM([Orders (Sample - Superstore - Adjusted)].[Manufacturing cost]))
WHEN 5 THEN SIGN(SUM([Orders (Sample - Superstore - Adjusted)].[Transportation Costs]))
WHEN 6 THEN SIGN(SUM([Orders (Sample - Superstore - Adjusted)].[Overhead Costs]))
WHEN 7 THEN SIGN(SUM([Orders (Sample - Superstore - Adjusted)].[Profit]))
END
// Lines
CASE MIN([Values])
WHEN 1 THEN SUM([Orders (Sample - Superstore - Adjusted)].[MSRP])
WHEN 2 THEN SUM([Orders (Sample - Superstore - Adjusted)].[MSRP]) + SUM([Orders (Sample - Superstore - Adjusted)].[Promo Costs])
WHEN 3 THEN SUM([Orders (Sample - Superstore - Adjusted)].[Sales])
WHEN 4 THEN SUM([Orders (Sample - Superstore - Adjusted)].[Sales]) + SUM([Orders (Sample - Superstore - Adjusted)].[Manufacturing cost])
WHEN 5 THEN SUM([Orders (Sample - Superstore - Adjusted)].[Sales]) + SUM([Orders (Sample - Superstore - Adjusted)].[Manufacturing cost]) + SUM([Orders (Sample - Superstore - Adjusted)].[Transportation Costs])
WHEN 6 THEN SUM([Orders (Sample - Superstore - Adjusted)].[Sales]) + SUM([Orders (Sample - Superstore - Adjusted)].[Manufacturing cost]) + SUM([Orders (Sample - Superstore - Adjusted)].[Transportation Costs]) + SUM([Orders (Sample - Superstore - Adjusted)].[Overhead Costs])
WHEN 7 THEN SUM([Orders (Sample - Superstore - Adjusted)].[Profit])
END
// Region | TF
CASE [Region Parameter]
WHEN "All" THEN TRUE
ELSE [Region] = [Region Parameter]
END

Наука

Опубликовано:

 

17 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@NassimChenani
@NassimChenani 2 года назад
Hello Thank you for the video, how do you blend the two data sources?
@fx2725
@fx2725 Год назад
Any way to do this in server? My datasource is published with alteryx...
@RadhaKrishnan-jg4kz
@RadhaKrishnan-jg4kz 4 года назад
How does the datsources are linked? I mean blend relationship
@Prashantpatil-cq3yt
@Prashantpatil-cq3yt 4 года назад
Sir please make email impact analysis dashboard... Means we send the email to customers then customers open and click the mail... So we have to find out how many customers makes transactions within 20 days after email send those who open or click the mail... I am stuck with the logic behind this scenario... Please help me out.. Thank you
@chaitanya_kulkarni
@chaitanya_kulkarni 4 года назад
I'm finding that Demo Mode Water mark little uncomfortable while watching
@DataCoach
@DataCoach 4 года назад
Whooops... upgraded software and forgot to enter the registration number: heres the better version: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sdmsgIKF-4E.html
Далее
WATERFALL CHART TABLEAU TUTORIAL
8:17
Просмотров 65 тыс.
Multiple Measure Waterfall Chart in Tableau
13:20
Просмотров 4,9 тыс.
Build A Waterfall Chart in Tableau
7:13
Просмотров 86 тыс.
Wylsa Pro: опять блокировка YouTube?
17:49
Battery  low 🔋 🪫
0:10
Просмотров 7 млн