Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi at all,
I have this situation

So i have several products and the date of purchase and the relative unit price.
I created a field called "Prima data" where i select, for each product, the first date of purchased and then i would like to obtain, for each product, the price of purchased at the first date. The problem is that in the last column i used this formula
aggr(nodistinct avg({<data={"$(MinData)"}>}Unit_Price), Product)
but it calc the unit price only for the first date of the entire data set (in this example was product A purchased at 01/01/2017 at 1,1).
Is there any solution in order to calc the first price for each product?
Andrea
You can
Aggr(NODISTINCT FirstSortedValue(DISTINCT Unit_Price,data),Product) *Quantity
Last Price -> replace data with -data