フィルターの種類と使用事例によっては、ベスト ソリューションが異なる場合があります。以下のすべてのオプションは、この記事の右側の [添付ファイル] セクションからダウンロード可能なパッケージド ワークブックで説明されています。
Tableau Desktop 2020.1 以降、動的パラメーターにより、パラメーターの既定値として計算を使用できます。「パラメーターの作成」を参照してください。
相対日付フィルターは、選択した相対的な範囲 (例: 昨日) に日付を自動的に更新します。その後、ユーザーは相対的な範囲を変更することができます。詳細については、「相対日付フィルターの作成」を参照してください。
最新の日付のプリセット機能を使用します。最新の日付プリセット機能は、ワークブックが開かれるたびに最新の日付に更新します。
注: この機能は不連続日付リストのフィルターでのみ使用できるもので、日付範囲フィルターや、ユーザーがカレンダーから日付を選ぶことができるフィルターでは使用できません。
ユーザーが、"yesterday (昨日)" などの既定のキーワードや、ビューをフィルターする任意の日付を入力できるパラメーターを作成します。この "yesterday (昨日)" という値を設定して、計算フィールドに昨日の日付を動的に返すことができます。この方法では、日付のドロップダウン リストやスライダーは表示されず、パラメーターに指定できるのは 1 つの日付のみであることに注意してください。
IF [Enter 'Yesterday' or a Date] = "Yesterday"
THEN TODAY() - 1
ELSE DATE( [Enter 'Yesterday' or a Date] )
END
[Date Conversion] = [Order Date]
ステップ 1: 開始日および終了日パラメーターの作成
ステップ 2 (任意): フィルターをコントロールするパラメーターの作成
ステップ 3: フィルターとして使用する計算フィールドを作成する
[Order Date] >= [Start Date]
AND [Order Date] <= [End Date]
[Choose Filter Range] = "All values"
OR
( [Choose Filter Range] = "Start to End Date"
AND [Order Date] >= [Start Date]
AND [Order Date] <= [End Date]
)
OR
( [Choose Filter Range] = "Last 7 days"
AND [Order Date] > DATEADD('day',-7,TODAY())
AND [Order Date] <= TODAY()
)
OR
( [Choose Filter Range] = "Start Date to Today"
AND [Order Date] >= [Start Date]
AND [Order Date] <= TODAY()
)
OR
( [Choose Filter Range] = "1 Month before End Date"
AND [Order Date] >= DATEADD('month', -1, [End Date])
AND [Order Date] <= [End Date]
)
今後の製品リリースで、この拡張機能を含めることを支持する場合は、次の Community Ideas に投票してください。
Tableau Desktop バージョン 2018.2 以降では、Tableau ダッシュボードにサード パーティの拡張機能を追加して機能を追加できるようになります。これにより、必要なフィルター動作を提供する拡張機能を検索できるようになります。詳細については、まずは「ダッシュボードの拡張機能の使用」および「Tableau ダッシュボードの拡張機能」を参照してください。
001473758
2431 KB

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.