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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
george_1955
Contributor II
Contributor II

Numbers of Days in selection

How calculate the number of calendar days in the period selections, regardless of the selections on the tables?

Thank You,

11 Replies
sunny_talwar

John -

Why would this not work?

Max({1<Month = $::Month, Year = $::Year, Date = $::Date, Quarter = $::Quarter, MonthYear =$::MonthYear>}Date) - Min({1<Month = $::Month, Year = $::Year, Date = $::Date, Quarter =$::Quarter, MonthYear = $::MonthYear>}Date)

johnw
Champion III
Champion III

Ah, yeah, that should work. Or because I'm crazy and have to make things more complicated in the name of making them simpler:

max({1<[$(=concat({<[$Table]={'Calendar'}>} distinct [$Field]&']=$::['&[$Field],'],['))]>} [Date]) - min({1<[$(=concat({<[$Table]={'Calendar'}>} distinct [$Field]&']=$::['&[$Field],'],['))]>} [Date])