Hiya,
I was hoping someone could point me in the right direction.
I have a dropdown with choices of the weeks. "Week 1", "Week 2", "Week 3" and so on.
I have a date picker that I would like to populate with the Monday of the week selected.
The only way I have worked out how to do this is an If statement on the date picker:
If(
DataCardValue20.Selected.Value = "Week 1", Date(2024, 1, 1),
DataCardValue20.Selected.Value = "Week 2", Date(2024, 1, 8),
DataCardValue20.Selected.Value = "Week 3", Date(2024, 1, 15),
DataCardValue20.Selected.Value = "Week 4", Date(2024, 1, 22),
DataCardValue20.Selected.Value = "Week 5", Date(2024, 1, 29),
)
This isn't working. Why isn't this working?
Also, Is there an easier way to do this?