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

Filters

Hello Everyone,

having an issue in filtering my gallery by 2 date picker,it was working correctly but after applying  24-hour to 12-hour conversion it filters the data but not as required.

 

 

when i select 13th in both datepicker it show no data.

formula used for filter:

gallery.item Filter('Training Request',Name.DisplayName=MyUser ,(PlanDate>=start_Date.SelectedDate)&&(PlanDate<=End_Date.SelectedDate))

saqibsaleem_0-1594725330866.png

 

For conversion followed https://powerusers.microsoft.com/t5/Building-Power-Apps/DatePicker-AM-PM/td-p/42766 this link

Data Source : Share point List

App: Canvas App

 

Best Regards,

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User III
Super User III

Try this workaround:

If(End_Date.SelectedDate= start_Date.SelectedDate,
Filter('Training Request',Name.DisplayName=MyUser ,PlanDate>=start_Date.SelectedDate),

Filter('Training Request',Name.DisplayName=MyUser ,(PlanDate>=start_Date.SelectedDate)&&

(PlanDate<=End_Date.SelectedDate)))

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

 

View solution in original post

1 REPLY 1
eka24
Super User III
Super User III

Try this workaround:

If(End_Date.SelectedDate= start_Date.SelectedDate,
Filter('Training Request',Name.DisplayName=MyUser ,PlanDate>=start_Date.SelectedDate),

Filter('Training Request',Name.DisplayName=MyUser ,(PlanDate>=start_Date.SelectedDate)&&

(PlanDate<=End_Date.SelectedDate)))

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

 

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

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,074)