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

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

Re: Filtering Items in a gallery

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
PowerApps Staff CarlosFigueira
PowerApps Staff

Re: Filtering Items in a gallery

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.

Re: Filtering Items in a gallery

Carlos,

 

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

PowerApps Staff CarlosFigueira
PowerApps Staff

Re: Filtering Items in a gallery

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?

Re: Filtering Items in a gallery

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

werner88
Level: Powered On

Re: Filtering Items in a gallery

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

werner88
Level: Powered On

Re: Filtering Items in a gallery




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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,581)