Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
bnelson111
Creator
Creator

Range Sum Expression Help.

I have a Straight Table as below.

sssssssssssss.png

As you can see the WIP is a sum from ODBC table against the Pcodea and i'm attempting to have a range sum of it down dating against the new order qty (which is the customers orders). Problem is it continues to down date against a different Pcodea. As you can see it continues when Pcodea changes from 230325380 to 230325432. Code Below.

ssss.png

Any ideas?

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Use my second option

SUM([Your Jobline Field] -RangeSum(Above(SUM({<CODE>}OrderQTY),0,RowNo(TOTAL)))

View solution in original post

14 Replies
MK_QSL
MVP
MVP

Try this

Aggr(Your expression, Pcodea)

UPDATE :

Try this..

SUM([Your Jobline Field] -RangeSum(Above(SUM({<CODE>}OrderQTY),0,RowNo(TOTAL)))

Change your fieldname accordingly...

bnelson111
Creator
Creator
Author

Using the Aggr(Your expression, Pcodea) i get the following.

Untitled.png

Using the SUM([Your Jobline Field] -RangeSum(Above(SUM({<CODE>}OrderQTY),0,RowNo(TOTAL)))

the table opens all Pcodea's

MK_QSL
MVP
MVP

Use my second option

SUM([Your Jobline Field] -RangeSum(Above(SUM({<CODE>}OrderQTY),0,RowNo(TOTAL)))

bnelson111
Creator
Creator
Author

Brilliant. Thanks

bnelson111
Creator
Creator
Author


Just messed it up??

([Jobline for Customer Aisling;.OutstandingQty])-rangesum(above(Sum({<[Pcodea]>}[new_order_qty]),0,RowNo(TOTAL)))

As you can see the row two balance should read 27600..

ssss.png

MK_QSL
MVP
MVP

Can you load your sample file?

bnelson111
Creator
Creator
Author

Manish I'm using a personnal version. It's got a lot of other tables on different tabs. Would it help if I take screen shot of dim and expressions ? Sorry.

MK_QSL
MVP
MVP

You can always save the another version on your file and delete unwanted tabs.

Sometimes it is difficult to give you result without checking apps as above is working in my file...

bnelson111
Creator
Creator
Author

Will do. Send in 15mins. Someone is using my pc. Thanks.