Hello PowerApps Community, this is my first time posting here :).
I have created a collection showing the last 7 values/entries of two columns (Solved & CW). This is correct but I want to show the last 7 values/entries from the selected CW (Calendar Week). I have a dropdown menu where one can select the CW (called dd_cw). For example, you select CW 9 from the dropdown, then the collection should show CW 3, 4, 5, 6, 7, 8, 9. If CW 8 is selected it should show 2, 3, 4, 5, 6, 7, 8. How can I achieve that? I appreciate any help!
My Code:
Clear(colTest);
ForAll(
LastN(KPI_ServiceDesk, 7),
Collect(colTest,
{Solved: ThisRecord.Solved,
CW: ThisRecord.CW}
));