Hello Power Apps Community,
I'm encountering an issue in my Power Apps application and I would like to seek your assistance in finding a solution.
I have a scenario where I need to select a Result from a gallery with checkboxes, and based on the selected Result, calculate a corresponding date using a date picker field.
Previously, I was using a combo box to select the Result, and the date picker would calculate the date based on the selected Result. However, now the Result options are presented within a gallery, which also contains checkboxes for selection. The challenge I'm facing is how to deal with this new selection approach. I need that, when selecting an option in the gallery using the corresponding checkbox, some actions are performed:
The date must be calculated based on the selected Resultado (Deadline).
Here is the actual code I am using for the date calculation in the date picker field (DefaultDate):
If(
LookUp(ParametroAtosJudiciais;
PrazoDecorrenteAto = cmbAdvogadoRedatorVisualizacaoProcesso_5.Selected.Value;
aux
) <> 1 && LookUp(
DiasUteis;
Data >= dtDataPublicacaoVisualizacaoProcesso.SelectedDate
).DiaUtil = "Sim";
Last(FirstN(Filter(DiasUteis;
Data >= dtDataPublicacaoVisualizacaoProcesso.SelectedDate;
DiaUtil = "Sim"
); LookUp(
ParametroAtosJudiciais;
PrazoDecorrenteAto = cmbAdvogadoRedatorVisualizacaoProcesso_5.Selected.Value
).DiasUteis +1)).Data
)