I want to update the price value in a column by adding an amount to it.
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.
User | Count |
---|---|
43 | |
26 | |
23 | |
14 | |
13 |