Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
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
tkirilov
Resolver I
Resolver I

Hi @Anonymous 

This should do it:

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

 

View solution in original post

MFelix
Super User
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


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

4 REPLIES 4
Anonymous
Not applicable

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

MFelix
Super User
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


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



tkirilov
Resolver I
Resolver I

Hi @Anonymous 

This should do it:

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

 

EricHulshof
Solution Sage
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


Did I answer your question? Mark my post as a solution!


Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors