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 / User Spending Control
Power Apps
Unanswered

User Spending Control

(0) ShareShare
ReportReport
Posted on by 521

Hi 

 

I would like to control user spending example I have a list in SharePoint which holds all users & called UserDataBase and in the list there is a fields, Credit Limit & Credit Used,
I would like to monitor via another list which is called LoanList in SharePoint so when I try to issue a loan by entering a value Field called Amount I need to check what's the credit limit for user and how much they spend also if the limit reached or I enter greater than the available to warm me for example if they request $100 and they already spend $90 the system to check and tell me the difference and left credit limit like $10 available

 

Thanks 

Categories:
I have the same question (0)
  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @PowerApps11 ,

    Just On Select Property of Button.

    Use LookUp/Filter Record from Loan List and Add the Filter Criteria by User/Email with Collection.
    Like - LookUp(UserDatabase,Lower(Email) = Lower(TextInput1.Text)).
    Then userCollectionName.UsedLimit+EnterdLimit is grater then CreditLimit then Display Error Message.

    Hope the Explanation help you to resolve your Issue.

    Thanks,
    Vijay


     

  • PowerApps11 Profile Picture
    521 on at

    Hi @VijayTailor 

    I don’t how to do that can you help with formula 

    @WarrenBelz  can you assist please thanks 

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

    @PowerApps11 ,

    I think @VijayTailor has it under control - you just need to share the code you have written for review and possible correction.

    I will add one small thing - you can use this to avoid the case sensitivity issue (StartsWith is not case sensitive and also serves the purpose of matching partial input)

    LookUp(
     UserDatabase,
     StartsWith(
     Email,
     TextInput1.Text
     )
    )

     

  • PowerApps11 Profile Picture
    521 on at

    Hi @WarrenBelz 

    thank you for accepting my tag , I don’t check an email I check via user Id but that I have fixed no problems. My problem how can I patch back to the list the calculations user credit limit and used credit at moment I am not near computer but I can supply the code I try when I get to computer later on can you give a example please 

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard