web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Please can some help m...
Power Apps
Unanswered

Please can some help me with this, am trying to increase the quantity of 1 item but all end up increasing

(0) ShareShare
ReportReport
Posted on by 20

Screenshot (6).pngScreenshot (7).pngScreenshot (8).pngScreenshot (9).png

Categories:
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    What is the formula that you are using?

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

    Thanks!
    Hardit Bhatia
    The Power Addict
    https://thepoweraddict.com
  • damilola79 Profile Picture
    20 on at

    For + button:Set(Slider,Slider + 1),

    for - button:  Set(Slider,Slider - 1)

    Where the "Slider " is the default value of the slider element.

  • WarrenBelz Profile Picture
    156,754 Most Valuable Professional on at

    Hi @damilola79
    They are in a gallery so ThisItem selects the current record - and you also need to reset the slider so use a variable
    For + button

    UpdateContext({vSlider:ThisItem.Slider + 1});
    Reset(Slider)

    for - button<

    UpdateContext({vSlider:ThisItem.Slider - 1});
    Reset(Slider)

    On the Default of Slider

    If(
     !IsBlank(vSlider) && ThisItem.IsSelected
     vSlider,
     Parent.Default
    )

    Finally on screen entry and exit, clean up the Variable

    UpdateContext({vSlider:Blank()})

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up. 

  • damilola79 Profile Picture
    20 on at

    Please can u explain cause am getting errors with code you provided

  • WarrenBelz Profile Picture
    156,754 Most Valuable Professional on at

    Hi @damilola79 ,

    Can you please send me the code (in text) you are getting the error from and also a screenshot of what you are doing.

    Also, could you please tag me in your post - it is a lot easier to see in my feed.

  • damilola79 Profile Picture
    20 on at

    Solved the issue

     

  • WarrenBelz Profile Picture
    156,754 Most Valuable Professional on at

    Thanks @damilola79 ,

    If my solution guided you, please consider Accept as Solution as it helps others find it more easily and also closes the item.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard