Forum Discussion
ecky12
7 years agoRegular Visitor
Looking up Score Values in another table
I have two tables. AllGrades and GradeMapping AllGrades has scores values of many users who took a survey. The one I care about is AllGrades.Score In the other table (GradeMapping) I have a l...
v-frfei-msft
Community Support
7 years agoHi ecky12,
I made one sample for your reference, if it doesn't meet your requirement, kindly share your sample data and excepted result to me.
1. Enter the sample data and create two measures as below.
Ave = AVERAGEX(ALL(Table1),Table1[Score])
Measure =
VAR LowScore =
CALCULATE (
MAX ( Table2[Score] ),
FILTER ( Table2, Table2[GradeMapping] = "LowScore" )
)
VAR HighScore =
CALCULATE (
MAX ( Table2[Score] ),
FILTER ( Table2, Table2[GradeMapping] = "HighScore" )
)
RETURN
IF (
[Ave] > HighScore,
"HighScore",
IF ( [Ave] > LowScore && [Ave] < HighScore, "LowScore", "N/A" )
)
For more details, please check the pbix as attached.
Regards,
Frank
v-frfei-msft
Community Support
7 years agoHi ecky12,
Does that make sense? If so, kindly mark my answer as a solution to close the case.
Regards,
Frank