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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Liam79
New Member

Expanding multiple lists (import from JSON file)

I need multiple lists to be extracted and displayed in a table.

 

In column A, I have a list of 136 items (rows).

In column B, I have a value that corresponds with column A, many of which are [Lists].

 

How can I expand all of these lists into the table?

Liam79_0-1674490717880.png

 

1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi , @Liam79 

According to your description, in the column , you have the text type and also have the [list] type.

Here are the steps you can refer to :
(1)This is my test data:

vyueyunzhmsft_0-1674713070655.png

(2)We can click " Insert Step After" to add some steps:

vyueyunzhmsft_2-1674713089008.png

(3)We can add three steps here :
= Table.SelectRows(Source, each [Column1] is list )

 

= Table.ExpandListColumn(FilterList, "Column1")

 

= Table.SelectRows(Source, each not([Column1] is list) ) & #"Expanded Column1"

 

(4)The result is as follows:

vyueyunzhmsft_3-1674713157041.png

 

 

 

 

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

1 REPLY 1
v-yueyunzh-msft
Community Support
Community Support

Hi , @Liam79 

According to your description, in the column , you have the text type and also have the [list] type.

Here are the steps you can refer to :
(1)This is my test data:

vyueyunzhmsft_0-1674713070655.png

(2)We can click " Insert Step After" to add some steps:

vyueyunzhmsft_2-1674713089008.png

(3)We can add three steps here :
= Table.SelectRows(Source, each [Column1] is list )

 

= Table.ExpandListColumn(FilterList, "Column1")

 

= Table.SelectRows(Source, each not([Column1] is list) ) & #"Expanded Column1"

 

(4)The result is as follows:

vyueyunzhmsft_3-1674713157041.png

 

 

 

 

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.