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
saud968
Responsive Resident
Responsive Resident

Need to know count of survey need to achieve the goal

I wanted to know the count of CSAT of value "5" to achieve the average score of 3.9. example Ricky needs 5 more surveys to achieve an average score of 3.9

 

I have tried this 

Needed Survey = IF([Average SAT]>=3.9, 3.9 - [Average SAT] * CSAT[C-SAT]= 5, COUNT(CSAT[CSAT] )) but i am getting result as true or false. Average SAT is another measure which i used Average(csat[csat]) 
 
How do i get the count

 

 

Case NumberResponded Date
(America/Cancun)
Closed Date
(America/Cancun)
CSATCESCommentsPCMProductInquiry/Problem/Request
1542477/1/2021 1:30 AM7/1/2021 1:29 AM55 Saud AnsariFortifyProblem
1210321/30/2021 4:08 AM1/22/2021 5:33 PM55 Salman PatelPortalInquiry
1213712/2/2021 4:04 PM1/26/2021 4:01 PM33The feature is not available right now in the portalSalman KhanSecurity - SoftwareProblem
1207901/31/2021 4:41 PM1/31/2021 2:08 AM44While the Partner care team were very good at opening a line of communication, we still feel that the NOC are often letting us down.Ronak WaghelaPortalProblem
1353284/30/2021 10:56 AM4/28/2021 2:03 AM55 Saud AnsariHD ServiceInquiry
1548036/30/2021 12:58 PM6/30/2021 12:56 PM55 Salman KhanControlInquiry
1624118/3/2021 11:09 AM7/30/2021 8:16 PM55 Ronak WaghelaAssist Help DeskProblem
1235902/18/2021 4:14 PM2/10/2021 5:15 PM11I doubt there is anything connectwise can do to stop sucking. We really HATE that we have to deal with Connectwise as a ContinuumSalman PatelPortalInquiry
1349734/26/2021 4:03 PM4/26/2021 1:51 PM55 Salman PatelPortalInquiry
1566447/20/2021 4:22 PM7/13/2021 3:54 PM33 Ronak WaghelaPortalInquiry
1361685/5/2021 9:51 AM5/4/2021 4:57 PM44N/A - I was the last person to be assigned this. I'm sorry I cannot provide further feedback. I appreciate your support while looking into this case.Salman KhanNot Product RelatedProblem
1429586/7/2021 6:23 AM6/5/2021 6:52 AM55 Ricky ThakurFortifyInquiry
1386266/7/2021 5:46 AM5/26/2021 3:00 PM55 Ricky ThakurFortifyProblem
1218422/7/2021 3:12 PM1/29/2021 5:01 PM22please call us to validate if we are indeed aware of overdue account first. due to your upgrades and system changes, our auto pay setup was disregarded and we would normally check auto pay accounts.Sagar MorePortalProblem
1557217/10/2021 7:26 AM7/10/2021 6:06 AM23When agreeing a future action, some sort of date for when it will be done should be agreed.  In this instance it was especially important as the issue has been left unresolved for many months.  Some form of commitment is required or even conformation nothing will be done.Rajeshkumar PatwaControlProblem
1536326/28/2021 3:09 PM6/26/2021 5:30 PM54 Sagar MoreAssist Help DeskProblem
1345385/11/2021 2:16 PM5/11/2021 1:40 PM4 Please have your team (NOC) read notes before pushing it back to the queue.Salman KhanRMM - Server ServiceProblem
1305705/4/2021 8:58 AM4/6/2021 4:37 PM11everything, communication, actually resolve issues.Ricky ThakurPortalInquiry
1178141/6/2021 10:41 AM1/6/2021 9:36 AM12the issue is still not resolved.  It has now been 5-6 times you have tried to fix it.  It is frustrating that you can't seem to evaluate whether the resolution has worked.Ricky ThakurRMM - DesktopsProblem
1 ACCEPTED SOLUTION

@saud968  You need to include the SUM of all survey results which you have removed from my measure. Please refer to the attached file in the previous post, but here are all measures for reference (I think Chris may have created some of them for you).

 

All as MEASURES:

 

SumCSAT = SUM(CSAT[CSAT])

 

AvgCSAT = AVERAGE(CSAT[CSAT])

 

CountCSAT = COUNT(CSAT[CSAT])

 

Count 5 surveys needed to reach 3.9 avg =
IF([AvgCSAT]<3.9,
ROUNDUP(DIVIDE([SumCSAT]-3.9*[CountCSAT],3.9-5),0))

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

5 REPLIES 5
AllisonKennedy
Super User
Super User

@saud968 

 

This is an algebra question more than anything. Not sure if I am using the same logic you want, but here's my DAX:

 

Count 5 surveys needed to reach 3.9 avg =
IF([AvgCSAT]<3.9,
ROUNDUP(DIVIDE([SumCSAT]-3.9*[CountCSAT],3.9-5),0))
 
Thanks also to @ChrisMendoza , I have modified your report. See attached below signature. 

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

@AllisonKennedy    This is what i am getting after coming changes to 

Needed Survey = CALCULATE(CSAT[Average SAT],FILTER(CSAT,IF([Average SAT]<=3.9, 3.9 - [Average SAT] * COUNT(CSAT[CSAT]), COUNT(CSAT[CSAT]))))
 

saud968_0-1628825401352.png

However, it is incorrect as Ronak needs 22 more surveys with the perfect score of "5" to reach 3.9. Below is the current list of surveys and scores for Ronak. in excel we have used this formula - =IF((H3=""),"",IF(H3>=3.95,0,(3.95-H3)*COUNTIF('Raw Dump'!B:B,'PCM Summary'!B3)))

 

4
5
3
1
5
2
4
1
5
1
1
2
5
5
1
2
3
1
5
1
1
2
5
5
4
4
1
4
1
5
5
5
5
5
5
5
5
5
1
5
3
1
5
1
5
4
1
5
1
1
5
5
5
5
4
5
4
5
2
4
1
5
5
5
5
1
5

@saud968  You need to include the SUM of all survey results which you have removed from my measure. Please refer to the attached file in the previous post, but here are all measures for reference (I think Chris may have created some of them for you).

 

All as MEASURES:

 

SumCSAT = SUM(CSAT[CSAT])

 

AvgCSAT = AVERAGE(CSAT[CSAT])

 

CountCSAT = COUNT(CSAT[CSAT])

 

Count 5 surveys needed to reach 3.9 avg =
IF([AvgCSAT]<3.9,
ROUNDUP(DIVIDE([SumCSAT]-3.9*[CountCSAT],3.9-5),0))

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

saud968
Responsive Resident
Responsive Resident

@saud968 -

Are you saying for [PCM] = 'Ricky Thakur':

Count of CSAT = 4

Sum of CSAT = 12

Average of CSAT = 3

The question being...

How many surveys (new entries) does [PCM] = 'Ricky Thakur' need with a [CSAT] = 5 (best score) to meet the Total Average of the data?

 

I honestly do not think I would know how to solve that. For each new count, presumably others are entering as well, affects the Total Average. In any case, I've created a PBIX file so others may start to tackle it.






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



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.