web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create table from csv ...
Power Apps
Answered

Create table from csv string

(0) ShareShare
ReportReport
Posted on by 5

Hi!

I hope someone can help me with this:

I am importing data from an Azure runbook into PowerApps by using Power Automate. The output i get looks like this:

Header1,Header2,Header3,Header4

Value1,Value2,Value3,Value4 ...and so on

Now I need it to be formatted as a table to be able to present it in a nice way.

I've been trying to use the Split function but I wont get it in the way I want.

Any Ideas?

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @Jeff_Dalton 

    Suppose you have a CSV string like this:

    Set(myCSV,
     "Header1, Header2, Header3, Header4
     Value1, Value2, Value3, Value4
     Value5, Value6, Value7, Value8
     Value9, Value10, Value11, Value12"
    );

     

    Use this code:

    ClearCollect(myTable,
     Split(myCSV, Char(10))
    );
    Clear(myTable2);
    ForAll(
     myTable,
     Collect(myTable2, 
     {
     Heading1: First(Split(Result,",")).Result,
     Heading2: Last(FirstN(Split(Result,","),2)).Result,
     Heading3: Last(FirstN(Split(Result,","),3)).Result,
     Heading4: Last(Split(Result,",")).Result}
     )
    );

     

    To get this result:

    pic3.png

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Jeff_Dalton Profile Picture
    5 on at

    Thanks a lot! This was exactly what i wanted.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard