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
mmossel
Employee
Employee

Analyze survey using relative proportions of gender

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.

 

mmossel_0-1611217640015.png

 

1 ACCEPTED 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

38.png
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.

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@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

38.png
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, thanks for your response. The measure as such?

Gender = DIVIDE(COUNT('Survey data'[What is your gender?], CALCULATE(COUNT('Survey data'[What is your gender?], ALL('Survey data')))))

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)

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.