cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Willo
Helper II
Helper II

Need to collect between dates and 3 different columns

I'm attempting to grab a collection based on dates between 2 date pickers and a variable that needs to look in 3 different columns to find the records. This is based on a sharepoint list.
 
ClearCollect(WelcomeBackData,Filter(AbsenceData,FilteredDate >= VariDateFrom && FilteredDate<=VariDateTo,VarSelecteduserEmail='Employee Name'.Email || VarSelecteduserEmail=ManagerEmail || VarSelecteduserEmail=ManagerEmail));
 
Hoping someone can help me find a better way that this. I can get it to look into 2 columns but not 3.

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User II
Super User II

 

 

With({WBD:Filter(
                  AbsenceData, And(
                                    FilteredDate >= VariDateFrom, 
                                    FilteredDate<=VariDateTo, 
                                )
      },
   ClearCollect(
                 WelcomeBackData, Filter(
                                          WBD, OR(
                                                 VarSelecteduserEmail='Employee Name'.Email,
                                                 VarSelecteduserEmail=ManagerEmail, 
                                                 VarSelecteduserEmail=SomethingElse
                                                )
                                     )
   )
)

 

 

View solution in original post

1 REPLY 1
Drrickryp
Super User II
Super User II

 

 

With({WBD:Filter(
                  AbsenceData, And(
                                    FilteredDate >= VariDateFrom, 
                                    FilteredDate<=VariDateTo, 
                                )
      },
   ClearCollect(
                 WelcomeBackData, Filter(
                                          WBD, OR(
                                                 VarSelecteduserEmail='Employee Name'.Email,
                                                 VarSelecteduserEmail=ManagerEmail, 
                                                 VarSelecteduserEmail=SomethingElse
                                                )
                                     )
   )
)

 

 

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

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (17,160)