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
619SK
Helper I
Helper I

Expand Multiple Values in list as One Row

I am sourcing data from Sharepoint list where  column as below. In power query where i expand data it trnasform into two rows with Owner as A & another row with Owner as B.

I want to expand list where owner show as A,B.

CompanyIdLocationOwner
XYZ12IndiaA,B
5 REPLIES 5
v-jtian-msft
Community Support
Community Support

Hi,@619SK. Hello,@danextian ,thanks for your concern about this issue.
I would like to share some additional solutions below.

I am glad to help you.

According to your description, your original data looks like this.

vjtianmsft_0-1715764145151.png

Do you want to display the data separately based on the values in the Owner column, like this?

vjtianmsft_1-1715764165113.png

If my understanding is correct, then you can refer to my test below. (Using "Unpivot Columns")
1. Select the "Owner" column, in the Transform window > Split Column > By Delimiter
Split Owner into two columns by comma.

vjtianmsft_2-1715764197482.png

like this:

vjtianmsft_3-1715764241476.png

2. Select both A and B two owner columns, select "Unpivot Column"

vjtianmsft_4-1715764263207.png

like this

vjtianmsft_5-1715764291502.png

Finally, delete the Attribute column.

The final result:

vjtianmsft_6-1715764321003.png

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

No Its other way,

 

End result should contain A,B in single row only.
But when i expand it create two rows with A & B

Hi,

In The Query Editor, you will have to use the Text.Combine function within the Table.Group function.  To receive further help, share some data to work with and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
619SK
Helper I
Helper I

Not having extract  option, getting option as Expand & Aggregate.

danextian
Super User
Super User

Hi @619SK ,

 

Apply "Extract values from list" to the column.

danextian_0-1715057195581.png

 

 










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


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

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.