Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
sagaraperera
Creator
Creator

PREVIOUS MONTH DATA

Dear All

I using following formula to get a previous month data 

=MonthEnd(max(MARKETING_DATE),-1)

But this formula get a result only last month i want to get a sales value using above formula. may data field name is   GROSSTOT

please help

thanks

sagara

2 Replies
Vegar
MVP
MVP

Try this

Sum({<MARKETING_DATE = {">=$(=MonthStart(max(MARKETING_DATE),-1))<$(=MonthEnd(max(MARKETING_DATE),-1))"} >}GROSTOT)

Brett_Bleess
Former Employee
Former Employee

Sagara, did Vegar's post get things working as you wanted?  If so, do not forget to come back to the thread and use the Accept as Solution button on his post to give him credit and let others know it worked.  If you are still working upon things, leave an update for us.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.