Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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