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 / Power Automate - remov...
Power Automate
Unanswered

Power Automate - remove colomns in csv File

(0) ShareShare
ReportReport
Posted on by

Hello,

I am stuck with my flow and I wanted to ask for some help.

I have a big CSV table and I need to make smaller files from the data provided in the table. The original table contains an ID as the first element of each row, so the created files schould each contain rows with the same ID. I have successfuly overcome this challenge, but now I face a bigger problem.

 

My flow should be able to save only some data each row. Imagine I have an Excel table and I need only 2 of 3 colomns provided there. The main challenge is that the flow should make it dinamicly: it gets an array with all colomns to be saved as an input. So the created files contain only the colomns from the input.

 

To make it clear, here is what a table in Excel or CSV could look like:

Vladyslav1_1-1701433284648.png      Vladyslav1_3-1701433338023.png

 

So for example, when the user needs only IDs and Names from the table, they should get 3 files that look like this:

Vladyslav1_4-1701433422257.png   Vladyslav1_5-1701433467136.pngVladyslav1_6-1701433510317.png

I can´t understand the way to get to the result I want. To this point all I get is this:

Vladyslav1_7-1701433703368.png   Vladyslav1_8-1701433722529.png   Vladyslav1_10-1701433772953.png

That is my Flow until now:

Vladyslav1_11-1701436027135.pngVladyslav1_13-1701436079408.png

 

Could you recommend me some way to achieve it?

 

p.s. I can´t just use indexes to select coloumns the use wants, because the file could contain more than 3 coloumns and the user should be able to choose any of them. The original file could contain up to 40000 rows, so I should be carefull with loops. On a file with 40000 rows, it took 4 min for the flow to end successfully, so the results I get so far are good, but I can´t get the feature with dynamically choosing coloumns right.

 

 

Categories:
I have the same question (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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard