Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Question with measures

hi all   i know is a rookie question but i am not able to do it   i want a measure to know how many items of one value i have   the cell of the excel file is named overall satisfaction, and it ...
  • tkirilov's avatar
    6 years ago

    Hi Anonymous 

    This should do it:

    CountNotSatisfied =
    CALCULATE (
    COUNT('Analisys sheet'[Overall Satisfaction]),
    'Analisys sheet'[Overall Satisfaction] = "not satisfied")

     

  • MFelix's avatar
    6 years ago

    Hi Anonymous ,

     

    I'm assuming that when you are refering to  neutral and not satisfied and not satisfied is values in a column of your spreadsheet correct?

     

    The easier way is to just place the column on your visualization, select the aggregation count and then filter to the values Not  Satisfied.

     

    If you want to use a measure your calculation should be something similar to this:

     

    count not satisfied = CALCULATE(COUNT('Analisys sheet'[Overall Satisfaction]); 'Analisys sheet'[Overall Satisfaction] = "Not Satisfied")