Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
anonymous1
Contributor III
Contributor III

% accuracy expression

hi,

i need to create a table that shows planned shipments of an item, actual shipments, and finally calculate the % accuracy.

im using the following expression to calculate the % accuracy:

=FABS(sum({<[PLANNED_OR_ACTUAL]={'PLANNED'}>}SHIPMENTS)-sum({<[PLANNED_OR_ACTUAL]={'ACTUAL'}>}SHIPMENT))
/sum({<[PLANNED_OR_ACTUAL]={'ACTUAL'}>}SHIPMENT)*100

(actual-planned)/actual * 100

but the output doesn't seem right, does anyone have a better idea of how i can calculate this?

TIA

 

3 Replies
Frank_Hartmann
Master II
Master II

SHIPMENTS or SHIPMENT?

anonymous1
Contributor III
Contributor III
Author

apologies, SHIPMENT is correct

Brett_Bleess
Former Employee
Former Employee

Natasha, have a look at the following link, I think it may help to a degree.  Feel free to search the Design Blog area for other posts to, there are hundreds out there with more examples etc.  Hopefully this may help move you along a bit further.

https://community.qlik.com/t5/Qlik-Design-Blog/Canonical-Date/ba-p/1463578

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.