cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
thomas3241
New Member

How to collect from gallery with quantity

Hi, I am trying to develop a cost estimator apps whereby I can key in the part number and then select the quantity I want to add before I add it into my collection. This is what it looks like currently:

image.png

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
My "Add" Button is having this formula:
image.png
 
 
However, it turns out that the collection become like this. All the items is collected, but the quantity is at another column. 
image.png
 
 
 
 
 
 
 
Can anyone suggest how to make the quantity to be added in at the same column as the item that I collected?
1 ACCEPTED SOLUTION

Accepted Solutions
Carsten_Growth
Power Apps
Power Apps


My "Add" Button is having this formula:
image.png
 

ThisItem looks wrong to me in you formula.
It should be something like Collect(MyCollection, {Des: ThisItem.Des, PN: ThisItem.PN, Price: ThisItem.Price, ID: ThisItem.ID, Qty:_MyVariable})

 

View solution in original post

2 REPLIES 2
Carsten_Growth
Power Apps
Power Apps


My "Add" Button is having this formula:
image.png
 

ThisItem looks wrong to me in you formula.
It should be something like Collect(MyCollection, {Des: ThisItem.Des, PN: ThisItem.PN, Price: ThisItem.Price, ID: ThisItem.ID, Qty:_MyVariable})

 

View solution in original post

Thanks a lot @Carsten_Growth!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,701)