I have 2 gallerys. The first Gallery is filtered by selected date. I would like to filter the 2nd gallery by a field not equal to a field in the filtered 1st gallery.
Gallery 1 items=Filter(colFilterGallery1, Start>=StartDateSearch.SelectedDate&&end<=EndDateSearch.SelectedDate)
Field in colFilterGallery to compare "TechnicianText"
Gallery 2 = colGallery2
Field in colGallery2 to compare "ADTxt"
Im am trying to filter colGallery2 items. This is what I have:
Filter(colGallery2,Department = "On Call" && ADTxt exactin Filter(colFilterGallery1,start >=StartDateSearch.SelectedDate && End <= EndDateSearch.SelectedDate).TechnicianText)
This shows the match and is filtered correctly by date. But I would like it to show the opposite. Provide the "ADTxt" items that do not match the TechnicianText but are within the date range.
Any help would be appreciated
Solved! Go to Solution.
Hi @Rebeccak,
Have you solved your problem?
If you want to filter your Gallery 2 whose ADTxt" items that do not match the TechnicianText but are within the date range, please modify your formula as below:
Filter(
colGallery2,
Department = "On Call" &&
Not(ADTxt exactin Filter(colFilterGallery1,start >=StartDateSearch.SelectedDate && End <= EndDateSearch.SelectedDate).TechnicianText)
)
More details about the Not function, please check the following article:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-logicals
If you have solved your problem, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify.
Best regards,
Kris
I'm a little confused by what you're doing - is 'colFilterGallery1' a datasource?
Could you do a Collect() of the TechnicianText, and then in the filter of your second gallery set it to filter to items IN your collection, but wrap that inside a Not()?
Yes, I am sorry. It's 2 different data sources. I just want to compare a field in each datasource to filter by.
I figured it out. I used my original filter and wrapped it in a Not() Thanks
Hi @Rebeccak,
Have you solved your problem?
If you want to filter your Gallery 2 whose ADTxt" items that do not match the TechnicianText but are within the date range, please modify your formula as below:
Filter(
colGallery2,
Department = "On Call" &&
Not(ADTxt exactin Filter(colFilterGallery1,start >=StartDateSearch.SelectedDate && End <= EndDateSearch.SelectedDate).TechnicianText)
)
More details about the Not function, please check the following article:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-logicals
If you have solved your problem, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify.
Best regards,
Kris
User | Count |
---|---|
122 | |
87 | |
86 | |
75 | |
67 |
User | Count |
---|---|
214 | |
180 | |
139 | |
96 | |
83 |