Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear all
I managed to compute the average score 53.0 for 5 batches but failed to show the result, please advise urgently.
Thank you so much
Tracy
Did you try adding the new dimensions to your Aggr() function when you added them to the dimension?
When only Type is added, try this:
If(Dimensionality() = 0, Aggr(If(avg(TOTAL Score)>= [Lower] and avg(TOTAL Score)<= [Upper], Result), Batch, Result, Type), Aggr(If(avg(Score)>= [Lower] and avg(Score)<= [Upper], Result), Batch, Result, Type))
When Type and Item are added
If(Dimensionality() = 0, Aggr(If(avg(TOTAL Score)>= [Lower] and avg(TOTAL Score)<= [Upper], Result), Batch, Result, Type, Item), Aggr(If(avg(Score)>= [Lower] and avg(Score)<= [Upper], Result), Batch, Result, Type, Item))
When you add a dimension to the chart, you will most likely need to add it to the Aggr() expression also. Check out the attached
To attach a sample, check out the following link:
Dear Sunny
Yes, I did add Type and Item in the Aggr() function, please refer to attached files for details.
Thank you, Tracy
Here you go, try these expressions:
With Type:
If(Dimensionality() <= 1, Aggr(If(Avg(TOTAL Score) >= [Lower] and avg(TOTAL Score)<= [Upper], Result), Batch, Type, Result), Aggr(If(avg(Score)>= [Lower] and avg(Score)<= [Upper], Result), Batch, Type, Result))
With Type and Item
If(Dimensionality() <= 2, Aggr(If(avg(TOTAL Score)>= [Lower] and avg(TOTAL Score)<= [Upper], Result), Batch, Type, Item, Result), Aggr(If(avg(Score)>= [Lower] and avg(Score)<= [Upper], Result), Batch, Type, Item, Result))
Dear Sunny
Thank you for your help, please advise what is the meaning of <= 1 or 2.
Tracy