How can I change a record to be ="current record value" + "value in another column"

I want to update the price value in a column by adding an amount to it.

0 7 399
7 REPLIES 7

When do you want to do it? When adding a new record or editing an existing one?

Editing an existing.

[Update that columnโ€™s value depending on a change in another column]


1.) Turn RESET ON EDIT property of the column that you want to edit/reset to ON
2.) Click on the blue funnel and record this expression:

AND(
    IN([KeyColumn], Tablename[KeyColumn]),
    LOOKUP([_THISROW].[ChangedColumn],"Tablename","LookupColumn","ChangedColumn")<>[ChangedColumn]
)

3.) Set an Initial Value expression to this column

IF(
    NOT(IN([KeyColumn], Tablename[KeyColumn])),YourDefaultNumber,
    YourDefaultNumber+[ColumnValueToAdd]
)

Presumably the default number can be zero?

Default number can be any number including zero

Small problem - the lookup column could be one of three - โ€œpaid cashโ€, โ€œpaid cardโ€ or โ€œpaid transferโ€. I was trying to do it from three different action buttons. Is that possible?

Its an โ€œamount dueโ€ field and I currently have it as [Total Service]+[Total Parts]+[Shop Sale]-[Card Paid]-[Cash Paid]-[Transfer Paid] but obviously the logic doesnโ€™t work if I then add another cost.

Top Labels in this Space