Tableau에서 추세선을 추가하고 "추세 모델 설명"을 선택하면 추세선의 기울기, 공분산, R-제곱 및 피어슨 상관 계수와 같은 값이 반환됩니다. 추세선에 대한 자세한 내용은 비주얼리제이션에 추세선 추가를 참조하세요.
그러나 데이터 필터링 또는 데이터 제외 등으로 인해 데이터가 변경되면 계산된 필드를 업데이트해야 할 수 있습니다. 이 방법에 대한 자세한 내용은 이 커뮤니티 게시물의 답변을 참조하세요.
테이블 계산을 사용하여 추세선 및 기울기를 계산합니다. 예제를 보려면 이 문서의 오른쪽에 있는 첨부 섹션에서 trend_line.twbx라는 첨부된 통합 문서를 참조하기 바랍니다.
1. 계산된 필드를 다음과 같이 만듭니다.
이름: slope
Value(값): WINDOW_COVAR(SUM([X]), SUM([Y])) / WINDOW_VAR(SUM([X]))
이름: Intercept
Value(값): WINDOW_AVG(SUM([Y])) - [slope] * WINDOW_AVG(SUM([X]))
이름: trend line
Value(값): SUM([X])*[slope]+[Intercept]
2. x를 열로, y를 행으로 끌어옵니다.
3. [추세선]을 행으로 끌어 마우스 오른쪽 버튼으로 클릭하여 이중 축으로 만듭니다.
4. [추세선] 축을 마우스 오른쪽 버튼으로 클릭하고 [축 동기화]를 선택한 후 [머리글 표시]를 선택 취소합니다.
5. 선이 아닌 경우 [추세선]을 선으로 변경합니다.
참고: 분석 메뉴에서 "측정값 집계"를 선택 취소합니다.
옵션 3
COVAR() 함수를 사용하여 추세선의 기울기를 반환하는 계산된 필드를 만들 수도 있습니다. 자세한 방법은 커뮤니티에서 공분산, 추세선, 상관 계수 R 및 R-제곱을 참조하세요.
001456495

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.