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

Get Day in Month

Hello,

I would like to get number of day in Month. How to write script in Qlikview?

Thank,

Ratana

1 Solution

Accepted Solutions
Not applicable
Author

round(MonthEnd(Today())-MonthStart(Today()))  as [no_of_days]

OR TRY THIS

Day(MonthEnd(Makedate(Year(Today()))))   AS   [No_of_day]

View solution in original post

5 Replies
Sokkorn
Master
Master

Hi Ratana,

Let try :

Round(MonthEnd(DateField)-MonthStart(DateField))     AS [NumberOfDay]

Regards,

Sokkorn

er_mohit
Master II
Master II

Day(DateFieldname) as Day

Not applicable
Author

round(MonthEnd(Today())-MonthStart(Today()))  as [no_of_days]

OR TRY THIS

Day(MonthEnd(Makedate(Year(Today()))))   AS   [No_of_day]

Not applicable
Author

Thank for your reply....

What i expected is getting number of each month:

Ex:

Jan-2013     is 31

Feb-2013     is 28

How to get this?

Regards,

Ratana

Not applicable
Author

try this

round(MonthEnd(Date(datefield,'MMM-YYYY'))-MonthStart(datefield,'MMM-YYYY'))  as [no_of_days]