Forum Discussion

S_D's avatar
S_D
Frequent Visitor
8 years ago
Solved

Need help with using a weight variabele

Hello,

 

I have surveydata and wants to use a weight in my tables and visualisations.

 

For example, every man has a weight of 0,8 and every woman has a weight of 1,2 . So I want in my barchart not the unweighted 50%-50%, but the weighted 40%-60%.

 

Has anyone an idea how I can do this?

 

Thanks for thinking about it!

  • S_D's avatar
    S_D
    8 years ago

    I think I have found the solution: setting the weight variable as data values. 

3 Replies

  • v-huizhn-msft's avatar
    v-huizhn-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi S_D,

    Based on your description, it's hard to reproduce your scenario. Please share a sample table and list the expected result, so that we can post solution which is close to your requirements.

    Best Regards,

    Angelia

    • S_D's avatar
      S_D
      Frequent Visitor

      I think I have found the solution: setting the weight variable as data values. 

      • v-huizhn-msft's avatar
        v-huizhn-msft
        Icon for Microsoft Employee rankMicrosoft Employee

        Hi S_D,

        Congratulations, please mark your reply as answer, so more people will find the workaround easily.

        Best Regards,
        Angelia