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

Combine Sort, Serach and Filter into Gallery

Hi. 

 

I would like to combine these 3 functions into my gallery. Can someone help me with this? 

 

SortByColumns("Created";Descending)

 

Search(Source; TextInput2.Text; "{Name}")

 

Filter(Source;("Change" >= DatePicker1.SelectedDate) &&
("Change" <= DatePicker2.SelectedDate)

 

Best regards. 

2 ACCEPTED SOLUTIONS

Accepted Solutions
anibra
Resolver II
Resolver II

Hi @JHAKANS ,
you can try 
SortByColumns(Search(Filter(Source;("Change" >= DatePicker1.SelectedDate) &&
("Change" <= DatePicker2.SelectedDate),TextInput2.Text,"{Name}"),"Created",Descending))

View solution in original post

CNT
Super User
Super User

@JHAKANS 

Please try the following,

SortByColumns(
	Filter(Source;
		Name=TextInput2.Text &&
		(Change >= DatePicker1.SelectedDate &&
		Change <= DatePicker2.SelectedDate)
	);
	"Created";Descending
)

View solution in original post

3 REPLIES 3
anibra
Resolver II
Resolver II

Hi @JHAKANS ,
you can try 
SortByColumns(Search(Filter(Source;("Change" >= DatePicker1.SelectedDate) &&
("Change" <= DatePicker2.SelectedDate),TextInput2.Text,"{Name}"),"Created",Descending))

CNT
Super User
Super User

@JHAKANS 

Please try the following,

SortByColumns(
	Filter(Source;
		Name=TextInput2.Text &&
		(Change >= DatePicker1.SelectedDate &&
		Change <= DatePicker2.SelectedDate)
	);
	"Created";Descending
)
JHAKANS
Frequent Visitor

Had to modify a bit. But it works now, thanks! 

 

SortByColumns(
Filter(Search(Source;
TextInput2.Text;"{Name}");
(Change >= DatePicker1.SelectedDate &&
Change <= DatePicker2.SelectedDate)
);
"Created";Descending
)

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (4,606)