Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
dwighttrumbower
Creator
Creator

Calculating time from one status to another

Basic columns are:

Product, ActivityNo, Status(Quote, Ordered), Date

The same activityno is used when a product is quoted and then another record is created with same activityno when it moves to ordered.  The date is when the record gets created.

I would like to create a KPI to show the AVG time a product goes from Quote to Ordered. 

1. Get date diff for Activity, quote and Activity, ordered. 

2. Show Avg for date diff based by Product. 

I'm not sure this can be done with set analysis but I'm wondering if it could.

On load, the date diff could be calculated per activity.

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer

It couldn't be done with set analysis because this is just a way to adjust the selection state behind a calculation.

I suggest to calculate the diff within the data-model and then something like:

sum(Diff) / count(distinct YourFields)

will return the avg.

View solution in original post

2 Replies
marcus_sommer

It couldn't be done with set analysis because this is just a way to adjust the selection state behind a calculation.

I suggest to calculate the diff within the data-model and then something like:

sum(Diff) / count(distinct YourFields)

will return the avg.

dwighttrumbower
Creator
Creator
Author

Thanks for the confirmation.