Hello
I am new to PowerApps and trying to patch using ForAll with a condition using If a value is greater than 0.
Here is part of my formula, I've tried several versions without success. Any help is appreciated.
ForAll(IncomeCollection, If(IncAmt.Value > 0), Patch(IncomeDetails, Defaults(IncomeDetails), {Income_Amount: IncAmt}))
Thanks
Adrian
Solved! Go to Solution.
Hi @adrianlochan ,
Change your formula as below:
ForAll(IncomeCollection, (If(IncAmt.Value> 0, Patch(IncomeDetails, Defaults(IncomeDetails), {Income_Amount: IncAmt})))
I hope this resolved your issue if you see any challenge let me know I am always happy to help.
Regards,
Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.
Proud to be a Super User!
Regards,Hello @KrishnaV Krishna,
Thanks for the reply, that was helpful.
However along with the If in brackets I found that for me I had to take out the .Value and it worked.
Hi @adrianlochan ,
Change your formula as below:
ForAll(IncomeCollection, (If(IncAmt.Value> 0, Patch(IncomeDetails, Defaults(IncomeDetails), {Income_Amount: IncAmt})))
I hope this resolved your issue if you see any challenge let me know I am always happy to help.
Regards,
Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.
Proud to be a Super User!
Regards,Hello @KrishnaV Krishna,
Thanks for the reply, that was helpful.
However along with the If in brackets I found that for me I had to take out the .Value and it worked.
User | Count |
---|---|
228 | |
103 | |
98 | |
57 | |
31 |
User | Count |
---|---|
283 | |
113 | |
107 | |
63 | |
63 |