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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (46,619)