Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I want to create the dynamic aggr expression for a group dimension using dollar expression.
Plz do the needful
thnx in advance
Regards,
Qliker
When using volume as dimension, you probably don't have a unique ExRate per dimension value, so you need to use an aggregation function:
sum(AGGR(sum(Price*qty)/Avg(ExRate), Country, [$(=GetCurrentField(Group1))]))
or
sum(AGGR(sum(Price*qty/ExRate), Country, [$(=GetCurrentField(Group1))]))
or any other appropriate aggregation.
Would you be able to provide more details? What is the group name, what is the expression... etc?
Hi Abhishek,
Please follow the below steps to do dynamic aggr
Cycle1
with ProdID and Month as the dimensions:Cycle1
as the second dimension.Sum( AGGR(Sum(Price*Qty)/ExRate, Country, [$(=GetCurrentField(Cycle1))]) )
Just create cyclic group
further you can dynamically use the Aggr with cyclic group like in below thread
Sahal.. Please for clarity sake, help us with some details. Cheers
i Have created the cyclic group(Group1) with two dimensions(curr,vol)
and m using this expressiion
sum(AGGR(sum(Price*qty)/ExRate, Country, [$(=GetCurrentField(Group1))]))
And m getting the value only for currency field not for volume.
Thanks to all for giving the appriciated efforts.
Regards,
Qliker.
When using volume as dimension, you probably don't have a unique ExRate per dimension value, so you need to use an aggregation function:
sum(AGGR(sum(Price*qty)/Avg(ExRate), Country, [$(=GetCurrentField(Group1))]))
or
sum(AGGR(sum(Price*qty/ExRate), Country, [$(=GetCurrentField(Group1))]))
or any other appropriate aggregation.