Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
soniasweety
Master
Master

How it works?

Hi all,

how below expression works? can anyone explain?

Num(if(month(today())>=2,date('06/02/'&year(today()),'dd/mm/yyyy'),date('06/02/'&year(today())-1,'dd/mm/yyyy')))

Thanks

Sony

Labels (1)
12 Replies
tresB
Champion III
Champion III

Which month end? What is the logic?

Ben_P
Creator II
Creator II

An easier way to get month end date is to calculate the first day of (month+1), and then subtract 1.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

And what about the MonthEnd() function?

:

LET vMonthEnd = Date(Floor(MonthEnd(Today())), 'DD/MM/YYYY'); // Date part only

:

Best,

Peter