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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tricky question?


Hi ,

i have data for jan 2013 sales is 100  and dec 2013 sales is 1200 , remining  feb,mar,....oct,nov i dont have

but my req is

i want see the data for 

jan is 100

feb is 100

mar is   200(jan+feb)

apr is   400(jan +feb+mar)

like this i want till dec(jan+....+dec)  .

i have to do this in script level only not in chart level using accumulation.

how ?

10 Replies
MK_QSL
MVP
MVP

Sales:

Load

  Date#(Month,'MMM') as Month,

  Sales

Inline

[

  Month, Sales

  Jan, 100

  Feb, 200

  Dec, 300

];

Join

Load  

  Date#(Month,'MMM') as Month

Inline

[

  Month

  Jan

  Feb

  Mar

  Apr

  May

  Jun

  Jul

  Aug

  Sep

  Oct

  Nov

  Dec

];

Final:

Load

  Month,

  Sales,

  RangeSum(Peek('TotalSales'),Sales) as TotalSales

Resident Sales

Order By Month;

DROP Table Sales;