Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to get number of days in a month in straight table

Hi in Straight table i have Month Dimension. I would like to calculate Sales per day. So i need number of days in each month. How to get that. please see below screen shot. For example for Jan i need to get number of days as 31. For Feb i need to get 28.. so on..

1 Solution

Accepted Solutions
swuehl
MVP
MVP

=day(monthend(makedate(2015, MonthField) ) )

View solution in original post

4 Replies
swuehl
MVP
MVP

=day(monthend(makedate(2015, MonthField) ) )

Anonymous
Not applicable
Author

Awesome Thank you Swuehl... Is there any cheat sheet which will help me to calculate anything based on Dates.

swuehl
MVP
MVP

Maybe the Help file page for date and time QV functions?

Anonymous
Not applicable
Author

ok Will do . thanks for your help