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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
gill_thornton
Helper I
Helper I

Lookup with Measure

Hi

I work in a school and am creating some headline measures for my post-16 cohort.  All grades have point values attached to them, e.g; A* = 60; A = 50 etc.  I have a calculated overall measure for average point score.  I now need to show this as a grade based of DfE technical guidelines sample below:

 

APS Band MinAPS Band MaxGrade
58.3460A*
5558.33A*-
51.6754.99A+
48.3451.66A
4548.33A-
41.6744.99B+
38.3441.66B
3538.33B-
31.6734.99C+
28.3431.66C
2528.33C-
21.6724.99D+
18.3421.66D
1518.33D-
11.6714.99E+
8.3411.66E
58.33E-
04.99U

 For example I have an A level APS as a measure of 30.33 - I need to create a measure to show the equivalent grade.  How can I do this?

1 ACCEPTED SOLUTION

Hi @gill_thornton,

 

I have made a simple model with only the grades table and a metric with a value input, no other tables or relationships.

 

How are you calculating the metric? is there any relationship between the grades and the table from where you are calculating the metric?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

5 REPLIES 5
MFelix
Super User
Super User

Hi @gill_thornton,

 

Taking into account that you have the table above for your grade you need to do something similar to this:

Grade Value =
MINX (
    FILTER (
        'Grade Table',
        'Grade Table'[APS Band Min] <= [A level APS]
            && 'Grade Table'[APS Band Max] >= [A level APS]
    ),
    'Grade Table'[Grade]
)

 

MFelix_0-1692018223818.png

 

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Thank you for this solution.  It looks as though it should work perfectly, but when I apply, it is returning a grade A, which is incorrect.  I'm not quite sure where I'm going wrong.

Hi @gill_thornton,

 

I have made a simple model with only the grades table and a metric with a value input, no other tables or relationships.

 

How are you calculating the metric? is there any relationship between the grades and the table from where you are calculating the metric?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Thank you - it is always relationships!!  I should learn to check and delete any auto-detected on a new table.  Appreciate your help.

Greg_Deckler
Community Champion
Community Champion

@gill_thornton Not sure if I understand completely but maybe something like a SWITCH(TRUE(), ...) statement like:

Measure =
  SWITCH(TRUE(),
    [Current Measure] > 45, "A",
    [Current Measure] > 35, "B",
    [Current Measure] > 25, "C",
    [Current Measure] > 15, "D",
    "F"
  )


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors