Power BI レポートに集合棒グラフが含まれています。このグラフには、X 軸に「売上」、Y 軸に「年」という名前が設定されています。グラフには、2020 年から 2024 年までの売上データが表示されます。 今年の売上高と前年度の売上高の合計に等しい累計売上高を示す視覚的な計算式を作成する必要があります。 どのDAX式を使用すべきですか?
正解:A
MOVINGAVERAGE Returns a moving average calculated along the given axis of the visual matrix. That is, the average of the given column calculated over the last windowSize rows. Return value A scalar value, the moving average at the current element of the axis. Remarks This function can be used in visual calculations only. Syntax: MOVINGAVERAGE ( <column>, <windowSize>[, <includeCurrent>][, <axis>][, <blanks>][, <reset>] ) The includeCurrent, axis, blanks and reset parameters can be omitted. Reference: https://learn.microsoft.com/en-us/dax/movingaverage-function-dax