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 September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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