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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculate number of days

How do we calculate the number of days in a month?

1 Solution

Accepted Solutions
Nicole-Smith

Or even simpler:

day(monthend(DateField))

View solution in original post

4 Replies
Nicole-Smith

round(monthend(DateField)-monthstart(DateField))

Anonymous
Not applicable
Author

=Day(Monthend(Date Field))-Day(Monthstart(Date Field))

Nicole-Smith

Or even simpler:

day(monthend(DateField))

VishalWaghole
Specialist II
Specialist II

Hi Anitha,

You can try,

Day(MonthEnd(DateField)) as NoOfDays

- Regards,

Vishal Waghole