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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to split a table i...
Power Automate
Answered

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

(0) ShareShare
ReportReport
Posted on 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 at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard