Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Previous month last date

Dear All,

i want to add Previous month Last day sales and want to compare from current month Last day sales.

For example today is 29-2-2016 i want to extract  31-1-2016 date as well as sales of that date.

i have two fields one for 'Date' and other is 'Sales', i hope its clear now

13 Replies
Not applicable
Author

my desired result to get

first expression

South31-Jan-1640

second expression

South15-Feb-161320

i want these numbers as result in table form.

tresesco
MVP
MVP

It's good practice to mark helpful/correct replies - that helps others searching for similar solution.

Anonymous
Not applicable
Author

Did you try what I suggested you?

To get 15-Feb-16, just remove monthend() from my Current Month Expression

tresesco
MVP
MVP

PFA

=Sum({<Date ={"$(=Date(Max(Date)))"}>}Sales)

=Sum({<Date ={"$(=Monthend(Max(Date),-1))"}>}Sales)