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

cumulative sales..

Hi,

If you make selection on any date , it should show cumulative sales from month start till the selected

date.How will you do it?

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

You can do it by Set Analysis...

Considering that the date field name is InvoiceDate and you also have InvoiceYear, InvoiceQuarter, InvoiceMonth, InvoiceWeek....

=SUM({<

               InvoiceYear=, InvoiceMonth=, InvoiceQuarter=, InvoiceWee=,

               InvoiceDate = {">=$(=Date(MonthStart(Max(InvoiceDate))))<=$(=Date(Max(InvoiceDate)))"}

          >}Sales)

View solution in original post

1 Reply
MK_QSL
MVP
MVP

You can do it by Set Analysis...

Considering that the date field name is InvoiceDate and you also have InvoiceYear, InvoiceQuarter, InvoiceMonth, InvoiceWeek....

=SUM({<

               InvoiceYear=, InvoiceMonth=, InvoiceQuarter=, InvoiceWee=,

               InvoiceDate = {">=$(=Date(MonthStart(Max(InvoiceDate))))<=$(=Date(Max(InvoiceDate)))"}

          >}Sales)