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 / Filter an excel file i...
Power Automate
Answered

Filter an excel file in SharePoint and download the filtered version of excel on OneDrive

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi folks,

 

With the flow below, i am trying to enter the value of a Country- example Canada.

Then, go to an excel hosted in SharePoint having a column Country. I want to filter this column based on the country i entered- i'll get that from dynamic content as shown below.

Now, the issue is what should be the next step- how do i get the results in an excel.

I want the filtered version of this excel on OneDrive. Please suggest

 

GauravG_0-1600023787104.png

@abm@CFernandes - can you please help!

Thanks, Gaurav

Categories:
I have the same question (0)
  • ChristianAbata Profile Picture
    8,953 Most Valuable Professional on at

    hi @Anonymous  you are doing well work in your flow, just please try cliking Test and then I'll perform the trigger action.

    You are going to see a form to enter the data you want to filer, that could be your Country Canada see

     

    canada.PNG

  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    @Anonymous 

     

    Hi Mate,

     

    My way of filtering the Excel is a bit different as this works for me.

     

    CFernandes_1-1600066787788.png

     

    Filter array

    From - value

    Condition - Country is equal to Canada

     

    Apply to Each -

    Body - Output of the 'Filter' action.

     

    Create items-

    ID - items('Apply_to_each')['ID']

    Review - items('Apply_to_each')['Country']

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @CFernandes Appreciate your response.

    I am looking to move data from a excel in SharePoint to an excel in OneDrive. The excel in OneDrive doesn't exist- so may have to copy the file from SP and then delete rows in OneDrive as i don't want to affect the original file in SP.

    The method above seems good and i will try it- but still unaware as to how a workbook/ table would be created from scratch in OneDrive? Kindly suggest!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @abm Thanks for connecting- was able to create file using get content using path in OneDrive

    Will try the other remaining steps and update on progress here

    Thanks

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I  am trying to accomplish something similar here.

    So pasting the link- https://powerusers.microsoft.com/t5/Building-Flows/Delete-rows-from-excel-file-which-would-be-created-in-the-flow/m-p/691542#M93465

    I will mark this as solution to point to the right thread

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 784

#2
Valantis Profile Picture

Valantis 589

#3
Haque Profile Picture

Haque 522

Last 30 days Overall leaderboard