Skip to main content

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld 2023, a live, in-person thrill ride. Save $300 before February 6: REGISTER NOW!
cancel
Showing results for 
Search instead for 
Did you mean: 
vijayptcs
Creator II
Creator II

Last months sale

Hi All,


Using below am getting last year Last month sale (28-FEB-16) but am not getting  29-feb-16 day of sale.

What i want to make changes in this


Thanks

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like (change highlighted in red):

(SUM({$<FinancialYear=,MonthName=,FiscalYear={$(=max(FiscalYear)-1)},Quarter=
,
[Posting Date]={">=$(=MonthStart(max({$<FiscalYear={$(=max(FiscalYear))}>}[Posting Date]),-12))<=$(=MonthEnd(addmonths(max({$<FiscalYear={$(=max(FiscalYear))}>}[Posting Date]),-12)))"}
>}
[Gross Sales Amount])

View solution in original post

2 Replies
tyagishaila
Specialist
Specialist

to get 29 feb 16 you have to use MonthEnd().

for better understanding share sample data and required output.

tresesco
MVP
MVP

Try like (change highlighted in red):

(SUM({$<FinancialYear=,MonthName=,FiscalYear={$(=max(FiscalYear)-1)},Quarter=
,
[Posting Date]={">=$(=MonthStart(max({$<FiscalYear={$(=max(FiscalYear))}>}[Posting Date]),-12))<=$(=MonthEnd(addmonths(max({$<FiscalYear={$(=max(FiscalYear))}>}[Posting Date]),-12)))"}
>}
[Gross Sales Amount])