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 Automate / Delete multiple column...
Power Automate
Answered

Delete multiple columns from data table

(0) ShareShare
ReportReport
Posted on by 20
I have data table as a variable scraped from an html table
 
How do I delete the first 3 columns using Index?
 
Do I have to add an action for each column?  If so is the index o each time, or is it 0 in action 1, 1 in action 2, etc.?
Categories:
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,522 Super User 2026 Season 1 on at
    Yes datatable indexing starts from 0 so first column would be 0, second 1 and third 2. To delete a column you can use "Delete column from data table" -action.

    So if you want to delete multiple columns you should either delete the index 0 three times in a row or delete first the highest column index and go from the top down. Because if you delete the first column then the second column will become index 0 and third column will be index 2.

    For example I extract html table and want to delete first three columns:



    I can do it like this:


    Or loop the deletion of index 0 for three times:


    Then I will have removed the first three columns:

     
  • CU15021716-0 Profile Picture
    20 on at
    @eetuRobo Thanks for your reply,
     
    I found it didn't work like that for me (PAD v2.52) -
     
    It wouldn't accept 0 as the first column.  I had to create 3 'Delete column' actions, each specifying column 1.
     
    (maybe because I ticked the box to 'Enable Power FX' when I created the flow?)
  • Verified answer
    eetuRobo Profile Picture
    4,522 Super User 2026 Season 1 on at
    @CU15021716-0 Good to hear that you figured it out
     
    (maybe because I ticked the box to 'Enable Power FX' when I created the flow?)
    Yes that exactly right. With Power Fx the indexing starts from 1 rather than in the regular flow where it starts from 0.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 976

#2
Valantis Profile Picture

Valantis 863

#3
Haque Profile Picture

Haque 547

Last 30 days Overall leaderboard