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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AndrewJames
Employee
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

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.