Forum Discussion
Calculating delivery performance
- Anonymous2 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.
- Anonymous2 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.
Thanks for your reply . I am trying to generate a pbix file but I have not succeeded yet. I see I have to use Power-Bi Desktop for this? I also tried to send the table as excel but I don't see where I can upload it .
Hi Ivo78 ,
Refer to:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
Best Regards,
Neeko Tang