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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Bokbob
Helper I
Helper I

Splitting the column values with comma and storing them as rows

Hi, I have some data where it comes up as below. I need to split them by comma and transpose them to row data with Client ID column getting duplicated for those multiple hardship values we have.

 

EX: i need it like Client ID     Hardship

                             5               Struggling with financial...

                             5               unsuitable for public....

                             5               limited family supp....

 

my values are dynamic and i can just do it once off. Please help.

 

 

hardship.PNG

2 ACCEPTED SOLUTIONS
Phil_Seamark
Employee
Employee

 Hi @Bokbob

 

In the Query Editor, highlight your column and then select "Split Column".  This will bring up a dialog box where you can specify that you'd like to split to rows.

 

 

split to rows2.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

Bokbob
Helper I
Helper I

Hi All,, sorry i got the answer..

 

i had to do 

 

split column values with comma values

and then unpivoted other columns

and it worked 🙂

 

View solution in original post

3 REPLIES 3
Bokbob
Helper I
Helper I

Hi All,, sorry i got the answer..

 

i had to do 

 

split column values with comma values

and then unpivoted other columns

and it worked 🙂

 

Phil_Seamark
Employee
Employee

 Hi @Bokbob

 

In the Query Editor, highlight your column and then select "Split Column".  This will bring up a dialog box where you can specify that you'd like to split to rows.

 

 

split to rows2.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Hi Phil, Thanks so much for you help 🙂

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.