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.
Hi,
I am analyzing a survey to which was responded by more men than women. How can I make sure to account for this difference by analyzing the percentage of men vs percentage of women their answers to certain questions instead of the absolute number.
Solved! Go to Solution.
Hi, @mmossel
Create a mease as below to replace your original field.
%Do you see yourself being represented at all different management layers? =
VAR count_gender =
CALCULATE (
COUNT ( Sheet1[What is your gender?] ),
ALLEXCEPT ( Sheet1, Sheet1[What is your gender?] )
)
RETURN
COUNT ( Sheet1[Do you see yourself being represented at all different management layers?] ) / count_gender
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@mmossel , Assume you have [count of answer]
the your % measure can be
Divide([count of answer] , calculate([count of answer] , allexcept(Table, Table[Question])))
or
Divide([count of answer] , calculate([count of answer] , all(Table)))
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Hi @amitchandak , link to a sample dashboard is here: https://blobstorage123123.blob.core.windows.net/random/Samplereport.pbix
Thank you
Hi, @mmossel
Create a mease as below to replace your original field.
%Do you see yourself being represented at all different management layers? =
VAR count_gender =
CALCULATE (
COUNT ( Sheet1[What is your gender?] ),
ALLEXCEPT ( Sheet1, Sheet1[What is your gender?] )
)
RETURN
COUNT ( Sheet1[Do you see yourself being represented at all different management layers?] ) / count_gender
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @amitchandak , I haven't been able to solve it yet. Would be absolutely fantastic if you could have a look (without me sharing the .pbix file, preferably)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |