Bypass 'multiple row context' in DAX computation for Excel Pivot Table -


my original relational table named surveydata - extracted sql query in olap fashion - formed 3 columns:

  • moviename : string
  • participantid : integer
  • likelabel : integer 0 or 1

i want extract pivot table.

first drag moviename in rows field of pivottable.

then need compute 3 measures written in dax fashion in pivottable fields of surveydata table:

  • 1st measure: given movie related row label, compute average of participants liking movie;

    this measure is: avglikes := average(surveydata[likelabel])

  • 2nd measure: given movie related row label, exclude movie set of n movies , need compute average (e.g. averagex) of avglikes of remaining n-1 movies

  • 3rd measure: given movie related row label, exclude movie set of n movies , need compute standard deviation of avglikes of remaining n-1 movies.

currently not know how compute 2nd & 3rd measures.

needless say, set of n movies needs dependent of selection specified in row labels of pivot table in excel spreadsheet.

is possible create measures? hope having been clear enough in explanations of matter.

thanks in advance insights!


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -