Power BI モデルに Sales という名前のテーブルがあります。Sales テーブルには次の列が含まれています。 - 注文明細ID - 製品ID - 単価 - 注文ID - 量 注文は注文IDによって一意に識別され、複数の注文明細が含まれる場合があります。注文内の各注文明細には、それぞれ異なる製品IDが含まれます。 注文数をカウントするDAXメジャーを作成する必要があります。 どの公式を使うべきですか?
正解:D
DistinctCount('Sales' [Order ID]): count the distinct order IDs in the Sales table, ensuring that each order is only counted once, even if it has multiple order lines.