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 Apps / Filter within AddColum...
Power Apps
Answered

Filter within AddColumns formula

(0) ShareShare
ReportReport
Posted on by 3,514

I have this formula to add column on a SharePoint list named "grant Applications"

 

// Create a collection of all related Grant Applications
ClearCollect(
 colGrantItems,
 AddColumns(
 ShowColumns(
 
 'Grant Applications',
 "ID",
 "Title"
 ),
 "Level",
 2
 );
 

 

now i only want to filter the items inside the "Grant Application' which have status= Open or Inprogress.. so how i can filter my above formual?

Thanks

Categories:
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at
    You can try something like this
    ClearCollect(
     colGrantItems,
     Filter( AddColumns(
     ShowColumns(
     
     'Grant Applications',
     "ID",
     "Title"
     ),
     "Level",
     2
     ), Status.Value = "Open" || Status.Value="In Progress" ));
    //Assuming status to be a choice column
  • johnjohn123 Profile Picture
    3,514 on at

    @NandiniBhagya20 but i am getting error as "name is not valid, Status not recognized"

     

    johnjohn123_0-1660652031041.png

     

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Can you please let me know the name of your column that has values "In Progress", "Open", etc.
    And what type of column is it?
    Single line of text, choice (single select), choice (multi select)

  • Verified answer
    v-liwei-msft Profile Picture
    Microsoft Employee on at

    Hi @johnjohn123 ,

     

     

    I suggest you to use the Filter function on the data source first, then ShowColumns and AddColumns.

    I have made a test for your reference:
    1.

    vliweimsft_0-1660813387384.jpeg

    2.I'm assuming Status is the Choice column.

    ClearCollect(
     colGrantItems,
     AddColumns(
     ShowColumns(
     Filter(
     'Grant Applications',
     Status.Value = "Open" || Status.Value = "In Progress"
     ),
     "ID",
     "Title"
     ),
     "Level",
     2
     )
    )

    vliweimsft_1-1660813418194.jpeg

    3.

    vliweimsft_2-1660813471617.jpeg

     

    Best Regards,

    Levi

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard