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 / Extract records from c...
Power Automate
Unanswered

Extract records from csv file which match certain criteria

(0) ShareShare
ReportReport
Posted on by 164

 

Example below

 

6 321557 6 09302021 0 0 0 4.0 10025955 9 4 CCDRI
8 321557 6 09302021 5 0 0 4.0 10025955 9 4 CCDRI
4 4293173100281909 09292021 74278241272000019493353
4 4293173100870057 09292021 74375881271066520771401 
4 4293173100256307 09292021 74564721272353312350489 
4 4293173101096215 09292021 74363961272000074878489 
4 4293173101488099 09292021 74557021272031035640089 
4 4293173101188848 09292021 74611551271138452937194 
9 321557 6 09302021 5 8 89643 4.0 10025955 9 4 CCDRI
8 321557 6 09302021 6 0 0 4.0 10025955 9 4 CCDRI
4 321557 ABC CORPORATION PTY LTD 179 GEORGES LANE MELBOURNE 
9 321557 6 09302021 6 1 0 4.0 10025955 9 4 CCDRI

I'm sure one of the SELECT function may achieve this but need help with the syntax.

 

Any assistance gratefully received 

 

Categories:
I have the same question (0)
  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @KarlNixon 

     

    Filter array is the one you are looking for.  Split the CSV by a return line to create an array and then filter on item() starts with .

     

    FROM: split(outputs('CSV'),outputs('ReturnLine'))

     

    DamoBird365_0-1633071372587.png

    This gives you an end result:

     

    DamoBird365_1-1633071390940.png

     

    As it is returning an array, you can use join() on the return line again, to recreate your csv if needed.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

  • KarlNixon Profile Picture
    164 on at

    Thanks Damien - perfect

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