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 / Filter Excel data and ...
Power Automate
Answered

Filter Excel data and send one email based on condition

(0) ShareShare
ReportReport
Posted on by 22

Hi there, new to Power Automate and I've been stuck on this for days. Seems really quite basic.

 

All I'm trying to do is filter a few rows of data based on a condition (price > $500.00 - so should return AMZN) and send an email. The data is below:

 

crp__0-1642493862118.png

 

This is the flow:

 

crp__1-1642493998581.png

 

This is what is fed into the array:

 

crp__3-1642494172207.png

This is the output: 

 

crp__2-1642494115247.png

 

Not entirely sure what's going on here, but any help is greatly appreciated.

 

Thanks.

Categories:
I have the same question (0)
  • crp_ Profile Picture
    22 on at

    Just commenting so far because I've managed to overcome the filtering issue by changing price to a float type with the following: float(item()?['price']) and then also doing the same with the value (wrapping it in a float type) - so in this instance float(500). 

  • Verified answer
    crp_ Profile Picture
    22 on at

    Hi all,

     

    So this was the final result:

     

    crp__0-1642503404957.png

     

     

    Everything works perfectly. I hope this helps someone in future. 

  • v-xiaochen-msft Profile Picture
    on at

    Hi @crp_ ,

     

    Glad to see you solved the problem.

    You could mark yourself as a solution.

     

    Best Regards,

    Wearsky

  • crp_ Profile Picture
    22 on at

    Also, just to note here - for the email part, take the email outside of the 'apply to each' loop. This prevents the email sending multiple times (because otherwise you're iterating through the rows). You only want to do this once, so use an initialise variable and loop through the data then use an append to variable. Then attach variable to the email. 

     

    Should look like this:

     

    crp__1-1642668612661.png

     

     

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard