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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to calculate number of days

How to calculate number of days in a selection ?

In the following example , the number of days is 54?

Sans titre.png

5 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

I hope you have a date field: Count(distinct MyDate)


talk is cheap, supply exceeds demand
agustinbobba
Partner - Creator
Partner - Creator

Hi Jaweher89,

Here an example of what you need, if you doesn't have a Date field  you can make it on the script, or use the field separately.

2016-03-18_15-20-17.png

Best Regard!,

Agustin

alexdataiq
Partner - Creator III
Partner - Creator III

Wouldn't that be 56 days?

31 (Jan) + 29 (Feb ) = 60 days - 4 excluded = 56 days?

swuehl
MVP
MVP

Eduardo, days 1 and two are excluded from both january and february, hence in total 6 excluded days.

alexdataiq
Partner - Creator III
Partner - Creator III

Oh yes, you're absolutely right! My bad.

Thanks!