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

Calculating Last & Current Month Sales

Hi Experts

I am Currently using a Straight Table

Doing a resident load to choose top 10 sales for each Branch

But stuck in calculating Current Month Sales & Last month Sales

Please Suggest

5 Replies
sunny_talwar

I don't see this variable vMaxSalesDate in the variable overview. How do you define that variable?

=Date(MONTHSTART(AddMonths(vMaxSalesDate, -1)))

Not applicable
Author

HI Sunnindia

Sorry I missed it

vMaxSalesDate =Date(Max(DEC_Date))

sunny_talwar

Seems to be working once I put the variable definition in the application. Does this look like what you wanted?

Capture.PNG

Not applicable
Author

HI

Yes, But still not showing any results on my original Qvw with the variables

Thank You For  Pointing out

sunny_talwar

May be caused by another problem? Not sure how to troubleshoot your sample when it is giving the output. You want to explain what is going wrong?