Forum Discussion

paulotv's avatar
paulotv
Frequent Visitor
8 years ago
Solved

Calculating the Difference between two averages

Hi there, I am relatively new to Power BI ( I am using Version: 2.57.5068.721 64-bit (April 2018).   I want to show the variance between two averages for gender by year and group - my data table is...
  • Anonymous's avatar
    Anonymous
    8 years ago

    Step 1:  Create a Measure that simply creates an average, ignoring Gender and Timeframes.  This could look something like:

     

    Average Measure = AVERAGE('YourTable'[Score])


    Step 2: Create a measure that cares about Gender:

    Male Average = CALCULATE(
    	[Average Measure],
    	'YourTable'[Gender] = "Male"
    )

    The female version should be easy to work out.

     

    Now you can place these gender meeasures on a visual that has the Year & group as the context.