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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
garyhalb
New Member

Getting a specific row value from a list

Hi,

 

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

 

screen.jpg

 

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.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

After expending the column, you can use Merge Queries feature to add the column into original table. See if it helps.

 

power-bi-desktop.png

 

 

 

 

You can refer to MS doc for the details.

https://docs.microsoft.com/en-us/power-bi/desktop-shape-and-combine-data

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

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

2018-03-21_15-08-58.png

 

 

 

Yes, that's what I thought I'd try and do, but then how do I get that value as a column in the original data?

 

 

Anonymous
Not applicable

After expending the column, you can use Merge Queries feature to add the column into original table. See if it helps.

 

power-bi-desktop.png

 

 

 

 

You can refer to MS doc for the details.

https://docs.microsoft.com/en-us/power-bi/desktop-shape-and-combine-data

Thanks Jessica. This worked. I had to expand the column, then filter to a specific item in the list and then merge. But this looks like it's working.

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.
1.JPG

Regards,
Lydia

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.