ラジオボタンを使用した水平方向のパラメーター選択。
注意: 以下のステップ例では、Tableau Desktop で Superstore サンプルデータソースファイルを使用しています。[カテゴリ] はサンプルデータソースで使用されるディメンションです。この記事の一番下にあるリンクからダウンロードできるサンプルワークブックを参照してください。
1.パラメーターの作成
2.次のようなさまざまなカテゴリの売上高のメジャーを作成します。
Furniture Sales (家具の売上高):
IF [Category]="Furniture" then [Sales] end
Office Supplies Sales (事務用品の売上高)
IF [Category]="Office Supplies" then [Sales] end
Technology Sales (テクノロジーの売上高)
IF [Category]="Technology" then [Sales] end
Value:
CASE [Parameter 2] when "Furniture" then [Furniture sales] when "Office Supplies" then [Office Supplies] when "Technology" then [Technology Sales] end
3.ここで、カテゴリの水平方向のラジオボタン オプションについて、カテゴリを列に配置し、ヘッダーのチェック ボックスをオフにします。
形状ラジオボタン
STR([Parameter 2]=[Category])+[Category]
[カテゴリ] を [テキスト] に、[形状ラジオボタン] を [形状] に、[ビュー] は [ビュー全体]
4. これにより、選択で [Parameter 2]=[Category] が true になるため、形状ラジオボタンの結果は t+CategoryName になります。
ラジオボタンで選択された形状と選択されていない形状のカスタムパレットを作成します。
[形状]をクリックし、選択済みのラジオボタンを t で始まるカテゴリ名に、未選択のラジオボタンを f で始まるカテゴリ名に割り当てます。
5. [パラメーターの表示] をクリックして値を切り替え、上記と同様の割り当てプロセスを形状に対して繰り返します。
シートをダッシュボードに追加します。
6.[ダッシュボード] > [アクション] をクリックし、パラメーター値を変更します。
001456966

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.