Forum Discussion
Get Max Value from another column in a different table (Query Editor, M Code)
Is it possible to get the max value from another column in a different table in query editor?
Anonymous
Try
List.Max(AnotherTableName[ColumnName])
4 Replies
- Greg_DecklerCommunity Champion
Hmm, for Power Query, I'll refer you to ImkeF
- Zubair_MuhammadCommunity Champion
Anonymous
Try
List.Max(AnotherTableName[ColumnName])
- arpostPost Prodigy
Greetings, Zubair_Muhammad! Wanted to extend this post a bit and ask if you know how to use the List.Max to find the value that is <= to the current record's value?
For example, if I have a table like this called Data:Date Value 10/1/21 100 11/1/21 200 1/1/22 100 And a table like this called Commissions:
Change Date Change % 9/1/21 10% 12/1/21 15% I want my M Query to return this in the Data table:
Date Value Change % 10/1/21 100 10% 11/1/21 200 10% 1/1/22 100 15% I'm assuming I need to use the List.Max in some sort of "for each" loop.
- v-piga-msftResident Rockstar
Hi Anonymous ,
The reply of Zubair_Muhammad should be helpful.
Have you solved your problem?
If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please share some data sample and your desired output so that we can help further on it.
Best Regards,
Cherry