Forum Discussion

garyhalb's avatar
garyhalb
New Member
8 years ago
Solved

Getting a specific row value from a list

Hi,

 

I've managed to get my data into the following table format:

 

 

I'm trying to add two new columns to this dataset based on row values that come from the highlighted column above. You'll notice it's a list of name value pairs per row. How do I go about extracting a specific value from the list for each row, and make this a new column in the main dataset?

 

Thanks.

5 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    garyhalb,

    Which sample data do you store in the lists and which values would like to show in new column? If you want to create new column on the basis that check if a value is contained in the list, you can use List.Contains() function.

    However, if you want to extract specific value from the list, you can firstly expand all values from the list to new rows, create a new column using Text.Contains() function to check if specific value exists in each row, then filter all the required rows.


    Regards,
    Lydia

  • Anonymous's avatar
    Anonymous
    Not applicable

    Maybe you can try to extend list to rows first and then extract a specific value from it?