複数の計算済みメジャーからウォーターフォールのようなチャートを作成する方法は? このインスタンスでは、一部に表計算が含まれているため、データソースをピボットすることができません。
このテキストの右側の「添付ファイル」セクションにある添付されたパッケージドワークブックに従います。
添付された CSV ファイルの WaterFall_SampleData.csv 内には、3 つのメジャー (Net Sales、Cost of Sales、SGA) のみがあります。 以下のステップでは、Tableau Desktop で Gross Profit (粗利益) と Operating Income (営業利益) を計算し、これらのメジャーを使用して、ウォーターフォールのようなチャートを作成します。
[Net Sales]-[Cost of Sales]
[Net Sales]-[Cost of Sales]-[SGA]
CASE [Segment] WHEN "Consumer" THEN TODAY() WHEN "Cooperate" THEN TODAY()+1 WHEN "Home Office" THEN TODAY()+4 END
CASE INDEX() WHEN 1 THEN 'Net Sales' WHEN 2 THEN 'Cost of Sales' WHEN 3 THEN 'Gross Profit' WHEN 4 THEN 'SGA' WHEN 5 THEN 'Operating Income' END
CASE INDEX() WHEN 1 THEN TOTAL(SUM([Net Sales])) WHEN 2 THEN TOTAL(SUM([Cost of Sales])) WHEN 3 THEN TOTAL(SUM([Cost of Sales])) WHEN 4 THEN TOTAL(SUM([Cost of Sales])) WHEN 5 THEN TOTAL(SUM([Net Sales])) END
IF INDEX() = 1 THEN -[Set Gantt Starting Point] ELSEIF INDEX() = 2 THEN -[Set Gantt Starting Point] ELSEIF INDEX() = 3 THEN TOTAL(SUM([Gross Profit])) ELSEIF INDEX() = 4 THEN TOTAL(SUM([SGA])) ELSEIF INDEX() = 5 THEN -TOTAL(SUM([Operating Income])) END
IF INDEX() = 1 THEN TOTAL(SUM([Net Sales])) ELSEIF INDEX() = 2 THEN TOTAL(SUM([Cost of Sales])) ELSEIF INDEX() = 3 THEN TOTAL(SUM([Gross Profit])) ELSEIF INDEX() = 4 THEN TOTAL(SUM([SGA])) ELSEIF INDEX() = 5 THEN TOTAL(SUM([Operating Income])) END
001456950

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.