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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to show average of days between two dates?

Hi,

I have tables A,B and C in script.

A table have columns

[NO],
[ENTER],
[TO],
[DATE],
[CONSULTANTBY],
[COUNTRY_ID]

B Have Columns

[NO],
[OVERDATE],
[START],
[END],
[LOCATION],
[LABEL]

C have Columns

[ADDNO],
[TO_I],
[WORKER]


there is join between three tables. I need to create a straight / pivot table with below:

Dimension1 : [TO] where TO='Available' and [LABEL]= 'All files completed'
Dimension2 : [WORKER]
YEARMONTH : Year and Month this should be from START and END

Expression : Avg([DATE] - [OVERDATE])  expression should show average days of DATE minus OVERDATE

can any one help me with dimension and expression please

Thanks.

10 Replies
sunny_talwar

I think if you can provide a sample, it would be much more easier to help.