Hello there!
I want my app users to be able to view back the amount of hours they filled in for each day. This is what I've already done:
Added a new screen where they can get to using a button. Whenever the screen is visible, I make a new collection that only takes their own tickets.
Code:
ClearCollect(
UrenTerugKijken,
Filter(
UrenRegistratie,
varcurrentuser = Werknemer
)
);
The screen looks like this: https://gyazo.com/7fc87b9b27c716433ddc945610606af1
I have used the function Distinct to filter out the double dates & sorted the gallery based on the result. This did not sort it correctly though. As you can see the date 22/09/2020 is at the bottom when it should've been on the top.
Code:
Sort(
Distinct(
UrenTerugKijken,
Datum
), Result)
What I now want is the following:
It needs to check the date and display the day of today in front of the date and then the sum of all of the hours they worked on that day, example; Friday - 18/09/2020 - 8,75 hours
To get the hours, we need to check in the collection named "UrenTerugKijken". Here are 2 columns that are important and we need to use. TijdTotaal & title. TijdTotaal is the hours they filled in per ticket. Title is the date of the ticket filled in. Picture of the collection: https://gyazo.com/63bd25a1f395bce3659269353fbe83a2
We need to make a formula that sums up all of the hours on the same day. On 18/09/2020 you can see there are 3 tickets. On the app gallery itself, it needs to display the following:
Thursday - 22/08/2020 - 5 hours
Tuesday - 15/09/2020 - 2 hours
Friday - 18/09/2020 - 9 hours
I want them to be able to look a month back only. So if they look today, they can still see a ticket of 18/08/2020 but not of 17/08/2020.
How can I accomplish this?
Thank you in advance for your help! Appreciate it!