cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Patron
Post Patron

Filtering Items in a gallery

Greetings. I am in the process of buiding an inventory application for my company. There are multiple locations and I have made a screen for each one.

 

All the data is stored on a single table. Eventually, I will have to write a formula that adds and removes records, but one step at a time here.

 

I'm using the following formual to filter records from a  location:

    Filter('ItemDataBase';'Location' = 'name of location')

This formula displays an error.  Is there something that I'm missing here?

1 ACCEPTED SOLUTION

Accepted Solutions

Carlos,

 

My apologies for the delay. I discovered that my formula was incorrect. I used the following instead:

 

Filter( TableName, Location1 & Group1 = "NameofGroup")


Since then I have had no issues displaying anything my tables. Thank you for your assistance.

 

Brendon

View solution in original post

6 REPLIES 6
Power Apps
Power Apps

When you hover the squiggly lines under the formula, it should display an error in the tooltip. What error do you get?

 

One thing that looks incorrect is that the single quotes (') are used for escaping names; in your formula, are you using a fixed value for the name of location? If so, you need to use double quotes ("):

Filter(ItemDataBase; Location = "name of location")

Notice also that if you don't need to escape the data source name (ItemDataBase) or the column name on which you want to filter, you don't need to use quotes to escape it.

Carlos,

 

The error that I receive is "Invalid number of arguments" when I use double quotes.

Where is this formula used, and can you post the formula that you are using now, along with the relevant columns from your data source?

Carlos,

 

My apologies for the delay. I discovered that my formula was incorrect. I used the following instead:

 

Filter( TableName, Location1 & Group1 = "NameofGroup")


Since then I have had no issues displaying anything my tables. Thank you for your assistance.

 

Brendon

View solution in original post

Frequent Visitor

i need to filter a gallery with items who have an expiring date and remove them automaticly if the post has expired

thanks for helping

Frequent Visitor




i need to filter a gallery with items who have an expiring date and remove them automaticly if the post has expired

thanks for helping

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (66,828)