Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, i've a total quantity of products i want to represent on a gauge chart depending on a cycle group:
- Agent
- Sales manager
- Area manager
I've tried to settle a MAX like this
=max(aggr(sum(QUANTITY),SALES_MANAGER)) but when a cycle my dimension on agent, it doesn't report their efforts in the right way.
The same for the MIN. Is anybody able to give me a suggestion about this.
Tks
Try:
=Max(Aggr(Sum(Quantity),GetCurrentField("YourCyclicGroupName")))
Hope this helps,
Jason
Sorry, I',ve made a mistake, this formula gives me a error of bad min or max in the gauge. It looks like it doesn't recognize the cycle group
Can you be more specific? Or better still please post your app.
Expression to calculate quantity, is this:
sum({<FG_NRT={'N'}>} QUANTITY) where set analyis FG_NRT is only to extract consolidated value, in the min and max i have:
MIN= 0
MAX= max(aggr(sum({<FG_NRT={'N'}>} QUANTITY),GetCurrentField("Area Analisi")))
i've tried also changing Area Analisi in Area_Analisi but no success
What value are you getting for Max and what do you expect? try removing current selections in your Aggr():
= max(aggr(sum({1<FG_NRT={'N'}>} QUANTITY),GetCurrentField("Area Analisi")))
Neither previous nor this, it seems that the only way to solve the error is to calculate aggr for all the members of my cycle group excluding the min (agent) and max (area manager) aggregation
=Max(aggr(sum({<FG_NRT={'N'}>} QUANTITY), Sales manager))
Tks
Seriously, if you post a sample application it is much easier for us to help you. I'm what you want can be achieved.
Give me more time to post the sample, i'm very interested to solve this problem in a smarter way. Tks