注: この質問は、同じシナリオを提示する一連の質問の一部です。シリーズの各質問には、指定された目標を達成できる独自のソリューションが含まれています。問題セットには、複数の正解があるものもあれば、正解がないものもあります。
このセクションの質問に回答すると、その質問に戻ることはできなくなります。そのため、これらの質問はレビュー画面に表示されません。
Azure SQL データベース データ ソースから日付テーブルと売上テーブルをインポートする Power BI レポートがあります。sales テーブルには、次の日付外部キーがあります。
期日
注文日
配送日
すべての日付外部キーに基づいて、経時的な売上分析をサポートする必要があります。
解決策: Power Query エディターから、日付クエリの名前を Due Date に変更します。注文日と配送日のクエリを作成するために、期日クエリを 2 回参照します。
これは目標を満たしていますか?
正解:A
Explanation
Creating two additional tables in Power Query can be a possible solution:
Remove any inactive relationships.
Consider renaming the role-playing dimension-type table to better describe its role. In the example, the Airport table is related to the ArrivalAirport column of the Flight table, so it's renamed as Arrival Airport.
Create a copy of the role-playing table, providing it with a name that reflects its role. If it's an Import table, we recommend defining a calculated table. If it's a DirectQuery table, you can duplicate the Power Query query.
In the example, the Departure Airport table was created by using the following calculated table definition.