여러 계산된 측정값을 사용하여 폭포 스타일 차트를 만들려면 어떻게 해야 합니까? 이 경우 일부 데이터 원본 중에 테이블 계산이 포함되어 있으므로 데이터 원본을 피벗할 수 없습니다.
이 텍스트 오른쪽의 "첨부 파일" 섹션에 첨부된 패키지 통합 문서를 따르세요.
첨부된 CSV 파일 WaterFall_SampleData.csv에는 Net Sales(순매출액), Cost of Sales(매출원가), SGA의 세 가지 측정값만 존재합니다. 다음 단계에서는 이러한 측정값을 사용하여 Tableau Desktop에서 총이익과 영업 소득을 계산하고 폭포 스타일의 차트를 만듭니다.
[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.