Forum Discussion
Altonga
3 years agoFrequent Visitor
Max Function Aggregate
Hello all, I'm having some issues with a training tracker that I am building, I want to track progress of students from 'tests' that they carry out. Test1 = 10% Test2 = 20% Test3 = 30% Te...
Altonga
3 years agoFrequent Visitor
Hi,
As you can see below for the first student 120% is correct for how much they have scored over all of the subcategories but I am after an aggregation of this so in theory Student one would be displaying 10%. Apologies as my knowledge isn't very extensive but hoping it would be an easy fix!
tamerj1
3 years agoCommunity Champion
Please try
%Trained =
AVERAGEX (
VALUES ( 'Results'[Chapter] ),
CALCULATE (
AVERAGEX (
VALUES ( 'Results'[Subchapter] ),
CALCULATE (
MAX ( 'Results'[Test1%] ) + MAX ( 'Results'[Test2%] )
+ MAX ( 'Results'[Test3%] )
+ MAX ( 'Results'[Test4%] )
+ MAX ( 'Results'[Test5%] )
)
)
)
)