Skip to main content
cancel
Showing results for 
Search instead 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.

Reply
Anonymous
Not applicable

Monthly Count Measure not Calculating properly

I have a data model that houses data around customer survey results (see below).

 

Capture.JPG

 

 

Currently, I'm trying to get to the point where we can calculate our NPS. I've created a measure to parse out the number of Promoters (response >= 9). 

 

=CALCULATE(COUNTA(Satisfaction_Data[How likely are you to recommend?]),FILTER(ALLEXCEPT(Satisfaction_Data,Satisfaction_Data[EoMonth],Satisfaction_Data[Svc Center]),Satisfaction_Data[How likely are you to recommend?]<=10 && Satisfaction_Data[How likely are you to recommend?]>=9))

However, the results of the count are incorrect. Instead of splitting the count by month, the expression is agregating all months together by svc center. In the example above, svc center ABC should have 5 promoters in November and 3 in December but DAX in aggregating all responses of >= 9 together (for a total of 8 over both months). Is there something specifically I'm doing wrong here? Thank you for the help!

1 ACCEPTED SOLUTION
v-danhe-msft
Employee
Employee

Hi @Anonymous,

Could you have created a slicer visual in your report? You could use the slicer to choose the different group:

1.PNG

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-danhe-msft
Employee
Employee

Hi @Anonymous,

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered to close this topic?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-danhe-msft
Employee
Employee

Hi @Anonymous,

Could you have created a slicer visual in your report? You could use the slicer to choose the different group:

1.PNG

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
dedelman_clng
Community Champion
Community Champion

When I replicate what you've shown in your post, along with the exact same code, I get what I assume are the desired results.

 

How are you trying to display the NPS?

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

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

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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