Skip to main content
Nintex Community Menu Bar

Value of column of the previous row

  • Jan 20, 2017 9:47 AM UTC
  • 10 replies
  • 39 views
  • Translate All

Forum|alt.badge.img+7

I have a list with the following columns: consumer, before, balance.

The balance column is equal to the sum of the column consumer and the column before, so far so good.
But the value of the column before the current row should be the value of the balance column of the previous row.
How can I do this?

10 replies

Forum|alt.badge.img+16

Are you planning on doing this with workflow? 

Translate

Forum|alt.badge.img+7
  • Author
  • Rookie
  • Jan 20, 2017 11:52 AM UTC

It's indifferent as long as it works.

I already tried doing Nintext Forms and Workflow but I could not.

Translate

Forum|alt.badge.img+9

Hi,

What defines the sort order of your items in your list.

Just to know what is your current row and your previous row.

When this must be calculated? On Schedule? After Submit of a new item?

I think we need more info.

Regards,

Christophe

Translate

Forum|alt.badge.img+7
  • Author
  • Rookie
  • Jan 20, 2017 12:55 PM UTC

When the user creates a new record in the form. The Value "BEFORE" is automatically create with value of previous line.

Example:

1st Registration.

Consumer 5

Before 0

Balance - the value is calculated automatically consumer value + Before value (5+0)=5

2st registration

The user place the value of "Consumer" 10

The form automatically calculated Value of "Before" is 5 (field Balance of previous line)

the Balance now is automatically calculated 10+5=15

3st registration

The user place value of "Consumer" 10

The form automatically calculated value of "Before" is 15 (field Balance of previous line)

The Balance now is 25 calculate automatically

Best Regards

Translate

Forum|alt.badge.img+16

OK i can mock something up for you in workflow later - are you ordering your items by ID?  so if you wanted to update item with ID 3 you would need to get the balance from item with ID 2?

Translate

Forum|alt.badge.img+9
  • Jan 20, 2017 2:46 PM UTC

Jose Fidalgo‌, when determining the "Before" balance, is it dependent on the User who created it?  In other words would each user who creates a record have their own running "Before" balance.  Or is there a single "Before" balance independent of who creates the record?  I mocked up the 2 scenarios below.  Which one would you be expecting?

Scenario 1: Before Balance Depends on Created By

IDCreated ByConsumerBeforeBalanceNotes
1User 1505
2User 110515
3User 2505New Before balance for User 2
4User 151520Continued Before balance for User 1 from record 2

Scenario 2: Before Balance Doesn't Depend on Created By

IDCreated ByConsumerBeforeBalance
1User 1505
2User 110515
3User 251520
4User 152025
Translate

Forum|alt.badge.img+7
  • Author
  • Rookie
  • Jan 25, 2017 11:35 AM UTC

What I want is the second cenário.

Tks

Translate

Forum|alt.badge.img+7
  • Author
  • Rookie
  • Jan 25, 2017 11:37 AM UTC

Correct

Translate

Forum|alt.badge.img

Hi , i have the same problem any solution was find?

Translate

Forum|alt.badge.img

Hello!

can you give us please solution of scenario 2?

Brgds!

Translate