Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
IF(Previous(month)=Month,RangeSum(Peek(Sales),Sales),Sales) AS rangesales;
add to script
can you share data in xls
try this in your table
Aggr(RangeSum(Above(Sum(Sales), 0, RowNo())), Area, Task,Month)
keep ur dimension in bold
try to add sub query in your dataload
load TASKNUMBER,if(Peek(Month)=Month,rangeSum(peek(Sales),Sales),Sales) as Rangesames;
LOAD
Area,
"Task Number" as TASK,
Division,
Team,
date("Month",'MM.YYYY') as Month,
"Task Number"& Team&Division&Area as TASKNUMBER,
Sales
FROM [lib://TEST/RangeSum2.xlsx]
(ooxml, embedded labels, table is Sheet2);