Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have the expression
sum(aggr([Actual value]*[Number of Respondents],[Question number],[Institution],[Subject],[Level])) / sum([Number of Respondents]) which works, but I now need to incorporate this simple set analysis into it : {$<Institution={'*'}>}
I'm unsure of which order it needs to be in and seem to be going around in circles.
Any ideas on how it can be changed to bring the two expressions into one.?
Thank-you!
Not much luck.
To be honest I was guessing! Challenging one - I don't use Aggr() much.
I'll carry on at it. It appears so simple though..hmmm.
I'm looking at it and wondering if the problem isn't in the data model. What does "Number of respondents" mean? Should it be in the Fact table with Question number? Or is it a number of respondents per question? Can you give a little background on the data.
(I'm hooked on this now...)
It's basically student data with the Question Number being a key in the fact table, along with:
Institution, Subject, Level, [Question number], [Number of Respondents] and [Actual value] etc. etc.
The Global Average used to just be the simple expression : //AVG({$<Institution={'*'}>}[Actual value]), which needed to be changed, as it wasn't giving the correct values.
So does this record mean that 19 "Other undergraduates" studying Business Studies in the selected institution answered 63% for Q18?
Yes, that's exactly what it's saying.
Sorry, just to be clear - did 19 students get Q18 63% correct or was the answer given by 19 students '63%'?
Hi Jason,
Apologies for not being clear.
So, it's saying that Q18 was answered(given) by 19 students.
And 63% of those 19 students got it right?