web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Even numbers from a list

(0) ShareShare
ReportReport
Posted on by 42
I have a list of numbers (all greater than 0), and I want to filter out only the even numbers from it using Power Automate. The array may not be sorted, and it can be any positive whole number less than 10,000.
I don't want to create an array of even numbers till 10,000 and then do intersection. Is there a better scalable solution please?
 
  • Input Array: [1, 2, 3, 4, 5, 6, 7, 8]

Output:
[2, 4, 6, 8]

 

 

I have the same question (0)
  • Suggested answer
    Mitanshu Profile Picture
    1,644 Moderator on at
    Even numbers from a list
    You can use `filter` action in Power Automate with `mod` expression.
     
    `mod(item(),2) == 0` -- this will give you even numbers.
     
    You will now get an array containing only even numbers
     
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 535 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 348 Moderator

#3
developerAJ Profile Picture

developerAJ 262

Last 30 days Overall leaderboard