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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Splitting Columns into Individual rows and mapping with corresponsing values in the table

Hi Team,

 

I have a table with countries & savings forecast. I need to split it into individual rows and map the values int eh forecast & actuals table withteh corresponding country names. Can you please help me out with this?

 

What my actual data looks like

manny_mahendran_0-1670814839842.png

 

How my final result should look like.

 

manny_mahendran_1-1670814869509.png

 

Thanks,

Manny

3 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , refer this blog for the solution

https://prathy.com/2018/02/split-multiple-columns-rows-powerquery/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Mahesh0016
Super User
Super User

Hello @Anonymous 

Add As custom column 
1> Text.Split([Country] , ",")
2> Text.Split([Cost Savings Forecast] , ",")

3> Text.Split([Cost Savings Actual] , ",")

 

after delete original column then ADD Custom Column 
Table.FromColumns({[Country.1],[Cost Savings Forecast.1],[Cost Savings Actual.1]})

before Expanded Table Delete Created Custome Column And then Expand Table column end you get your result .

Thank you ,

Mahesh patel

View solution in original post

Mahesh0016
Super User
Super User

5 REPLIES 5
Mahesh0016
Super User
Super User

Mahesh0016_0-1670820806700.png

@Anonymous 

Mahesh0016
Super User
Super User

Hello @Anonymous 

Add As custom column 
1> Text.Split([Country] , ",")
2> Text.Split([Cost Savings Forecast] , ",")

3> Text.Split([Cost Savings Actual] , ",")

 

after delete original column then ADD Custom Column 
Table.FromColumns({[Country.1],[Cost Savings Forecast.1],[Cost Savings Actual.1]})

before Expanded Table Delete Created Custome Column And then Expand Table column end you get your result .

Thank you ,

Mahesh patel

Anonymous
Not applicable

Thanks Mahesh. The solution worked. 

 

This is what I was looking for earlier. I have been trying different queries, but eventually none of them worked

amitchandak
Super User
Super User

@Anonymous , refer this blog for the solution

https://prathy.com/2018/02/split-multiple-columns-rows-powerquery/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks @amitchandak . I triedusing the same concept and it worked

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors