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
jpt1228
Responsive Resident
Responsive Resident

Expanding JSON column results in adding rows

Hello, I have a JSON file from an API endpoint which has many nested columns. When I click hiring.team expand I get 3 columns which are hiring_managers, recruiters, coordinators. If I want to get the hiring managers name I click expand on the hiring manager column bit then get 3 records which then I can expand into names. I would like only 1 ID with the 3 hiring managers in a column with a delimiter so I can expand them to additional columns but retail only 1 id row.

 

I have tried to create severl reference queries to expand these and then merge them back on the id column but have not been successful.

 

jpt1228_0-1616885695684.png

jpt1228_1-1616885743105.png

jpt1228_2-1616885777948.png

jpt1228_3-1616885832705.png

Thanks

 

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

You can add a custom column with this formula to concatenate the recruiters.  

= Text.Combine(List.Transform([hiring_managers], each Record.Field(_, "name")), ", ")

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
mahoneypat
Microsoft Employee
Microsoft Employee

You can adapt it like this to do that.

 

= Text.Combine(List.Transform([hiring_managers], each Record.Field(_, "name") & ", " & Record.Field(_, "primary")), "; ")

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


mahoneypat
Microsoft Employee
Microsoft Employee

You can add a custom column with this formula to concatenate the recruiters.  

= Text.Combine(List.Transform([hiring_managers], each Record.Field(_, "name")), ", ")

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Thanks @mahoneypat What if in addition I wanted to extract "name" and "primary". Primary is another value in the nested column available if I expand "name" Ideally the customer column would be:

 

name1, primary1, name2, primary 2

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.