cancel
Showing results for
Did you mean:

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Anonymous
Not applicable

## 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 have neutral and not satisfied.

How can i have a measure to have the number of not satisfied?

count not satisfied = CALCULATE(COUNT('Analisys sheet'[Overall Satisfaction])) , i am not sure what filter should I use

the excel file name is analysis sheet

Thanks!
2 ACCEPTED SOLUTIONS
Resolver I

Hi @Anonymous

This should do it:

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

Super User

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")

Regards

Miguel Félix

Proud to be a Super User!

Check out my blog: Power BI em Português

4 REPLIES 4
Anonymous
Not applicable

If you want to do it in a single measure:
COUNTROWS(
FILTER(
Table,
Table[Satisfaction] = "not satisfied"
)
)

Super User

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")

Regards

Miguel Félix

Proud to be a Super User!

Check out my blog: Power BI em Português

Resolver I

Hi @Anonymous

This should do it:

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

Solution Sage

Hello!
I would just use COUNT('Analisys sheet'[Overall Satisfaction])+0 and then when you use the measure in a visual put up a filter on it to only count not satisfied.
The +0 is to never show blank() in the report.

Quality over Quantity

Announcements

#### Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

#### Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

#### Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors