cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PPPocket
Frequent Visitor

Multiple Filters for a gallery throwing errors

I've below filter criteria for a gallery

 

Filter('Submitted POFs',Createdby = varUser.FullName, StartsWith(Title3,TextSearchBox1.Text))

 

However, on adding the second filter condition I'm running into below errors:

1. Invalid argument types (Control). Expecting a Text value instead.

2. The function 'StartsWith' has some invalid arguments.

3. This rule creates a circular reference between properties, which is not allowed

  • The 3 error is being duplicated for all fields shown in gallery i.e. Title, Subtitle and Body

 

Note: Filter function worked fine for the first condition

 

1 ACCEPTED SOLUTION

Accepted Solutions
PPPocket
Frequent Visitor

Hey @WarrenBelz,

After reading through the documentation and fresh mind from weekend, I reworked the formula which ran perfectly (it was a simple change of replacing Title3 with the name of the field):

 

Filter('Submitted POFs','Createdby' = varUser.FullName,StartsWith('Physician_x002f_OutletName',TextSearchBox1.Text))

 

Thanks for your help.

View solution in original post

5 REPLIES 5
WarrenBelz
Super User III
Super User III

HI @PPPocket ,

Two things - firstly your createdby syntax is wrong - it should be 'Created by' and also is Title3 a Text column in your list 'Submitted POFs' ?

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

PPPocket
Frequent Visitor

Hi @WarrenBelz

I updated the code for first part of the filter, however for the second part I wasn't sure so I have added the screenshot from my app depicting the properties of the field. If it doesn't help, can you guide me as to where i can check the field property.

 

PPPocket_0-1604576426074.png

 

WarrenBelz
Super User III
Super User III

@PPPocket ,

I need the Field definition of the data in your list

Hi @PPPocket ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

PPPocket
Frequent Visitor

Hey @WarrenBelz,

After reading through the documentation and fresh mind from weekend, I reworked the formula which ran perfectly (it was a simple change of replacing Title3 with the name of the field):

 

Filter('Submitted POFs','Createdby' = varUser.FullName,StartsWith('Physician_x002f_OutletName',TextSearchBox1.Text))

 

Thanks for your help.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (60,129)