To remove duplicates you can use the GroupBy function and take the First of the elements in each group. Once you have that, you can use some of the table shaping functions (AddColumns, DropColumns) to recreate the original column structure, if necessary:
DropColumns(
AddColumns(
GroupBy(
Filter(Table1, StartsWith('Sys',"Sys")),
"Sys",
"BySys"),
"Model#", First(BySys).'Model#',
"Current Status", First(BySys).'Current Status',
"Previous Status", First(BySys).'Previous Status'),
"BySys")
The way you can read the expression above is from inside out: first filter the Table1 only for those rows whose 'Sys' column starts with "Sys" (what you had originally). The result of the filter will be grouped by the 'Sys' column, with all rows that have similar values grouped in the 'BySys' column. To this result, we add three columns: 'Model#', 'Current Status' and 'Previous Status', by taking the first of the grouped elements. Finally we remove the grouped column ('BySys') at the outermost function.
If you don't want to have to list all of the properties of the original data source in the expression, you can stay with the GroupBy expression as the Items of your gallery:
GroupBy(
Filter(Table1, StartsWith('Sys',"Sys")),
"Sys",
"BySys")
In the gallery template, you can have a label that shows the 'Sys' column directly as ThisItem.Sys
, but if you want to access the other columns, you will need to choose, from the group, what you want to display. For example, to display the model number of the first row for that specific 'Sys' value, you can have this expression as the Text property of a label:
First(ThisItem.BySys).'Model#'
Yet another option, if you want to show many other properties and don't want to keep repeating the call to First
is to add that as another (record) property of the gallery items:
AddColumns(
GroupBy(
Filter(Table1, StartsWith('Sys',"Sys")),
"Sys",
"BySys"),
"FirstSys", First(BySys))
And now in your gallery you can have labels with the following properties:
ThisItem.FirstSys.'Model#'
ThisItem.FirstSys.'Current Status'
And so on.