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: 
arusanah
Creator II
Creator II

EXPRESSION HELP

Hi friends ,

I am trying to load date , for month end date or if it falls on Monday. so I created indicator e.g.  in below example it works for Mondays but is not checking monthend () .  I should see 0 next to 7/31 irrespective of fact that it Tuesday

=if([Date]=monthend([Date]) or date([Date],'wwww')='Monday' ,0,1)

Please help!

1 Solution

Accepted Solutions
sunny_talwar

Try this

=If([Date] = Floor(MonthEnd([Date])) or Date([Snapshot Date], 'wwww') = 'Monday', 0, 1)

View solution in original post

8 Replies
sunny_talwar

Try this

=If([Date] = Floor(MonthEnd([Date])) or Date([Snapshot Date], 'wwww') = 'Monday', 0, 1)

arusanah
Creator II
Creator II
Author

Hi Sunny ,

As usual  you are great help . Thank you so much !

arusanah
Creator II
Creator II
Author

Is it possible to get only month date for completed months and "Mondays "only  for current month?

e,g. 7/31/2018  & 8/6/2016 for above example

sunny_talwar

May be this

=If([Date] = Floor(MonthEnd([Date])) or (Date([Snapshot Date], 'wwww') = 'Monday' and MonthName(Today()) = MonthName([Snapshot Date]), 0, 1)

arusanah
Creator II
Creator II
Author

Thank you Sunny !

sunny_talwar

Did you manage to resolve the issue in the script?

arusanah
Creator II
Creator II
Author

Yes!

This  user has been killing me with all U turns every few seconds .

arusanah
Creator II
Creator II
Author

y am I not able to send to private messages ?