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 to Filt...
Power Automate
Answered

Power Automate to Filter Excel Columns Based on Multiple Conditions

(0) ShareShare
ReportReport
Posted on by 53

Hello,

 

I'm a newbie to Power Automate and need some help.  I would like Power Automate to filter an Excel file saved on SharePoint, extract only the unique records (in this case based on the Owner column , which is a unique identifier) where each Car1, Car2, Car3, and Car4 is a Fail, get the email address associated with those records and send each Owner an email along with a HTML table of the records where the Car is a Fail.  The Action column helps identify the rows that have a Fail/Pass.  I'm only interested in the rows where Action column is Correction Needed.

 

OwnerCar1Car2Car3Car4ActionEmail
5PassFailFailFailCorrection NeededCam@hotmail.com
5PassPassPassPassNoneCam@hotmail.com
5PassPassFailPassCorrection NeededCam@hotmail.com
2FailPassFailPassCorrection NeededBob@hotmail.com
2PassPassFailPassCorrection NeededBob@hotmail.com
3PassPassPassPassNoneMike@hotmail.com
7PassPassPassFailCorrection NeededTom@hotmail.com
9PassFailPassFailCorrection NeededMary@hotmail.com
9FailPassPassPassCorrection NeededMary@hotmail.com

 

For example, Owner 5 a correction is needed (based on Action column) for rows 1 and 3 only.  So owner 5 will receive an email that shows a HTML table of those two records.  On the other hand, Owner 3 should be the only owner not to receive an email because the Action is none - all the cars has a pass for it.

 

Please help me build a example flow from this! Thank you in advance.

Categories:
I have the same question (0)
  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @coolbeans23 ,

     

    I made a test for your reference:

    vdezhilimsft_2-1675327046270.png

    vdezhilimsft_0-1675326983791.png

    vdezhilimsft_1-1675327028403.png

    vdezhilimsft_3-1675327126948.png

     

    vdezhilimsft_4-1675327228414.png

     

    vdezhilimsft_5-1675327389729.png

     

    Best Regards,

    Dezhi

     

  • Verified answer
    coolbeans23 Profile Picture
    53 on at

    Awesome! I made a slight variation from your flow.  I did not utilize two Filter Arrays, just one because I made an initial filter using the Odata Filter Query under advanced option in the second step.  This I read helps with speed performance for the subsequent steps. Worked great!

     

    I do have a question for understanding purposes: In the first Filter Array why do you check if the table values equal to Owner? Is it comparing to a distinct list of Owner from the Compose step? Also, in the last step, in the "To" part of the email, is the expression referencing the distinct emails you generated in the Compose step?

  • coolbeans23 Profile Picture
    53 on at

    Is it possible to modify the flow so that I'm given an option to select All or a unique list of Owners before sending out an email? I want to have the ability to send a mass email or select from one or multiple individual owners before sending the email.  I'm thinking radio buttons or a user input would be best for making those selections. The default should be "All" if no individual Owner is selected.  Is this something that is do-able or should I create another column/table in Excel that checks for this selection? 

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard