Hi there,
i just started out with PowerApps. I tried other solutions for my porblem but couldn't really wrap my head around it.
My problem:
I have a StartDate X where i add YDays based on some other calculations. I've a collections with Holidays:
My Code so far:
ForAll(
[
1,
2,
3,
4,
5,
6,
7,
8,
9
... /there's more
],
Collect(
colDateRange,
{
RowIndex: CountRows(colDateRange)+1 ,
Date: DateAdd(
selectDate.SelectedDate ,
Value
)
}
)
);
RemoveIf(
colDateRange,
Weekday(Date) = 1 || Weekday(Date) = 7 || CountRows(
Filter(colHolidays,
cr9b0_datum > Date,
cr9b0_datum < Date
)
) >0
);
colDateRange gives me sth like this:
My output in simple txtlbl:
Last(FirstN(colDateRange,varDateAdd<-x Amount of Days)).Date
Excluding Weekends is working, but it doesn't remove the Holidays
Hope someone can help me or better,can provide me with a better solution.
Kindes Regards
Ben

Report
All responses (
Answers (