cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cmanning
Helper III
Helper III

Search + Filter Question for Two Related Dataverse Tables

I recently needed to filter a Dataverse view per this thread, 
Dataverse Views - Can I Use a Variable From My Canvas App and Send to the 'Filter By' In My View? and @dpoggemann provided a great solution as shown below.

// Gallery - ITEMS Property (Works)
Search( Filter( AssignedUserss, 'AssignedUserss (Views)'.'DIApp Home User Dashboard' ), User().Email, "cr4de_assignedemail" )

Now using the code above, I need to also filter WHERE Close Date has not been reached +90 days.  So if the close date is 4/15/2022 (+90 days) then it would displayed in the gallery but if close date is 1/1/2022 (+90 days) then it would not be displayed.

Here is my gallery.
DI App - User Dashboard NEED TO Filter by Close Date.png

 This code is for the Close Date in the gallery.  

// Close Date in the gallery Where DRID is the lookup column 
Text( ThisItem.DRID.CloseDate, "[$-en-US]mm/dd/yyyy" )

 Thanks for any feedback.

1 ACCEPTED SOLUTION

Accepted Solutions
dpoggemann
Super User
Super User

 Hi @cmanning ,

 

Have you tried code similar to the following to apply the additional filters?  http://powerappsguide.com/blog/post/filter-records-by-specific-date-todays-date-or-range-of-dates 

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

View solution in original post

2 REPLIES 2
dpoggemann
Super User
Super User

 Hi @cmanning ,

 

Have you tried code similar to the following to apply the additional filters?  http://powerappsguide.com/blog/post/filter-records-by-specific-date-todays-date-or-range-of-dates 

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

@dpoggemann - I apologize for my late response but I had some critical tasks become my top priority.  
Thank you for putting me on the right track!  Here is the solution. 

// Gallery Items Property
Sort(    
    Filter(
        Search(
            AssignedUserss,
            User().Email,
            "cr4de_assignedemail"
        ),
        'AssignedUserss (Views)'.'DIApp Home User Dashboard',
        DateAdd(
            DRID.CloseDate,
            90,
            Days
        ) > Today()
    ), PercentAllocated, Descending
)

 

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,311)