Hi,
I still don't think of a way to make it work with aggregate and formulas together, since the weight is only applied to the summary row
and i dont have fixed dataIndx for the columns, they are mapped depending on year/month, and i can change the view of the table using
a button/filter, to show me a different year.
And example of the data i have is like this, the default currency is Euros, so its values are 1 for all months. And the other
currencies are based on it. On the Grid table, each row can have a different currency, and the second column, specifies which currency
by name, allowing me to match with the name of a currency in the first column of the currencies table.
So the weight is only applied when I want to calculate the Summary for the grid table.
Currencies Table
oct nov dec
eur 1 1 1
usd 0,8 0,8 0,8
dkk 0,2 0,2 0,2
Grid Table
2017
oct nov dec total
item1 eur 10 15 20 45
item2 dkk 40 40 40 120
item3 usd 5 5 5 15
Total EUR 22 27 32 81 < - only row where the weight is applied (and calculate the sum of each element in the column*weight)
From what i could understand, formulas are mapped by the dataIndx of a column,and if I use this i wouldnt be able to load the values.
And when in a formula i only have the row info, the same way as in a aggregate function i only have the column info. If there is a way, how could i combine
both? would really like if you have a working example on this.
Later I will try to create a smaller version of my grid on plnkr and post here, to help the understanding.
Thanks so much for the help so far, and sorry for all the trouble.