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: 
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

12 Replies
tresesco
MVP
MVP

Which month end? What is the logic?

ben_pugh
Creator
Creator

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