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 / Can you help me with t...
Power Apps
Unanswered

Can you help me with the logic?

(0) ShareShare
ReportReport
Posted on by 6,048 Super User 2024 Season 1

q22.jpg

I am making a bookkeeping app.

4 List.

Budget

Expense

Projected Income

Actual Income.

Every time i create an entry weather it is an actual expense or projected income or any of the list.

You have to select Company, Year, Month. That way i can create a Dashboard where i display all this values in one gallery. By matching Company, Year, Month. This all works fine.

 

The logic i am struggling with is:

 

Closing Balance of Current Month = Opening Balance of Current Month + Profit of Current Month

Opening Balance of Current Month = Closing Balance of Previous Month.

 

Actual income and Actual Expense entries will be done on daily basis. So according to that closing balance should change. But at the end of the month how to do i make closing balance of current month as opening balance of next month.

I am not sure how to make columns for that.

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @zmansuri 

    Your logic is correct in your formula for closing and opening.  

    You don't need to make closing the opening or the other way around.  If you are filtering by Company, Year, Month, then your calculations should be based on that.

    What is it that you are struggling with?

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    It's a circular reference. I had no choice but to enter last month's closing

    Closing Balance of Current Month = Opening Balance of Current Month + Profit of Current Month

    Opening Balance of Current Month = Closing Balance of Previous Month.

     

    I had no choice but, manually patch last month's closing balance as opening balance of current month. It should be done automatically

    q23.jpg

     

    I am entering expenses and income on a daily basis. When the month change how do i tell the gallery that you have to take previous month's closing balance as your opening balance.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @zmansuri 

    How did you get a circular reference?  What are some of the formulas you are using?  It should all be done in the formulas.  The only challenge will be deriving the opening balance of each month as that implies the total of all data prior to the open of the month.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard