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

Radio button - Filter dates

Hi,

I have a Sharepoint list as a data source and Radio button inside Gallery2 (Gallery1.Selected).

I'm trying to Filter three dates inside Radio, so if 3 days left until Event Date 1, Event Date 2, Event Date 3 - they will hide:

Filter(
    Table(
        {EventDateTbl: ThisItem.'Event Date 1'},
        {EventDateTbl: ThisItem.'Event Date 2'},
        {EventDateTbl: ThisItem.'Event Date 3'}
    ),
    DateDiff(Today(), EventDateTbl) > 3)

2022-03-29 02_14_56-Window.png

It works fine with simple rows, but not with more complicated rows:

Filter(
Table(
    {EventDateTbl: ThisItem.'Event Date 1' & Text(" - ") & ThisItem.'Event End Date 1'},
    {EventDateTbl: ThisItem.'Event Date 2' & Text(" - ") & ThisItem.'Event End Date 2'},
    {EventDateTbl: ThisItem.'Event Date 3' & Text(" - ") & ThisItem.'Event End Date 3'}
), 
    DateDiff(Today(),EventDateTbl) > 3)

Here it will hide all dates, because DateDiff is comparing the whole row and not just ThisItem.'Event Date *'  (make sense).

What is the correct way to "Filter" to get a result below?

2022-03-29 02_31_49-Window.png

Thanks in advance!

0 REPLIES 0

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,602)