Showing results for 
Search instead for 
Did you mean: 
New Member

Subtract two labels

Hello all, i want to add the numbers in two labels and get the end in one label.


I want that every time i add quantity and press submit to add that number to the label on the stock page. I want to add them like it's 5 in quantity, it should add 5 with 7 and the result will be 12 where the 7 label is. Thank you in advance

Super User
Super User

I'm not sure I completely understand your question, so I'll offer a couple of suggestions:

You can reference the Text property of individual labels and do math by ensuring they are numbers with the Value() function: In the Text property of a third label, put a statement like such as

Value(Label1.Text) + Value(Label2.Text)


In your app, is the left-hand list of items part of a gallery control? If not, then it should be. The gallery would be tied to an underlying datasource through its Items property. If you make edits to the datasource, for example adding quantities, then those can be reflected in the gallery automatically.

Hope that helps,


Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,444)