Forum Discussion

Ivo78's avatar
Ivo78
Regular Visitor
2 years ago
Solved

Calculating delivery performance

I am working on creating a report focusing on undelivered shipments. But now I'm getting stuck in the dax formulas and not getting my calculation right. First, I created the following measures to cal...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Ivo78 ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) We can create a measure. 

    delivery performance = 
    var _a=[Delivery succesful]
    var _b=[Delivery succesful]+[Not deliverd]
    return DIVIDE(_a,_b,0)

    (2) Then the result is as follows.

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Ivo78 ,

     

    Please check this line of code. there is no ONWAAR() function in dax.

      'DeliveriesStatus'[Culpable]] = ONWAAR()

    You can create this measure if you want to calculate the error percentage.

    FalsePercentage = 
    var _a=[Not deliverd]
    var _b=[Delivery succesful]+[Not deliverd]
    return DIVIDE(_a,_b,0)

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly.