Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

On Time In Full Percentage Wise

Hello Everyone,

I need to devlop a chart showing otif percentage values

below is my sample data

PO ID
Quantity
Delivery date
12125010/1/2012
12135013/1/2012
12145015/1/2012

PO ID
Quantity delivered
Actual Delivery Date
12125011/1/2012
12134013/1/2012
12145015/1/2012

i need to delevop charts with like below one

Header 1Header 2
Ontime 66.66%
OnFull66.66%
OnTime OnFul33.33%

Can some one help me out

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Creating some flags in the script is probably a good idea.

If you want to do it in the front end, you can start with creating a straight table chart with no dimension and three expressions:

=count(if([Delivery date]=[Actual Delivery Date],[PO ID])) / count([PO ID])

=count(if(Quantity=[Quantity delivered] ,[PO ID])) / count([PO ID])

=count(if([Delivery date]=[Actual Delivery Date] and Quantity=[Quantity delivered],[PO ID])) / count([PO ID])

Set an appropriate number format for the percentages in number tab and check 'Horizontal' option in presentation tab.

Regards,

Stefan

View solution in original post

2 Replies
Not applicable
Author

He Vikram,

You could try joining the tables.

And then create flags for ontime,onfull and  OnTime OnFull.

For example:

If(Delivery Date=Actual Delivery Date and Quantity<>Quantity delivered,1,0) as Flag_OnTime

If(Delivery Date<>Actual Delivery Date and Quantity=Quantity delivered,1,0) as Flag_OnFull

If(Delivery Date=Actual Delivery Date and Quantity=Quantity delivered,1,0) as Flag_OnTimeOnFull

Hope this helps.

Gr.

Frank

swuehl
MVP
MVP

Creating some flags in the script is probably a good idea.

If you want to do it in the front end, you can start with creating a straight table chart with no dimension and three expressions:

=count(if([Delivery date]=[Actual Delivery Date],[PO ID])) / count([PO ID])

=count(if(Quantity=[Quantity delivered] ,[PO ID])) / count([PO ID])

=count(if([Delivery date]=[Actual Delivery Date] and Quantity=[Quantity delivered],[PO ID])) / count([PO ID])

Set an appropriate number format for the percentages in number tab and check 'Horizontal' option in presentation tab.

Regards,

Stefan