Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

I have a table that contains column cumulative_sum which is a cumulative sum of it previous values. So, for account A cumulative_sum for 2022-01 is 12, and for 2022-02 it's 24 meaning there has been ...
Ganesh Khadka's user avatar
0 votes
3 answers
454 views

I have a stack with large number of layers, and I want to run a pixel-wise cumulative sum function across the layers with reset when sum becomes <0. Ive compiled the following code: # given that &...
tabumis's user avatar
  • 106
1 vote
1 answer
278 views

Please consider this table: Year Month Value YearMonth 2011 1 70 201101 2011 1 100 201101 2011 2 200 201102 2011 2 50 201102 2011 ...
DooDoo's user avatar
  • 13.1k
0 votes
2 answers
63 views

I have the following dataframe: df = Time_to_event event 0 0 days 443 1 1 days 226 2 2 days 162 3 3 days 72 4 4 days 55 5 5 days ...
Economist_Ayahuasca's user avatar
0 votes
1 answer
833 views

I have a summary table in Power BI which shows how many days it takes for leads to convert to a sale. It has 2 columns, sum_convert (the amount of days in between lead creation date and converted date)...
willd9's user avatar
  • 87
2 votes
2 answers
747 views

I have an array made of 0 and 1. I want to calculate a cumulative sum of all consecutive 1 with a reset each time a 0 is met, using numpy as I have thousands of arrays of thousands of lines and ...
tibibou's user avatar
  • 164
2 votes
3 answers
70 views

I'm looking to do the following -- cumulative sum the indicator values and remove the indicators after those days original: transaction day indicator 1 1 0 1 2 0 1 3 0 1 4 1 1 5 1 1 6 1 2 1 0 2 2 0 2 ...
rushi's user avatar
  • 333
-1 votes
1 answer
148 views

Struggling with a C# windows form app. I've got the form built and the basic functions (can enter the values in the form fields) and they populate a listbox properly (yay!), and the textboxes clear ...
Arthwys Ironhand's user avatar
1 vote
3 answers
484 views

I'm trying to calculate the cumulative total in a column. It needs to sum or subtract if the value of (A) cell is set to buy or sell. here is an example: A (task) B (qtty) C (total) calculation ...
Nilson's user avatar
  • 15
1 vote
1 answer
46 views

I have a table with users, a month series, a flag for eligibility, a running sum of an amount, and an incremental amount column (example data below). I need to find the amount that has accumulated for ...
smp9871's user avatar
  • 11
0 votes
0 answers
70 views

Trying my best to explain what I am trying to achieve here. I have 2 series (Annual Volume & Annual Capacity) which I need to compare to allocate a value in the column Allocation & then sum it ...
Rajib Lochan Sarkar's user avatar
0 votes
2 answers
47 views

So, I'm having a headache finding a way to program this in R. Since it is very easy to do Excel, I'm hoping this is just my n00b lack of knowledge. Checking the example table I'm presenting: my ...
Igor Mendonça's user avatar
1 vote
1 answer
10k views

I have a table with below data set. I want to get the cumulative sum based on PK1 and PK2 as on TXN_DATE. I have tried with cumulative window frame functions and its giving the expected result. But I ...
Maran's user avatar
  • 181
-1 votes
1 answer
319 views

I would like to keep a running/cumulative array of new IDs. Starting with this: Date IDs_Used_Today New_IDs Dec 6 1, 2, 3 1, 2, 3 Dec 7 1, 4 4 Dec 8 2, 3, 4 3 Dec 9 1, 2, 3, 5 5 And getting this: Date ...
theOtherOne's user avatar
2 votes
2 answers
2k views

I'm trying to sum a Google sheets column up to the current row. Everything within the sum formula seems to work okay when I just use copy and paste, but it does not seem to work the same in an ...
user18339372's user avatar
1 vote
1 answer
85 views

I have the following pandas Data Frame (without 2 the last columns): name day show-in-appointment previous-missed-appointments proportion-previous-missed 0 Jack 2020/01/01 show ...
pooya ensafi's user avatar
-1 votes
2 answers
283 views

If I have total qty = 100. and it has been shipped in 4 phases line 40, 10, 25, 25 that equals to 100. when I am running this query: Someone Helped me with this query. I want the same runnable for DB2....
PRAGYA SHARMA's user avatar
-1 votes
2 answers
54 views

UPDATE: This has been solved. I created a "calculated variable" in tableau called [Lab Volume] and put this code into the calculation: If [Average Results Per Day] <= 25 THEN 'Low' ELSEIF ...
Moosetracks28's user avatar
1 vote
2 answers
227 views

I have a repayment table that looks like this below, cus_id due_date principal disbursed_date 1 01-01-2022 10 01-11-2021 1 01-02-2022 10 01-11-2021 1 01-03-2022 10 01-11-2021 2 15-03-2022 20 15-02-...
iamawesome's user avatar
1 vote
2 answers
817 views

I am trying to figure out a way to reset the cumulative counting every time I reach "SI". For example i am doing a running total of word "NO" , if there are some blanks then result ...
Mirza Usman Shafiq's user avatar
-2 votes
2 answers
573 views

Within a dataframe, I need to count and sum consecutive row values in column A into a new column, column B. Starting with column A, the script would count the consecutive runs in 1s but when a 0 ...
Markus's user avatar
  • 1
1 vote
1 answer
569 views

I have looked into running total problems/questions asked here but could not find the similar one. Im using sql developer, and have select statement privileges, do not have access to cursors or loops, ...
serkan's user avatar
  • 47
0 votes
1 answer
52 views

I'm trying to get the cumulative sum for each user. related tables(just example): [user] id nickname A AA B BB [pointTable] user_id -> [user]id id user_id point piA A 10 piB B 8 [pointHistoryTable] ...
user15348043's user avatar
0 votes
1 answer
43 views

Stock = { 'apple': .40, 'cheese': .90, 'banana': .60, 'pear': .60, 'steak': 3.00, 'salad': 1.00, 'ketchup': 1.00, 'wine': 5.00, 'beer': 4.50, } shoplist = [] for ...
veryconfused's user avatar
1 vote
1 answer
159 views

I have an orders table with datetime when an order was placed, and when it was completed: orderid userid price status createdat doneat 1 128 100 completed 2/16/21 18:40:45 2/21/21 07:59:46 2 128 150 ...
Denisse's user avatar
  • 27

1 2 3
4
5
30