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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Bit2021
Frequent Visitor

Extract list value and calculate value of a list

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.

 

Bit2021_0-1636837644780.png

 

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?

 

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Bit2021 

 

Download example PBIX file

 

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

listmax.png

 

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"

 

 

listfx.png

 

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

2 REPLIES 2
HotChilli
Super User
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

PhilipTreacy
Super User
Super User

Hi @Bit2021 

 

Download example PBIX file

 

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

listmax.png

 

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"

 

 

listfx.png

 

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors