hello all,
I just started with power apps and I got stuck with comparing two datasources.
I have a "rental" datasource and a "product" datasource (from different excel sheets).
What I would like to do is compare alle dates from the rental datasource with today.
if today has passed I want the rented items back in the "product" datasource.
My plan is to do this in the Homescreen OnVisible.
Rental datasource example:
| ProductId | RentUntil | howmany_Items_rented | rented_by |
| 6 | 08-02-2022 | 5 | me |
| 6 | 23-02-2022 | 1 | someOneElse |
| 8 | 07-02-2022 | 3 | me |
Product datasource example:
| ProductId | total_Items | items_left |
| 6 | 15 | 9 |
| 8 | 3 | 0 |
So in above example I need to link the "ProductId" and the "howmany_Items_rented" with the product in the "product" database but only if the date has passed. The "rental" datasource should stay how it is so it should not be editted.
I have no idea how to do this....
It would be easier if it was one datasource I could figure it out with an ForAll function but i'm just lost here.
Can some one point me in the right direction?