📜  7 天移动平均利润公式 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:43.583000             🧑  作者: Mango

代码示例1
7 Day Moving Average = 
    AVERAGEX (
          FILTER (
               ALL ( 'DateTable' ),
               'DateTable'[FullDateAlternateKey] > ( MAX ('DateTable'[FullDateAlternateKey] ) - 7 ) &&
               'DateTable'[FullDateAlternateKey] > <= MAX ('DateTable'[FullDateAlternateKey] ) 
       ),
       [Profit])