Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
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?

Labels (1)
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)