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
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

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.

Users online (1,848)