Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6793 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted (edited)

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
  • 2 months later...
  • 4 weeks later...
Posted

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

This topic is 6793 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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