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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
deepta
Frequent Visitor

Multiple response survey question: How to calculate total number/ % of respondents who selected all?

Hello lovely people, 

A quick doubt to which I am sure there is an easy solution somewhere. 

So, I have a knowledge measurement question and 7 checkbox options to choose. We cannot include the 'I know all' choice as the respondents are/could be young people and there is a possibility that they will tick it without understanding the meaning/because it confuses them. Either way, it is ridden on assumptions and solid experience from previous surveys. 

Now, I am able to see the aggregate numbers in my analysis. Such as, How many selected one option? Overall, which option is the most selected etc? But what I am also keen on knowing is the # or % of respondents who selected all/some of the options. 

To give more context, 

there is a question on good and bad behaviours, and I want to be able to see how many selected all good behaviours, all bad behaviours, (or variations of these conditions). 

What is the best way to figure this out on PBI? The PBI is automated to an MS form survey, so I am ideally looking for ways for which this can be automated as new responses keep coming. 

Sorry for all the waffling. Give me a shout if I can give more context/info on this challenge. Thanks! 

1 ACCEPTED SOLUTION

Hi @deepta ,

I have created a simple sample, please refer to my pbix file.

Create a new table and put the option field into the slicer.

Then create 2 measures.

Measure = VAR _1=SELECTEDVALUE('Table (2)'[healthy behaviors])

VAR _CONNRCT=CONCATENATEX(VALUES('Table (2)'[healthy behaviors]),'Table (2)'[healthy behaviors], ";")

var _not=CONTAINSSTRING(MAX('Table'[Choose healthy and unhealthy behaviours from the list ]),_CONNRCT)


RETURN _not
Measure 2 = VAR _ZI=CALCULATE(COUNT('Table'[ID]),FILTER(ALL('Table'),[Measure]=TRUE()))
VAR _COUNT=CALCULATE(COUNTROWS('Table'),ALL('Table'))
RETURN
_ZI/_COUNT

So is the unhealthy behaviours .

vrongtiepmsft_0-1691547400094.png

 

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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
deepta
Frequent Visitor

Hello @Greg_Deckler , 

Thank You for your response! Apologies for the lack of clarity.  

 

1. Sample data as text, use the table tool in the editing bar

IDChoose healthy and unhealthy behaviours from the list 
1A;B;E;
2A;C;E;
3B;D;
4A;C;E;
5A;E;


2. Expected output from sample data

Healthy behaviours are A, C, E and unhealthy are B, D 

How can I analyse and present this on PBI dashboard:

The number of students who selected all healthy (to which, answer is 2/5) and all unhealthy behaviours (1/5)? 


Please lmk if I should provide more info. 

If this is not the right group to discuss this issue, could you guide me to the appropriate group? 

Hi @deepta ,

I have created a simple sample, please refer to my pbix file.

Create a new table and put the option field into the slicer.

Then create 2 measures.

Measure = VAR _1=SELECTEDVALUE('Table (2)'[healthy behaviors])

VAR _CONNRCT=CONCATENATEX(VALUES('Table (2)'[healthy behaviors]),'Table (2)'[healthy behaviors], ";")

var _not=CONTAINSSTRING(MAX('Table'[Choose healthy and unhealthy behaviours from the list ]),_CONNRCT)


RETURN _not
Measure 2 = VAR _ZI=CALCULATE(COUNT('Table'[ID]),FILTER(ALL('Table'),[Measure]=TRUE()))
VAR _COUNT=CALCULATE(COUNTROWS('Table'),ALL('Table'))
RETURN
_ZI/_COUNT

So is the unhealthy behaviours .

vrongtiepmsft_0-1691547400094.png

 

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

Greg_Deckler
Super User
Super User

@deepta Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors
Top Kudoed Authors