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

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

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard