Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
The AGGR function is not returning what I thought it should have based on my data. The visual shows 23 which is incorrect. The number should be 276, can anyone see what is happening and why it doesn't work as expected?
I'm sure its me 🙂
The Expression is: aggr(Sum([Student Count]), StudentID, StudentCategoryID)
you need another sum around the aggr.
Aggr essentially returns a table with the value there so in your case it returns
StudentID, StudentCategoryID, Sum([Student Count])
what are the other dimensions in your chart?
There is a category field, and a category Code field as other dimension. So what would the New AGGR STATEMET LOOK LIKE?
Old: AGGR(Sum([Student Count]), StudentID, StudentCategoryID)
New: ?
No sorry it was test data but i added the update you suggested and it now works properly.
Thanks buddy
you need another sum around the aggr.
Aggr essentially returns a table with the value there so in your case it returns
StudentID, StudentCategoryID, Sum([Student Count])
what are the other dimensions in your chart?
There is a category field, and a category Code field as other dimension. So what would the New AGGR STATEMET LOOK LIKE?
Old: AGGR(Sum([Student Count]), StudentID, StudentCategoryID)
New: ?
Sum(AGGR(Sum([Student Count]), StudentID, StudentCategoryID) )
i dont see category code field in your excel
No sorry it was test data but i added the update you suggested and it now works properly.
Thanks buddy