cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ahmedadly2
Regular Visitor

Multi-line text to Table/Collection

Hello All,

 

I am building a PowerApp that can convert from Multi-line text to a Table/Collection as follow

Street;HouseNumber;City,
BilkStr;99;Frankfort,
KarlStr;80;Köln,
...;.....;......

I wanted to convert it to a DataTable like this

StreetHouseNumberCity
BilkStr99Frankfort
KarlStr80Köln
............


How this could be achieved using ForAll, split .. etc ?

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User II
Super User II

@ahmedadly2 

The Split() function would be used on each record to create the columns.  See https://www.youtube.com/watch?v=sj-UDq8Iuow to see how to create the collection from the columns. 

View solution in original post

2 REPLIES 2
Drrickryp
Super User II
Super User II

@ahmedadly2 

The Split() function would be used on each record to create the columns.  See https://www.youtube.com/watch?v=sj-UDq8Iuow to see how to create the collection from the columns. 

View solution in original post

v-bofeng-msft
Community Support
Community Support

Hi @ahmedadly2 :

Sorry,I just noticed that @Drrickryp  has already replied to you, I suggest you consider his suggestion first. You could consider this plan as an alternative reference:

Although the use of split should be able to achieve your needs, but the formula will be more complicated. I suggest you try to use flow:.I've made a test for your reference:

1\Create a flow:

vbofengmsft_0-1626310053797.png

2\Add the flow into powerapps

vbofengmsft_1-1626310782583.png

3\Add a button and set it's OnSelect property to:

 

 

ClearCollect(TheTable,'PowerAppV2->ParseCSV'.Run("Street;HouseNumber;City,
BilkStr;99;Frankfort,
KarlStr;80;Köln,"))

 

 

The Result:

vbofengmsft_2-1626310929067.png

Best Regards,

Bof

 

 

 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,809)