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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

previous month to same day

Hi all,

i am trying to get an expression working that will show me the previous month but to same day.

i.e.

today is 8th July, so i would want previous month to be from 1st-8th June.

can anyone help please?

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Maybe something like this:

sum({<MyDateField={'>=$(=num(monthstart(today(),-1)))<=$(=num(addmonths(today(),-1)))'}>} amount)


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
tresB
Champion III
Champion III

May be like:

InMonthToDate (date, Today(), -1)

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Maybe something like this:

sum({<MyDateField={'>=$(=num(monthstart(today(),-1)))<=$(=num(addmonths(today(),-1)))'}>} amount)


talk is cheap, supply exceeds demand