Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Ignoring dimension in a straight table

Hi guys,

I have data in the following form and would like to create a straight table which has the same fields (Code, Date and balance) but the balance field should have accumulated values (chronologically) .

CodeDateBalance



R172031-Aug-1220,971
R172003-Sep-1212,994
R172004-Sep-12-12,807
R172005-Sep-121,366
R172006-Sep-12-15,303
R172010-Sep-122,931
R172018-Sep-12-12,269
R172028-Sep-126,380
R172001-Oct-1247
R172004-Oct-121,701

The straight table should look something like this. Please note the last row sums all the values because the date field is the highest.

CodeDateBalance
R172031-Aug-1220,971
R172003-Sep-1233,965
R172004-Sep-1221,158
R172005-Sep-1222,524
R172006-Sep-127,221
R172010-Sep-1210,152
R172018-Sep-12-2,117
R172028-Sep-124,263
R172001-Oct-124,310
R172004-Oct-126,011

Would appreciate all the help i can get

Regards

Faisal

1 Solution

Accepted Solutions
Gysbert_Wassenaar

In that case the load script version will not restart the cumulative sum on a new Code. The expression will restart the cumulative sum for each order. See updated attached qvw


talk is cheap, supply exceeds demand

View solution in original post

6 Replies
Not applicable
Author

I could make another a data island with the same data and linking it to the oringal through the code field. That way i could compare the date fields. However is there another way i could do this? like a simplier way of doing this?

Anonymous
Not applicable
Author

Hi,

Use the Above() function. Something like =Above(Column(3))+sum(Balance)

You may need to do it in two different columns, one with the row value and another with the accumulated value.

Jonathan

Not applicable
Author

There's an issue with that because i will be hiding rows where the balance field is <=0 but those values need to be incorporated in the sum.

Gysbert_Wassenaar

See the attached qvw. One table is build up in the load script. The other uses an expression


talk is cheap, supply exceeds demand
Not applicable
Author

Gwassenaar,

What if there multiple codes?

Gysbert_Wassenaar

In that case the load script version will not restart the cumulative sum on a new Code. The expression will restart the cumulative sum for each order. See updated attached qvw


talk is cheap, supply exceeds demand