Hi @powerappsUser31 ,
Do you want to get the most recent date for each ID in your SQL Table within your SQL Table?
Based on the needs that you mentioned, I think the combination of GroupBy function, AddColumns function and DroColumns function could achieve your needs.
I have made a test on my side, please take a try with the following workaround:
On your side, you could add a Data Table control within your app, then set the Items property to following:
DropColumns(
AddColumns(
GroupBy('[dbo].[YourSQLTable]', "ID", "GroupData"),
"Date", /* <-- added new column */
First(SortByColumns(GroupData,"Date", Descending)).Date /* <-- Date represents the Date column in your SQL Table */
),
"GroupData"
)
then within the Data Table, enable the ID column and Date column to display.
More details about the GroupBy function, AddColumns function and DropColumns function, please check the following article:
GroupBy function, AddColumns function and DropColumns function
Best regards,