Hello,
Could you help me to use this If( with with(
this is code
With(
If(
IsBlank(TextInput1.Text);
Sort(
Filter(
Nipon_P1;
'Estado docto'="Comprometido"
);
Numero_docto;
Descending
);
!IsBlank(TextInput1.Text);
Sort(
Filter(
Nipon_P1;
Numero_docto=(TextInput1.Text)
);
Ubicacion;
Descending
)
{
records:Nipon_P1
};
ForAll(
Sequence(CountRows(records));
Patch(
Last(
FirstN(records;Value));
{rowNumber: Value}
)
)
)
)
Solved! Go to Solution.
Hi @Richard95 ,
Something like this
With(
{
wList:
Sort(
Filter(
Nipon_P1;
'Estado docto' = "Comprometido" &&
(
IsBlank(TextInput1.Text) ||
Numero_docto = TextInput1.Text
)
);
If(
IsBlank(TextInput1.Text);
Ubicacion;
Numero_docto
);
Descending
)
},
ForAll(
Sequence(CountRows(wList));
Patch(
Last(
FirstN(
wList;
Value
)
);
{RowNumber: Value}
)
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi @Richard95 ,
Something like this
With(
{
wList:
Sort(
Filter(
Nipon_P1;
'Estado docto' = "Comprometido" &&
(
IsBlank(TextInput1.Text) ||
Numero_docto = TextInput1.Text
)
);
If(
IsBlank(TextInput1.Text);
Ubicacion;
Numero_docto
);
Descending
)
},
ForAll(
Sequence(CountRows(wList));
Patch(
Last(
FirstN(
wList;
Value
)
);
{RowNumber: Value}
)
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hello, thank you very much, it worked perfectly, I only made a few adjustments and it is fully operational
😄
User | Count |
---|---|
160 | |
84 | |
68 | |
64 | |
61 |
User | Count |
---|---|
207 | |
146 | |
95 | |
82 | |
66 |