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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
AndrewJames
Microsoft Employee
Microsoft Employee

Extract the highest value from a cell in a column

Hi Team, 

I have a column with multiple values seperated by commas. I would like to create a new column that has the highest value. Any help? Below is the sample image. 

 

Annotation.png

 

 

 

 

 

 

Thanks in advance.

Regards,

Andy.

 

 

1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

Hi! 

Use replace value to remove the spaces between the numbers and then add this custom column:

List.Max(List.Transform(Text.Split([Column1],","), each Number.FromText(_)))


Br,
J


Connect on LinkedIn

View solution in original post

5 REPLIES 5
tex628
Community Champion
Community Champion

Hi! 

Use replace value to remove the spaces between the numbers and then add this custom column:

List.Max(List.Transform(Text.Split([Column1],","), each Number.FromText(_)))


Br,
J


Connect on LinkedIn

Thanks J. It worked. 

amitchandak
Super User
Super User

Add an index column, Unpivot, Take max based on index

 

https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi

https://community.powerbi.com/t5/Desktop/Add-calculated-index-column-by-DAX/td-p/72448

 

https://radacad.com/pivot-and-unpivot-with-power-bi

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hey @amitchandak , Thanks for the reply. But I am not sure how creating an index column would solve this issue. Creating a index column would help me sort the exsiting values. But, I was expecting an answer with extraction of numbers using a delimiter (,) and some sort of condition to return the highest value. 

If I am missing something in your explanation, could you elaborate it a bit?

 

Thanks. 

 

Regards,

Andy. 

yes split by delimiter will help, Now you can create new columns or rows. In case you want to prefer new rows. You needed to have an id  for the row to trace back. that where I wanted an index column.

For split by delimiter 

The option is under data transform.

Also you can try like

https://community.powerbi.com/t5/Desktop/Splitting-multiple-columns-using-delimiter/td-p/438358

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.