計算フィールドで NOW() または TODAY() 関数を使用すると、Tableau Desktop で異なるタイムゾーンのように見える時刻が返されることがあります。同様に、相対日付フィルターを使用する場合、アンカー日付がユーザーのローカルタイムゾーンと一致しないことがあります。
原因
ライブ接続を使用している場合、Tableau Desktop は基礎となるデータソースに NOW() または TODAY() クエリを送信します。戻り値は、データソースでの時刻とタイムゾーンの処理方法によって異なります。
データソースが別のタイムゾーンでホストされている場合、またはタイムスタンプを UTC で返すよう設定されている場合、結果がローカルマシンの時刻と異なる可能性があります。
たとえば Redshift や PostgreSQL へのライブ接続では、多くの場合、UTC またはデータベースセッションのタイムゾーンに基づいてタイムスタンプが返されます。Tableau では、これらの値はクライアントマシンのローカルタイムゾーンに自動的に調整されません。
抽出を使用します。詳細については、「データの抽出」を参照してください。
DATEADD() 関数を使って計算し、タイム ゾーンのオフセットに対応します。
注意: 夏時間期間中は、UTC と PDT の時差は -7 時間となります。
相対日付フィルター向けに UTC を PST (太平洋標準時刻) に変換する方法は次のとおりです。
[Date Field] >= DATEADD('day', -3, DATEADD( 'hour', -8, TODAY() ) )
この機能を今後の製品リリースに組み込むことに賛成する方は、次の Community Idea に投票してください。タイムゾーン変換に関するサポート。
001473588

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.