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

Creating new column with merged values

Hello dear community, 

I have a table of data with columns like Month, Sales, Team, etc..

What I need is to create a column, which will show:

For Month 01.2019  - Sum of Sales for monthNumber 1

For Month 02.2019 - Sum of Sales for monthNumber 1+2

For Month 03.2019 - Sum of Sales for monthNumber 1+2+3

and so on. 

I tried to create a new column using peek function, but it gave me strange figures.

This is a more complicated continuation of this question.

Thank you in advance for your help!

Sample data below.

 

sample.PNG

11 Replies
Channa
Specialist III
Specialist III


Aggr(RangeSum(Above(Sum(Sales), 0, RowNo())), Month, (TASKNUMBER2, (NUMERIC)))

 

 

script

 

LOAD
date("Month",'MM.YYYY') as Month,
Area,
"Task Number" as TASK,
Division,
Team,

"Task Number" as TASKNUMBER,
AutoNumber("Task Number"&Team&Division&Area&Month) as TASKNUMBER2,
Sales
FROM [lib://TEST/RangeSum2.xlsx]
(ooxml, embedded labels, table is Sheet2);

Channa
miskinmaz
Creator III
Creator III

The as of table is quite easy with this kind of aggregation operation.

https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130