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

Need help in load the data of last month

Dear Friends,

In the Script as I need to Load the data of only last month the field name is "Statment Date" it contains DD/MM/YYYY format, now we are in July as I need to load the data of June Month Statment Date data.

I tried in Where condition as (MonthStart([Statment Date],-1) and MonthEnd([Statement Date],-1)), no result

Can anybody advise..

Regards

Chriss

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Chriss

I think you need something like

     Where [Statment Date] >= MonthStart(Today(), -1) And [Statment Date] <= MonthEnd(Today(), -1)

Hope that helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

3 Replies
Not applicable
Author

Hi Chris

try this:

LOAD date([Statment Date]) as [Statment Date],

     value

FROM (ooxml, embedded labels, table is Arkusz1) where Month([Statment Date])=month(today())-1;

jonathandienst
Partner - Champion III
Partner - Champion III

Chriss

I think you need something like

     Where [Statment Date] >= MonthStart(Today(), -1) And [Statment Date] <= MonthEnd(Today(), -1)

Hope that helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Hello Jonathan,

Thanks a lot.... it works fine...

Regards

Chriss