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 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
    Microsoft Employee 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

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
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 469

#3
11manish Profile Picture

11manish 364

Last 30 days Overall leaderboard