Azure SQL データベース データ ソースから日付テーブルと売上テーブルをインポートする Power BI データ モデルがあります。売上テーブルには、次の日付外部キーがあります。
*期日
*注文日
*配送日
3 つの日付すべてに基づいて、時間の経過に伴う売上の分析を同時にサポートする必要があります。
解決策:データペインで、日付テーブルの名前を「Due Date」に変更します。DAX式を使用して、「Order Date」と「Deliver Date」を計算テーブルとして作成します。売上テーブルと各日付テーブルの間にアクティブなリレーションシップを作成します。
これは目標を満たしていますか?
正解:B
Renaming the date table and creating calculated tables for "Order Date" and "Delivery Date" with DAX expressions would not fully meet the goal. Power BI only allows one active relationship between two tables at a time. Therefore, you cannot have active relationships between the sales table and all three date tables simultaneously.
Instead, you would typically create one active relationship (e.g., with "Order Date") and use DAX functions like USERELATIONSHIP to switch between different relationships when needed for analysis. Alternatively, you could use a single date table and create multiple relationships, using inactive relationships and the USERELATIONSHIP function to activate them in specific measures.