The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I am newbie to Power BI and I have the results of a survey as follow:
ID | Q1 | Q2 | Q3 |
a | yes | yes | sometimes |
b | no | yes | yes |
c | yes | sometimes | |
d | yes | sometimes | yes |
e | sometimes | no | sometimes |
f | no | sometimes | |
g | no | yes | |
h | yes | sometimes | |
i | yes | yes | no |
j | yes | sometimes |
I need to calculate the proportion of the most favourable answer for each question:
column = # of yes / # total number of answers
column = 5 / 9
So far I manage to use COUNT() and FILTER() separately to group and count the variable together, but I can not figure out the syntax to do it in a single measure.
I would appreciate any help
Solved! Go to Solution.
Hi @WolfP
Please refer to attached sample file with the proposed solution. Perhaps you want to see the numbers as well but not sure what exactly is the results that you're looking for.
Hi @WolfP
Please refer to attached sample file with the proposed solution. Perhaps you want to see the numbers as well but not sure what exactly is the results that you're looking for.
User | Count |
---|---|
16 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
23 | |
13 | |
13 | |
8 | |
8 |