Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Sum Of Measure

Hello Everyone!   I am trying to calcule KPI wich is called WMAPE, my data is like the picture bellow,  I have the following formulas:  1. Percent Error = ABS (     DIVIDE (         SUM ...
  • parry2k's avatar
    parry2k
    6 years ago

    Anonymous change your measure like this and test

     

     

    change your measure like this and test
     
    Percent Error * Actual = SUMX( SUMMARIZE( Data, Data[SKU], Data[Warehouse]), [Percent Error]*[Actual] )

     

     

  • Anonymous's avatar
    Anonymous
    6 years ago

    Anonymous 

    If you want to calculate the sum of the measure just using SUMX.
    Percent Error * Actual = SUMX(Table, [Percent Error]*[Actual])

    You should always use X function(sumx, averagex,etc) when calculating with measures, the value of each row then can be saved and calculated.


    Best,
    Paul