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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Auski
Advocate I
Advocate I

Lookup Max Value from related table

Hi again,

 

I have had so much success with solutions I thought I would try my luck again. As I am learning PBI, I am still working through even the basic of functions sometimes!

I want to create a new column 'in Results Table' that looks up 'questionid' in table named 'Evaluatons Forms' and return the highest value in the 'answervalue' column.

Essentially : 

Result = LOOKUPVALUE('Evaluation Forms'[answervalue],'Evaluation Forms'[questionid],'Results Table'[questionid])

but with MAX result


Example:

Eval.jpg


I am unable to share my Pbix, but happy to provide more details if required.
I'm almost 100% sure my request is more than on the basic side

 

Thanks!


Evaluations Forms Table

questionidanswervalue
00f14e48-1b44-4673-b076-d622f1ec58d90
00f14e48-1b44-4673-b076-d622f1ec58d92
00f14e48-1b44-4673-b076-d622f1ec58d91
1c62c71e-933e-4d6f-897d-c6a1edee307a0
1c62c71e-933e-4d6f-897d-c6a1edee307a1
1c62c71e-933e-4d6f-897d-c6a1edee307a2
5c9ece52-a2b8-4397-81f0-f710e6ef60f41
5c9ece52-a2b8-4397-81f0-f710e6ef60f42
5c9ece52-a2b8-4397-81f0-f710e6ef60f40
6ad65fbb-ba91-42dc-8ed3-3d45451f17121
6ad65fbb-ba91-42dc-8ed3-3d45451f17120
6ad65fbb-ba91-42dc-8ed3-3d45451f17122
a828ba94-006f-4ac2-9a8f-701fb607d8281
a828ba94-006f-4ac2-9a8f-701fb607d8282
a828ba94-006f-4ac2-9a8f-701fb607d8280
a8a8946c-3447-454e-99bf-4c1eb10b3a2e2
a8a8946c-3447-454e-99bf-4c1eb10b3a2e1
a8a8946c-3447-454e-99bf-4c1eb10b3a2e0
c7737470-6a3d-4c57-817c-324dcb22ffa40
c7737470-6a3d-4c57-817c-324dcb22ffa42
c7737470-6a3d-4c57-817c-324dcb22ffa41
ec040969-1625-4201-be8e-e0e2756d50d72
ec040969-1625-4201-be8e-e0e2756d50d71
ec040969-1625-4201-be8e-e0e2756d50d70

 

Results Table

questionidNew Column Result
6ad65fbb-ba91-42dc-8ed3-3d45451f17122
1c62c71e-933e-4d6f-897d-c6a1edee307a2
c7737470-6a3d-4c57-817c-324dcb22ffa42
ec040969-1625-4201-be8e-e0e2756d50d72
5c9ece52-a2b8-4397-81f0-f710e6ef60f42
a8a8946c-3447-454e-99bf-4c1eb10b3a2e2
00f14e48-1b44-4673-b076-d622f1ec58d92
a828ba94-006f-4ac2-9a8f-701fb607d8282
1 ACCEPTED SOLUTION

5 REPLIES 5
Auski
Advocate I
Advocate I

To be more clear... I have two tables

Table 1

Auski_0-1701138839464.png

 

Table 2

Auski_1-1701138885190.png



I would like the MAX value from 'Table 1'[answervalue] to be the returned value in 'Table 2'[Max answervalue].

 

Hope that makes sense,

Thanks for your time

Ahmedx
Super User
Super User

pls try

Screenshot_1.png

Hi Ahmed,

Thanks for your time with this. I have modified your pbix to better show what I am after...

 

I would like a new column in Table 2 to lookup max 'answervalue' in Table 1

Auski_1-1701137944873.png

 

*Seems I don't even know how to attach a pbix 😓

pls try

Screenshot_2.png

Fantastic, that did the trick. Thank you @Ahmedx 

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.

Top Solution Authors