survey
3 TopicsCant use a var in count and looking for help,
Hi, I am trying to count the number of entries in a survey based on the question Value eg Question 1 Summary Table Department Question Count Responses Count Agreed Department A Question 1 3 2 Department B Question 1 3 0 Department A Question 2 3 2 RawData Table ID Department Q1 Q2 Q3 1 Department A Agree Agree Agree 2 Department b Disagree Agree Disagree 3 Department A Agree Agree Disagree I have tried using variables and count but i get an error that says i need to use a column reference. Count Responses = VAR Field = "'RawData'[" & Transformation[Question] & "]" VAR RowCount = CALCULATE(COUNT(Field)) RETURN RowCount Any pointers would be really appreciated.Solved1.8KViews0likes8CommentsSurvey Data - Display average results below a value
Hello Everyone, I'm trying to make a simple calculation but just can't figure out the DAX formula to do it. I have a survey with 6 categories of questions. Each category has 3 to 6 questions, answered with Strongly Disagree, Disagree, Agree, Strongly Agree. I've unpivoted the questions and answers and made a conditional column to grade each response with -10, -5, 5 and 10. This is how it looks: I'm making an average of each answer per category for example in Training there are 3 questions: (10 + 10 - 5) / 3 = an average of 5 The way I display that is in a table, and I can simply ask the value to display as average or use a DAX formula like this: Average Score = Average(questions[Score]) What I'm trying to do is to see how many people have an average below 5 in each category. How I tried so far is with this formula: _No. of employees < 5 = CALCULATE(COUNTAX('Append1', [ID]),'questions'[Score]<= 5 ) But it calculates each answer individually, so it doesn't really give me the number of people, but the number of answers below or equal to 5. Later on, I want to see how many people in each group/account have a score below 5. The way I see it so far is with a table like this, but I don't want to count each red tab, in each group, but to have a direct answer. (The first column is filled with people ID)982Views0likes2Comments