Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Help with Matrix table, max and min visuals with filters

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.

Kailef_0-1717298561910.png

This below is my current matrix table. It is giving the overall average 2 decimal points of only "Manual" type evals.

Kailef_1-1717298612137.png

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.

Kailef_2-1717298687486.png

 

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.

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

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.

 

Jihwan_Kim_1-1717332840256.png

 

Jihwan_Kim_2-1717332855885.png

 

 

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:]

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

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.

 

Jihwan_Kim_1-1717332840256.png

 

Jihwan_Kim_2-1717332855885.png

 

 

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:]

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Just to give you an idea without exploiting employee names, I managed to get mostly what i need.

 

Kailef_0-1717367802242.png

 

In the Matrix table, it's the total that shows up as 0.00% for the Variance column.

Kailef_1-1717367905260.png

 

I was thinking the total would have shown the overall average variance of the entire team.

Anonymous
Not applicable

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.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.