Hi all,
I'm so stuck on this I hope someone can nudge me in the right direction.
I have a gallery & a sub-gallery:

When the user selects the value of the top gallery, in this case ""Alloa WWTW influent flow", the sub-gallery drops down & the user should be able to select the particular Signal ID row which subsequently opens the form component on the right hand side so they can make changes.

However, I have loads of duplicates showing, where as I really need just one unique record, based on Signal ID to show.

My current formula for the top gallery is:
Search(
Sort(
RenameColumns(
Distinct(
'FLOWRETURNS.MANUAL_UPDATE',
SW_Unique_Measurement_Point
),
"Result",
"SW_Unique_Measurement_Point"
),
SW_Unique_Measurement_Point
),
txtSearch_1.Text,
"SW_Unique_Measurement_Point"
)
This works fine - no issues with this.
My sub-gallery's Item property is set to:
Filter('FLOWRETURNS.MANUAL_UPDATE', SW_Unique_Measurement_Point = ThisItem.SW_Unique_Measurement_Point)
I know this won't achieve my needs but I have tried multiple formula's, including:
Distinct(Filter('FLOWRETURNS.MANUAL_UPDATE',SW_Unique_Measurement_Point=ThisItem.SW_Unique_Measurement_Point),Signal_ID)
And:
ForAll(Distinct('FLOWRETURNS.MANUAL_UPDATE',SW_Unique_Measurement_Point),LookUp('FLOWRETURNS.MANUAL_UPDATE',Signal_ID=ThisRecord.Signal_ID))
However, nothing has worked. Maybe my understanding of filtering/distinct on a sub-gallery isn't perfect but I am at a loss on how to achieve this.
Can anyone provide any clues?
I am using SQL as my data source.
Many thanks,
Doug