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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
ecky12
Regular 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 list of Grades associated with a range of scores (GradeMapping.LowScore,GradeMapping.HighScore,GradeMapping.LetterGrade)

 

I want to calculate the average value of the scores in AllGrades.score (which I am already displaying in my report) and lookup that value in GradeMapping so I can display the associated letter grade on my report.

 

Can someone help me with that? I am having all sorts of problems...and I pretty sure this should be simple.

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @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" )
    )

Capture.PNG

 

For more details, please check the pbix as attached.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @ecky12,

 

Does that make sense? If so, kindly mark my answer as a solution to close the case.

 

Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Can you please post some sample data with expected result set? That will be easiier to understand.

 

Thanks
Raj

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors