Hi PowerApps Community,
I am having a little trouble with using Distinct and other columns from a SharePoint list.
Basically I have a SP list that has Project numbers, multiple records have that same project number associated.
I have a gallery on the first screen, where i would like to display unique project numbers so that user can click the arrow and the next screen will show the records relating to that project.
I had it working using distinct, including a searchbox using this formula:
Filter(Distinct(AccountsReceivable,Project),StartsWith(Result,SearchProject.Text))
Now, I have to add in a Date filter that filters on column "Actual Month" in my SP list.
However, because Distinct returns a table of distinct values, this wont let me work with other columns.
Here is the code I have tried and also tried different variations but no luck:
Filter(Distinct(AccountsReceivable,Project),
(DateFilter.Selected.Value="Filter by Date" || Actual Month = DateFilter.Selected.Value) &&
(StartsWith(Result,SearchProject.Text))
))
Should I be using a different function that Distinct here?
Any help greatly appreciated!