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

Community site session details

Session Id : ig6G2En+XUcqAqUiSty6Wf
Power Automate - General Discussion
Answered

How to split a table in multiple tables based on a SP column

Like (0) ShareShare
ReportReport
Posted on 11 Dec 2023 04:21:03 by 136

Hello,

 

I need to split a table based on a sp column called term. 

current flow has 

 

nattt7_0-1702268282041.png

nattt7_1-1702268320351.png

 

I would like to add a space and headings again where the yellow line is 

nattt7_2-1702268429489.png

ideas?

Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    on 11 Dec 2023 at 06:00:48
    Re: How to split a table in multiple tables based on a SP column

    Hi , @nattt7 

    According to your description, you want to add the Link break in your Html Table based on your Term column.

    This is my test json and i put it in the Compose action to test:

    [
     {
     "Term": "Summer2024",
     "Week": "Week1",
     "Start Date": "2023-01-01",
     "End Date": "2023-01-02",
     "Tasks": "task1"
     },
     {
     "Term": "Summer2024",
     "Week": "Week2",
     "Start Date": "2023-02-01",
     "End Date": "2023-02-02",
     "Tasks": "task2"
     },
     {
     "Term": "Summer2024",
     "Week": "Week3",
     "Start Date": "2023-03-01",
     "End Date": "2023-03-02",
     "Tasks": "task3"
     },
     {
     "Term": "Break",
     "Week": "Week1",
     "Start Date": "2023-01-01",
     "End Date": "2023-01-02",
     "Tasks": "task1"
     },
     {
     "Term": "T4 2023",
     "Week": "Week2",
     "Start Date": "2023-01-01",
     "End Date": "2023-01-02",
     "Tasks": "task1"
     },
     {
     "Term": "T6 2023",
     "Week": "Week2",
     "Start Date": "2023-01-01",
     "End Date": "2023-01-02",
     "Tasks": "task1"
     }
    ]

     And this is the result in my test flow:

    vyueyunmsft_0-1702274151127.png

    This is my flow:

    vyueyunmsft_1-1702274173180.png

    (1)The Compose action is to generate the test data which i have put above .

    (2)The Compose 2 action:

    {
     "Term":" ",
     "Week":" ",
     "Start Date":" ",
     "End Date":" ",
     "Tasks":" "
    }

    (3)The two initial variable actions:

    vyueyunmsft_2-1702274248488.png

    string('')

     

    (3)The Apply to each action:

    vyueyunmsft_3-1702274388300.png

    item()?['Term']

    items('Apply_to_each')?['Term']

     

    (4)The last create html table action:

    vyueyunmsft_4-1702274440319.png

     

    Best Regards,

    Yueyun Zhang

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard
Loading complete