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
Hamilton
New Member

How to weight survey data

Hi all.

 

I am relatively new to using power BI, and am trying to apply weights to survey data.

 

The way the data is structured I have weights aligned with the corresponding userID's (my key)

What is the best way to apply this weight for each and every question I am visualising, and how is it done?

I have found the following resource for Tableau which looks like what I want: http://www.datarevelations.com/working-with-weighted-survey-data.html 

 

How would I go about applying that in Power BI? I assume its converting this statement: 

 SUM([Weight]) / TOTAL(SUM([Weight]))

to PowerBi equivalent and adding it as a measure / in every visualisation?



Thanks

1 REPLY 1
v-juanli-msft
Community Support
Community Support

To describe this statement “ SUM([Weight]) / TOTAL(SUM([Weight]))” in Power BI
Using the measure below instead:
MEASURE1 =
DIVIDE (

    SUM ( Table1[Weight] ),

    CALCULATE ( SUM ( Table1[Weight] ), ALL ( Table1 ) )

)
As you said,“What is the best way to apply this weight for each and every question I am visualising, and how is it done?”
Please show some example data with us and ask specific questions so that we are able to figure out each solution to each question.
 
Best Regards
Maggie

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.