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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Kenji
New Member

Transforming values from Records into columns and values (from Insightly API - Custom fields)

Hello all,

 

I've done a few days of research on how to do this, but I wasn't able to find a proper solution. Thanks everyone in advance!

 

For background information, I am connecting Power BI desktop to Insightly CRM API (retrieving a custom object) and the values for all the custom fields (CUSTOMFIELDS column of image 1.) come as Lists with Records inside. These records have three values each, one of which is supposed to be the column name, and the other the column value.

 

Image 1.

Kenji_0-1654057328381.png

Image 2.

Kenji_1-1654057447939.png

Image 3.

Kenji_3-1654057552489.png

 

What I want to do is to create one column for each Record (Image 2.) where the column name equals the FIELD_NAME and the value equals the FIELD_VALUE of image 3).

PS: There are about 90 Records (image 2.) so a way to do it all at once would be great.

 

Any support is super appreciated!

2 ACCEPTED SOLUTIONS
FarhanAhmed
Community Champion
Community Champion

When you are expanding the List from image 1, what results are you getting ?

Try to expand List from image 1 and then expand records that comes as a results from expanding list.

 

 

Work with a List, Record, or Table structured column (Power Query) (microsoft.com)







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




View solution in original post

Kenji
New Member

Thanks for the support! If it wasn't for your help, I wouldn't have been able to find the solution.

After expanding the List and the Records into the table, I used the 'Pivot Column' functionality to do what I wanted!

View solution in original post

4 REPLIES 4
tomlikesputers
New Member

I can't work this out either and that link hasn't shed light (or I'm missing something obvious. Are you able to share a bit more detail on the steps you took to get this working? I want to get multiple custom fields into a single row 😅

Kenji
New Member

Thanks for the support! If it wasn't for your help, I wouldn't have been able to find the solution.

After expanding the List and the Records into the table, I used the 'Pivot Column' functionality to do what I wanted!

FarhanAhmed
Community Champion
Community Champion

When you are expanding the List from image 1, what results are you getting ?

Try to expand List from image 1 and then expand records that comes as a results from expanding list.

 

 

Work with a List, Record, or Table structured column (Power Query) (microsoft.com)







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




When I do that, they both expand, but they end up duplicating the rows and their values (the part in blue of the image below is the same value and should be a single row).

 

Kenji_1-1654061332844.png

 

Is there a way to eliminate duplicates and merge the fields? Making the value of the column CUSTOMFIELDS.FIELD_NAME the column's name and the CUSTOMFIELD.FIELD_VALUE the value?

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors