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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to show the data until last month

Hi,

I have a requirement to pull the data until the last day of the month.

Any idea how to do that on load script ?

2 Replies
Anil_Babu_Samineni

May be using Monthend() from where condition

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
vinieme12
Champion III
Champion III

you can either do

Year(Datefield) <= Year(Today()) AND Datefield<= monthend(today()-day(today()))

or simply

Year(Datefield) <= Year(Today()) AND Month(Datefield) <= Month(Today())

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.