傾向線を追加して [傾向モデルの説明] を選択すると、Tableau では、傾向線の傾き、共分散、R 二乗値、ピアソン相関係数などの値を返します。 傾向線の詳細については、「ビジュアライゼーションへの傾向線の追加」を参照してください。
ただし、データが変更されると (データがフィルタリングまたは除外されると)、計算フィールドを更新する必要があることに注意してください。この方法の詳細については、コミュニティ ポストの返信を参照してください。
テーブルの計算を使用して、傾向線と勾配を計算します。例を表示するには、この記事の右側の [添付ファイル] セクションにある trend_line.twbx という名前の添付のワークブックを参照してください。
1.計算フィールドを次のように作成します。
名前: 傾き
Value: WINDOW_COVAR(SUM([X]), SUM([Y])) / WINDOW_VAR(SUM([X]))
名前:切片
Value: WINDOW_AVG(SUM([Y])) - [slope] * WINDOW_AVG(SUM([X]))
名前: 傾向線
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.