-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cumulative sum? #2624
Comments
There are a few conflated issues here.
This version of the expression should work, but you'll need to drag the real-time slider all the way to the left to "paused" because (1) will cause the engine to fail if a real-time update is applied to this expression:
Another thing to note that you will likely run into with this is Perspective ExprTK's handling of numeric types. Numeric literals in Perspective ExprTK are always assumed to be We have a plan to improve Perspective ExprTK's error-reporting/type-checking in the near term. However, we also have a plan to resurrect #2102 , which will allow efficient and sort aware cumulative sum calculation, rather than just the native index ordering. We'll elaborate on these plans in a separate Issue. |
Sans workaround, duplicate of #504 |
Hi, I have 100% similar issue. I need to aggregate cumulative sum for customer balance after each transaction. I tried
But cum_sum is always 0 |
Can't help you without a repro - and please open a new discussion, this Issue was closed as not-a-bug ergo it cannot be related. |
Bug Report
I'm trying to calculate a cumulative sum for a particular column by using
index
,vlookup
andfor
.Steps to Reproduce:
Expected Result:
Cumulative bid values are calculated
Actual Result:
Invalid expression encountered
Environment:
NA: website
Additional Context:
Is there another (better) way to calculate an accumulation/cumulative sum ?
The text was updated successfully, but these errors were encountered: