Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have all this data and I've managed to create a matrix table showing the average scores of each individual, but I need to create a separate matrix table that can show the variance of each individual. I also need a few other visuals that show the high variance, lowest variance, and the difference between the highest and lowest variance.
So variance is calculated based on the total the individual average score minus the total overall average variance of the entire team.
Then the total variance, is the difference between the highest and lowest variance.
With the matrix table, I added a column showing their individual average scores and I also filtered it by manual evaluations only. So I didn't count the auto evals to calculate their average.
The average measure is this: CALCULATE(AVERAGE(Table[Score],FILTER(ALL(Table),Table[Type]="Manual"))/100
Now I need help figuring out how to calculate their variance. So if you look at the information below, you'll see what I'm working with.
This is an example of my data table.
This below is my current matrix table. It is giving the overall average 2 decimal points of only "Manual" type evals.
What I need help with is figuring out the measures to these other visuals highlighted in yellow.
Variance Different = the highest variance - lowest variance
Again, Variance is calculated by Individual Average Score - Total Overall Average Score.
NOTE: If the Variance of that individual is a negative number, we get the ABS number of it to make it a positive number, which explains why Mike and Ashley have a positive variance because we got the ABS value of everyone's.
Any help is appreciated. If you can help me create these measures so that I can create the visuals for them, it would be greatly appreciated.
Solved! Go to Solution.
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
average expected result: =
CALCULATE( AVERAGE(data[score]), data[type] = "Manual" )
Variance: =
VAR _avgall =
CALCULATE ( [average expected result:], ALL ( 'name'[name] ) )
VAR _avg = [average expected result:]
RETURN
ABS ( _avgall - _avg )
Highest variance: =
VAR _t =
ADDCOLUMNS ( VALUES ( 'name'[name] ), "@variance", [Variance:] )
VAR _max =
MAXX ( _t, [@variance] )
RETURN
_max
Lowest variance: =
VAR _t =
ADDCOLUMNS ( VALUES ( 'name'[name] ), "@variance", [Variance:] )
VAR _min =
MINX ( _t, [@variance] )
RETURN
_min
Variance difference: =
[Highest variance:] - [Lowest variance:]
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
average expected result: =
CALCULATE( AVERAGE(data[score]), data[type] = "Manual" )
Variance: =
VAR _avgall =
CALCULATE ( [average expected result:], ALL ( 'name'[name] ) )
VAR _avg = [average expected result:]
RETURN
ABS ( _avgall - _avg )
Highest variance: =
VAR _t =
ADDCOLUMNS ( VALUES ( 'name'[name] ), "@variance", [Variance:] )
VAR _max =
MAXX ( _t, [@variance] )
RETURN
_max
Lowest variance: =
VAR _t =
ADDCOLUMNS ( VALUES ( 'name'[name] ), "@variance", [Variance:] )
VAR _min =
MINX ( _t, [@variance] )
RETURN
_min
Variance difference: =
[Highest variance:] - [Lowest variance:]
Just to give you an idea without exploiting employee names, I managed to get mostly what i need.
In the Matrix table, it's the total that shows up as 0.00% for the Variance column.
I was thinking the total would have shown the overall average variance of the entire team.
This was a HUGE help. Thank you!
Just one quick question before I accept this as a solution because it does solve 99% of it.
The issue is, I have data going back to 2022. When I show data based on quarter and/or monthly, it's showing 0.00% for the Total.
So like I am getting the individual variance for each employee, but the total shows at 0.00%.
I was able to get the high variance, the low variance, the variance(high - low), but in the matrix table when I'm doing totals, it shows as 0.00% under the variance column that shows individual variance per employee. Is there a fix to that for the total? If not, it's no big deal.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |