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

Month problem load from qvd

    1if(month(InvDate) = 2,floor(num(InvDate)),floor(num(MonthEnd(InvDate)))) as InvDate2,
   2 if(month(InvDate) = month(Now()),floor(num(InvDate)),floor(num(MonthEnd(InvDate)))) as FACTDATE,

Above an extract from a qvd load.

The second line works perfect.

The first line keeps returning an error.

All i want is manipulate the invdate if the month = 2 and day = 29 because of comparison of february 2013 versus february 2012.

Why can't a check the month against a numeric value?

1 Reply
nirav_bhimani
Partner - Specialist
Partner - Specialist

Hi,

try this

num(month(date#(MonthName,'MMM')))


Regards,

Nirav Bhimani