Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I need a function to find the highest value in one column of a 3 column list. How do I do this?
let
Source = (#"My3ColList" as any) => let
LatestDate = List.Max([Source].[Period]), type date}})
in
Source
in Source
let
Source = (Table as table) => Table.Column(Table, "Period" as text) as list,
pSource = (list as any) => List.Max(list),
x = pSource(Actuals)
in
x
Solved! Go to Solution.
Hi @Netrelemo ,
Try the following function:
let
Source = (EnterTable as any, EnterColumn as any) => List.Max(Table.Column(EnterTable, EnterColumn as text))
in
Source
Then invoking function MaxValue:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjIwMtQFQiUdJUMDAyDpqBSrAxU2BQubgkSdEaJmUMVAwkkpNhYA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Period = _t, Value = _t, Column2 = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Period", type date}, {"Value", Int64.Type}, {"Column2", type text}}),
#"Max Value" = MaxValue(#"Changed Type","Period")
in
#"Max Value"
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Netrelemo ,
Try the following function:
let
Source = (EnterTable as any, EnterColumn as any) => List.Max(Table.Column(EnterTable, EnterColumn as text))
in
Source
Then invoking function MaxValue:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjIwMtQFQiUdJUMDAyDpqBSrAxU2BQubgkSdEaJmUMVAwkkpNhYA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Period = _t, Value = _t, Column2 = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Period", type date}, {"Value", Int64.Type}, {"Column2", type text}}),
#"Max Value" = MaxValue(#"Changed Type","Period")
in
#"Max Value"
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please provide sample data in usable format (not as a picture) and show the expected outcome.