データのモデル化
あるモデルには月次の売上を示すメジャー[Sales]があり、DAXで PriorMonthSales = CALCULATE([Sales], DATEADD('Date'[Date], -1, MONTH)) というメジャーを定義した。2024年3月の[Sales]が1,200,000円、同じフィルターコンテキストでのPriorMonthSalesが1,000,000円のとき、前月比成長率(%)はいくつになるか。
- ✓20%
- B120%
- C16.7%
- D83.3%
解説
前月比成長率は (今月 − 前月) ÷ 前月 × 100 で計算する。(1,200,000 − 1,000,000) ÷ 1,000,000 × 100 = 20% となる。
根拠Model the data > Create model calculations by using DAX > Implement time intelligence measures