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

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,204 Super User 2025 Season 2 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,204 Super User 2025 Season 2 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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard