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: 
arethaking
Creator II
Creator II

Cumm Sales Calculation

Hi All,

I want show Sales values as below:

JAN Sales=JAN Sales

FEB Sales=JAN Sales + FEB Sales

MAR Sales=JAN Sales + FEB Sales +MAR Sales

.

.

.

DEC Sales=JAN Sales + FEB Sales +MAR Sales+....+ DEC Sales.

By Default, want to show the data untill current month.

Please help me.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

7 Replies
trdandamudi
Master II
Master II

In the chart select "Full Accumulation" as shown in the screen shot below:

FullAccumulation.jpg

arethaking
Creator II
Creator II
Author

If I select Full Accumulation,

If there is no value for the month, it is showing previous month Sales.

I want to show until SEP.

Capture.PNG

Anil_Babu_Samineni

Like This

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
saimahasan
Partner - Creator III
Partner - Creator III

Hi

You can either use the "Full Accumulation" option or else you can use Rangesum and above functions as shown below:

=RangeSum(Above(Range),Sum([Total Amount]))

Untitled.png

HirisH_V7
Master
Master

Hi,

Check is this your'e looking for,

Accumulation  at month level -232621.PNG

By using this expressions and UN-checking full accumulation at both expressions,

1.

IF(Sum({<Date = {"$(='>=' & Date(YearStart(Max(Date)), 'DD/MM/YYYY') & '<=' & Date(Max(Date), 'DD/MM/YYYY'))"}, Month, Year>}Sales),

Rangesum(Sum({<Date = {"$(='>=' & Date(YearStart(Max(Date)), 'DD/MM/YYYY') & '<=' & Date(Max(Date), 'DD/MM/YYYY'))"}, Month, Year>}Sales),Above("Sales1")))

2.

If(Sum({<Date = {"$(='>=' & Date(YearStart(Max(Date)), 'DD/MM/YYYY') & '<=' & Date(Max(Date), 'DD/MM/YYYY'))"}, Month, Year>}Sales2),

Rangesum(Sum({<Date = {"$(='>=' & Date(YearStart(Max(Date)), 'DD/MM/YYYY') & '<=' & Date(Max(Date), 'DD/MM/YYYY'))"}, Month, Year>}Sales2),Above("Sales 2")))

HTH,

PFA,

Hirish

HirisH
“Aspire to Inspire before we Expire!”
sasikanth
Master
Master

HI

Use below expressions

Exp1 : Sales :

Sum(Sales)

Exp 2: Accumulatedsales:

If(sum(Sales)<>0, sum( aggr( rangesum( above(Sum(Sales),0,12) ),MonthYear)))

MK_QSL
MVP
MVP

Here you go !