Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Breaking down the normal distribution by attributes

Hey,   We have just conducted a survey and I'm looking to understand if the respondents who answered the survey are representitive of our population as a whole. Mainly, are we getting the same prop...
  • v-lionel-msft's avatar
    v-lionel-msft
    6 years ago

    Hi Anonymous ,

     

    First of all, your model relationship may be a bit problematic, it should be like this:

    Secondly, the results returned by your two percentage measures may have problems, please refer to the following formula:

    Percent of respondents = 
    VAR x = 
    CALCULATE(
        DISTINCTCOUNT('Sample'[External Data Reference]),
        ALLEXCEPT(
            'Sample',
            'Sample'[Sector]
        )
    )
    VAR y = 
    CALCULATE(
        DISTINCTCOUNT('Sample'[External Data Reference]),
        ALL('Sample')
    )
    RETURN
    DIVIDE(
        x,
        y,
        BLANK()
    )
    
    Percent of total Population = 
    VAR x = 
    CALCULATE(
        DISTINCTCOUNT(Population[ID]),
        ALLEXCEPT(
            'Population',
            'Population'[Sector]
        )
    )
    VAR y = 
    CALCULATE(
        DISTINCTCOUNT(Population[ID]),
        ALLSELECTED('Sample'[Sector])
    )
    RETURN
     DIVIDE(
        x,
        y,
        BLANK()
    ) 
    Left_Tailed_Hypothesis = 
    NORM.DIST(
        [Percent of respondents], 
        [Percent of total Population],
        1,
        TRUE()
    )

    The value of COUNTROWS(ALLSELECTED('Sample')) is too big, which is not suitable for Standard_dev parameters.
    And its value is equal to a fixed value 899.
     
    You can refer to https://docs.microsoft.com/en-us/dax/norm-dist-dax to learn NORM.DIST() function.
     

    Best regards,
    Lionel Chen

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.