Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Pongsakon_J
Contributor
Contributor

Change Month if Date over than 25/02/2020

Hi,

Can Someone tell me that how to change or create field that if Date in column over 25/02/2020 show in March 2020

For e.g. now I used expression in 'if(date([POST DATE]>'25',Month[POST DATE]+1,Month{POST Date]'

Thank you,

Labels (1)
4 Replies
tresesco
MVP
MVP

Try like:

if(day([POST DATE])>25, Month([POST DATE])+1, Month([POST Date])) as MonthNew

Pongsakon_J
Contributor
Contributor
Author

Thank You, Sir

Pongsakon_J
Contributor
Contributor
Author

I already using your expression,

the expression is active on Jan2020 and Feb2020 but in Dec2020 is inactive.

sunny_talwar

How about this

If(Day([POST DATE]) > 25,
  MonthStart([POST DATE], 1), 
  MonthStart([POST Date])
) as MonthNew