Hi, I have some issues with figuring out the patching formula so any help would be appreciated!
I have a table (named Projects) in excel which I connected to a gallery.
This is the example table:
| Company | Project | Finished? |
| A | One | |
| A | Two | |
| B | Three | |
| B | Five | |
| B | Four | |
| B | Six | |
| C | Eight | |
| C | Ten | |
| C | Nine | |
And I have a Gallery (named GalleryCompany) which shows the items A and B.
I want to make a button that would patch all of the Projects under company A or B, depending on which one is selected in the GalleryComapany. That means if I select the C (Title1 of GalleryCompany) in the list and click the button, the projects Eight, Nine and Ten should get a "Yes" Tag in the Finished? column.
This is the code I've been trying to apply but without success:
ForAll(Projects.Project,
Patch(Projects, LookUp(Projects, Company = Title1.Text),
{Finshed?: "Yes"}
))
EDIT: I also tried with this but the same happens (just the first value gets updated):
ForAll(Projects.Project,
Patch(Projects, LookUp(Projects, Company = GalleryCompany.Selected.Result),
{Finshed?: "Yes"}
))
Only the first record (Eight) gets tagged. I also tried with the UpdateIf formula but that didn't write anything. I also tried changing the ForAll source to the gallery but didn't get anything.
Any suggestions or help would be great! I am still very new and learning the ropes of PowerApps 🙂
Thank you in advance!