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: 
Not applicable

Average No of Days

Hi,

How to calculate the average number of days between two dates in qlikview?

4 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Do you mean the difference between two days?

     If yes then try below expression.

     Interval(Date1-Date2 ,'D')

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Thanks Kaushik.

Can you help me with another scenario?

I have five different date fields and I want to show the Average Number of days between each date field in bar chart. Here is what I am looking for.

X-Axis = Avg(Interval(Date2-Date1)), Avg(Interval(Date3-Date2)), Avg(Interval(Date4-Date3))

Y-axis = No of days(0,5,10,50)

How can I achieve this? Your help is very much appreciated.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Will you please upload the qvw file.

     I am not sure, but if you can send the file, i can try something.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Kaushik,

I uploaded the (Test1)qvw file above. please verify and let me know your inputs.

Thanks