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

FILTER 2 COLUMNS AT THE SAME TIME

Hi,

 

I built gallery on oracle table and currently filtering on one column which  is a primary key. I would like my app to filter on 2 columns. double filtering on same table and 2 columns.

I tried using this and it does not work 

Filter('[POC].[VIATRM_BILLING]',StartsWith(PID,TextSearchBox1_1.Text) And EndsWith(PROGRAM_ID,TextSearchBox1_1.Text))

 

thanks,

yernenis

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: FILTER 2 COLUMNS AT THE SAME TIME

Hi @SINDUCHOW :

Do you want to search records based on this string?

The key is to use correct syntax. In the StartsWith function and EndsWith function, the first parameter should be the string to be tested, and the second parameter is the head/tail characters.

Please try this formula:

Filter('[POC].[VIATRM_BILLING]',StartsWith(TextSearchBox1_1.Text,PID) And EndsWith(TextSearchBox1_1.Text,PROGRAM_ID))

I think this link will help you a lot:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-startswith

Best Regards,

Bof

 

View solution in original post

4 REPLIES 4
Highlighted
Super User III
Super User III

Re: FILTER 2 COLUMNS AT THE SAME TIME

@SINDUCHOW 

It appears you have already achieved this.  Are you having an issue?  Are you receiving errors?

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted
Frequent Visitor

Re: FILTER 2 COLUMNS AT THE SAME TIME

@mdevaney 

 

No issues but when I play it and filter, it does not give an out.

this is how my data looks 

SINDUCHOW_0-1600804268752.png

 

when I filter I use  first column and second combined and it gives no result. kindl suggest if I am missing something here

 

 

SINDUCHOW_1-1600804451907.png

 

 

Highlighted
Community Support
Community Support

Re: FILTER 2 COLUMNS AT THE SAME TIME

Hi @SINDUCHOW :

Do you want to search records based on this string?

The key is to use correct syntax. In the StartsWith function and EndsWith function, the first parameter should be the string to be tested, and the second parameter is the head/tail characters.

Please try this formula:

Filter('[POC].[VIATRM_BILLING]',StartsWith(TextSearchBox1_1.Text,PID) And EndsWith(TextSearchBox1_1.Text,PROGRAM_ID))

I think this link will help you a lot:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-startswith

Best Regards,

Bof

 

View solution in original post

Highlighted
Frequent Visitor

Re: FILTER 2 COLUMNS AT THE SAME TIME

@v-bofeng-msft 

Thank you for your reply!!

It worked but shows delegation warning, do we need to make any more changes !!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (10,363)