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

¿How can I find or filter a document number and date of birth?

The application connects to SQL server and I do not know how to filter this numeric data.

 

SortByColumns(Search('[dbo].[datos]'; box1.Text; "CI";"Fecha"); "CI"; If(SortDescending1; Descending; Ascending))

 

"Fecha" is date

"CI" is int

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Apps
Power Apps

Re: ¿How can I find or filter a document number and date of birth?

As you noticed, Search only works for text columns. For other types of column, you can use the Filter function, with which you can use other operators, like in the example below.

SortByColumns(
    Filter(
        '[dbo].[datos]';
        CI = Value(box1.Text) Or Fecha = DateValue(box1.Text));
    "CI";
    If(SortDescending1; Descending; Ascending))

View solution in original post

1 REPLY 1
Highlighted
Power Apps
Power Apps

Re: ¿How can I find or filter a document number and date of birth?

As you noticed, Search only works for text columns. For other types of column, you can use the Filter function, with which you can use other operators, like in the example below.

SortByColumns(
    Filter(
        '[dbo].[datos]';
        CI = Value(box1.Text) Or Fecha = DateValue(box1.Text));
    "CI";
    If(SortDescending1; Descending; Ascending))

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (9,897)