Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have some columns that the value is a list. I can extract values and separate them with a comma, like the below screenshot:
In each list, there are 10 values in this sample all of them are 0.
Now, I want to know is there any way to calculate the value of the list like find MAX or MIN? Without extract or extract?
Solved! Go to Solution.
Hi @Bit2021
Yes, add a Custom Column and use the List.Max, List.Min etc functions : List functions - PowerQuery M | Microsoft Docs
Here's a new column calculating the Max of the lists in the Value column
Here's a whole query for Max, Min and Sum
let
Source = Record.FromList( {{0,1,2,3,4,5,6,7,8,9}} , {"Latitude"} ),
#"Converted to Table" = Record.ToTable(Source),
#"Removed Columns" = Table.RemoveColumns(#"Converted to Table",{"Name"}),
#"Added Custom" = Table.AddColumn(#"Removed Columns", "Max", each List.Max([Value])),
#"Added Custom1" = Table.AddColumn(#"Added Custom", "Min", each List.Min([Value])),
#"Added Custom2" = Table.AddColumn(#"Added Custom1", "Sum", each List.Sum([Value]))
in
#"Added Custom2"
Regards
Phil
Proud to be a Super User!
List.Max and pass the list as a parameter e.g. Add a custom column , put List.Max and the column in brackets
Hi @Bit2021
Yes, add a Custom Column and use the List.Max, List.Min etc functions : List functions - PowerQuery M | Microsoft Docs
Here's a new column calculating the Max of the lists in the Value column
Here's a whole query for Max, Min and Sum
let
Source = Record.FromList( {{0,1,2,3,4,5,6,7,8,9}} , {"Latitude"} ),
#"Converted to Table" = Record.ToTable(Source),
#"Removed Columns" = Table.RemoveColumns(#"Converted to Table",{"Name"}),
#"Added Custom" = Table.AddColumn(#"Removed Columns", "Max", each List.Max([Value])),
#"Added Custom1" = Table.AddColumn(#"Added Custom", "Min", each List.Min([Value])),
#"Added Custom2" = Table.AddColumn(#"Added Custom1", "Sum", each List.Sum([Value]))
in
#"Added Custom2"
Regards
Phil
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 50 | |
| 43 |