Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Formula to sort by accuracy (absolute error)

Hello everyone, 

 

I need some help.  Any advice will be appreciated, especially if someone can explain. 

 

I have such a visualization. 

 

 

I need to sort by lowest forecast accuracy. By saying this, I need to somehow take the forecast accuracy of 100% as the best one and to rank the ratio of Accuracy considering that items can be over and under forecasted. So 100.20 and 99.80 basically show that there is an error of 0.20% and it should be considered similar level issue. 

 

Measure of Accuracy is 1-(FCST-ACTUALS)/FCST 

 

Does someone know how i can sort it taking into consideration this absolute error...

 

 

  • Anonymous's avatar
    Anonymous
    4 years ago

    Anonymous Why not something using absolute value? Like:

     

    Error = ABS([Accuracy] - 1)

     

     

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Anonymous  Thank you very much. But the first step is how to basically let PowerBI know that 100.01 accuracy and 99.99 accuracy is basically a mistake of 0.01 so that it is treated as the same mistake? That is the biggest issue for me. I don't understand how it can be done.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Anonymous Why not something using absolute value? Like:

       

      Error = ABS([Accuracy] - 1)

       

       

  • Anonymous's avatar
    Anonymous
    Not applicable

    Anonymous  Thank you very much for your reply. 

     

    I am not sure but something is totally wrong, it doesn't calculate correctly. That's what I have now. 

     

     

     

    Calculation for Accuracy

     

     

    And calculation for Error

     

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Anonymous What do you mean by "it doesn't calculate correctly"?  What is the actual result you are expecting?  It seems to me like it is operating as intended - the are sorted by worst to best accuracy.  To see the most accurate values just sort in ascending order.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Anonymous you know. It works. Thank you very much!