cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
oappdev Post Patron
Post Patron

Sum Value is not showing correctly in collections

Happy Friday!

 

I was able to get the

"$" & Sum(Quantity*Price)

To Sum up Quantity & Price in Gallery. But is not doing the same in the collections

Patch(PitneyBowesCollection,Defaults(PitneyBowesCollection),{Category: CategoryDrp.SelectedText.Result},{SubCategory: SubCategoryDrp.SelectedText.Result},{ProductName: ProductNameDrp.SelectedText.Result},{Item: TextInput5.Text},{Quantity: TextInput_Quantity.Text},{Price:Value(TextInput1.Text)});Reset(CategoryDrp);Reset(SubCategoryDrp);Reset(ProductNameDrp);Reset(TextInput_Quantity);

What l'm i missing?

 

 

Capture.PNGCollections.PNG

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Sum Value is not showing correctly in collections

Hi @oappdev 

 

This is patching the same first entry twice, that's why the price is showing the same, it's taking all of the values from the first item in the gallery rather than separate ones - you will need to use ForAll to patch for each of the rows within the gallery.

 

Could you try this and let me know whether that works for you?

 

Thanks,

Sancho


@iAm_ManCat

Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

5 REPLIES 5
Super User
Super User

Re: Sum Value is not showing correctly in collections

Hi @oappdev 

 

This is patching the same first entry twice, that's why the price is showing the same, it's taking all of the values from the first item in the gallery rather than separate ones - you will need to use ForAll to patch for each of the rows within the gallery.

 

Could you try this and let me know whether that works for you?

 

Thanks,

Sancho


@iAm_ManCat

Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

oappdev Post Patron
Post Patron

Re: Sum Value is not showing correctly in collections

Thank you @iAm_ManCat  will give it a try and circle back

oappdev Post Patron
Post Patron

Re: Sum Value is not showing correctly in collections

Got it working 🙂 @iAm_ManCat Working.PNG

Super User
Super User

Re: Sum Value is not showing correctly in collections

Excellent, glad I could help @oappdev  😺


@iAm_ManCat

Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


oappdev Post Patron
Post Patron

Re: Sum Value is not showing correctly in collections

@iAm_ManCat Thank you so much! i have another issue that i will be posting shortly. This PowerApps will be use by 500+ users

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (7,560)