Forum Discussion
Card visual help
- 4 years ago
Hi Anonymous
Try this:
Satisfication with Provider = VAR _SVS = CALCULATE ( CountA('Qualtrics Survey sample data'[Satisfaction with provider]), FILTER ( ALL ( 'Qualtrics Survey sample data' ), 'Qualtrics Survey sample data'[Satisfaction with provider] = "Satisfied" || 'Qualtrics Survey sample data'[Satisfaction with provider] = "Very satisfied" ) ) VAR _AO = CALCULATE ( CountA('Qualtrics Survey sample data'[Satisfaction with provider]), ALL ( 'Qualtrics Survey sample data' ) ) RETURN _SVS/_AOIf this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Here is the sample data. I want to display the % of contacts happy (satisfied and very satisfied) with the provider as a card.
| Contact Fields - Recipient Last Name | Satisfaction with qual | Satisfaction with provider |
| Harmey | Neither satisfied nor dissatisfied | Very satisfied |
| Brown | Dissatisfied | Neither satisfied nor dissatisfied |
| Sutton | Satisfied | Neither satisfied nor dissatisfied |
| Liang | Very satisfied | Very satisfied |
| Fleming | Satisfied | Satisfied |
| Campbell | Very satisfied | Neither satisfied nor dissatisfied |
| Green | Satisfied | Satisfied |
| Urquhart | Very dissatisfied | Very dissatisfied |
| Preston | Neither satisfied nor dissatisfied | Neither satisfied nor dissatisfied |
| Kacho Ochana | Very satisfied | Very dissatisfied |
| Macri | Satisfied | Satisfied |
| Walker | Very satisfied | Very satisfied |
| Watts | Satisfied | Neither satisfied nor dissatisfied |
| Miller | Satisfied | Satisfied |
| Padden | Very satisfied | Very satisfied |
| Chen | Very satisfied | Very satisfied |
| Limbrick | Neither satisfied nor dissatisfied | Neither satisfied nor dissatisfied |
| Martin | Neither satisfied nor dissatisfied | Neither satisfied nor dissatisfied |
| Ong | Satisfied | Very satisfied |
| Aulia | Satisfied | Satisfied |
| Taylor | Satisfied | Satisfied |
| Wharemahihimako | Very satisfied | Very satisfied |
Hi Anonymous
Try this:
Satisfication with Provider =
VAR _SVS =
CALCULATE (
COUNTROWS('Qualtrics Survey sample data'),
FILTER (
ALL ( 'Qualtrics Survey sample data' ),
'Qualtrics Survey sample data'[Satisfaction with provider] = "Satisfied"
|| 'Qualtrics Survey sample data'[Satisfaction with provider] = "Very satisfied"
)
)
VAR _AO =
CALCULATE (
COUNTROWS('Qualtrics Survey sample data'),
ALL ( 'Qualtrics Survey sample data' )
)
RETURN
_SVS/_AO
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
- Anonymous4 years agoNot applicable
This is awesome, it works as intended except for one small issue. The field can also be empty if the response wasnt filled for that field and as such it is counting the total rows (including blank rows)
- VahidDM4 years agoSuper User
Hi Anonymous
Try this:
Satisfication with Provider = VAR _SVS = CALCULATE ( CountA('Qualtrics Survey sample data'[Satisfaction with provider]), FILTER ( ALL ( 'Qualtrics Survey sample data' ), 'Qualtrics Survey sample data'[Satisfaction with provider] = "Satisfied" || 'Qualtrics Survey sample data'[Satisfaction with provider] = "Very satisfied" ) ) VAR _AO = CALCULATE ( CountA('Qualtrics Survey sample data'[Satisfaction with provider]), ALL ( 'Qualtrics Survey sample data' ) ) RETURN _SVS/_AOIf this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/