Forum Discussion
juliaellershaw
5 years agoFrequent Visitor
Average measure
Hi, I have some survey data and am trying to work out the formula for a measure that will give me the average of the answers for only one of the questions. For example, with this example data, how wo...
- 5 years ago
juliaellershaw , Try like
averageX(filter(Table, Table[Question]="Q1"), Table[Answer])
juliaellershaw
5 years agoFrequent Visitor
Thanks for the formula. I'm getting an error with this seciton "SUMMARIZE('Table','Table'[Q1]," that says it can't find the column for Q1
- mahoneypat5 years ago
Microsoft Employee
You need to replace "Table" with the actual name of your table.
Alternatively, you could just make a table visual on your report page, and add the Question column and the Answer column. On the Answer column in the field pane, change the aggregation to average.
Regards,
Pat