WPCubed Product Support

Calculations in WP_reporter

Hello

stock name |account__|share value_|__share #_|____Total value

stock name |account__|share value_|__share #_|____Total value
__a____|1___|____#______|____#____|_______#
__b____|1___|____#______|____#____|_______#
__c____|1___|____#______|____#____|_______#

With the four columns above, a calculation of the total value of stocks a) b) and c) can be made with
par.ASetStringProp(WPAT_PAR_COMMAND, 'left(2)*left(1)');

Question:
If there are multiple accounts holding a single stock type as in below.

stock name |account__|share value_|__share #_|____Total value
__a____|1___|____#______|____#____|_______#
__a____|2___|_______________|____#____|_______#
__a____|3___|_______________|____#____|_______#
__b____|1___|____#______|____#____|_______#
__c____|1___|____#______|____#____|_______#

Is there a mechanism so that the share value could be calculated for shares of stock a) with the share value being entered for only the first account (see above). For example account 2 would be par.ASetStringProp(WPAT_PAR_COMMAND, 'left(2)up(1)*left(1)');

TIA
John

#1 ♥ 0
3.6k Views 2 users read 1 min
support

There is no up() since this would not be exact. It is not always clear that one cell is near to the other vertically.

However any cell can be given a name - and this name can be used in a calculation. If multiple cells have the same name, the value for that "name" is the sum of all values.

#2 ♥ 0
This category is archived. No new posts are possible.