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: 
sculptorlv
Creator III
Creator III

Variable Month in function Inmonth

Hello!

I usually use great function InMonth:

          InMonth ( date, basedate , shift )

And now I have problem, because I need to use this function again, but I don't have a 'basedate' ... I have only variable with MONTH (not full date)

How can I put this variable .. let say vMonth  .. into this function or which another function I can use for the same result??

Thank you.

1 Solution

Accepted Solutions
sunny_talwar

May be create an imaginary date from your Month:

MakeDate(Year(Today()), MONTH) as BaseDate

and then use this in the preceding load:

InMonth(date, BaseDate, shift)

View solution in original post

2 Replies
sunny_talwar

May be create an imaginary date from your Month:

MakeDate(Year(Today()), MONTH) as BaseDate

and then use this in the preceding load:

InMonth(date, BaseDate, shift)

sculptorlv
Creator III
Creator III
Author

Thank you