Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Balance for specific year

Featured Replies

There're 2 tables:

- 'Years' contains 2 years (for example)

- 'Sum for Year' contains a fild with Numbers.

And a summary fild -- Total of all these Numbers.

And of course there's relation between these tables.

The task is:

to get Total (in 'Sum for Year') for the Found Set 'Year'=2005 (f.ex.) in 'Years'

I'm a novice & cannot find any information how to organize this operation.

Thanks.

test.zip

I think this is what you wanted.

test.zip

  • Author

Thanks a lot, Breezer!

But the stucture was changed -- I think I didn't describe the problem sufficiently.

Years were: 2005, 2006, 200_5_

(These are invoices; invoice dates, not a list of years). Now that's a list of 3 years: 2005, 2006, 2007

The idea was: based on an invoice year/date (in 'Years' containing many invoices (Names, Origin, etc.), f.ex. 2005, to select/find operations in 'Sum for Year' for these invoices/year & to get a sum for this period.

Edited by Guest

  • Author

Thanks, Breezer!

Based on your solution, I decided the problem.

My version is attached.

test.zip

Edited by Guest

  • 2 months later...

Can we use this to calculate previous month's total and use it as balance bring forward for the next month ? How do we do it in this case?

  • 4 weeks later...

Anyone can help me on this ?

Yes, but the Search1 field should contain complete dates that should be joined via less or equal operator in the relations def.

We should instead have a relational leg more in the fork, the keyfield definitions could be made like this...

1) previous month startdate:

Date ( Month ( Get ( CurrentDate ) ) -1; 1 ; Year ( Get ( CurrentDate ) ) )

2) previous month end date:

Date ( Month ( Get ( CurrentDate ) ) ; 0 ; Year ( Get ( CurrentDate ) ) )

--sd

Thanks SD for helping. But I still don't get the way you mentioned to implement it into my solution. What I need is shown in the file I attached.

balance.zip

Edited by Guest

Anyone can help me on this ? Thanks in advance. Sorry for the double post since I am desperately need solution for this matter.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.