Topic Options
#103 - 06/24/99 12:07 PM Re: QRW Date Ranges
Softrak Support Offline

Adagio Action Team

Registered: 03/09/99
Posts: 11317
Loc: Vancouver, BC Canada
Hi Richard,

As you know, you can create a formula for each column, where if the month and year match specific criteria, then output the amount, else zero. To show any of the previous months, you have to use 'date math' to calculate how many months previous to 'today' was the transaction created.

To do this, create a formula to calculate the difference (eg. call it MonthDiff):

((Year(Today)-Year(TransDate}))*12)+Month(Today)-Month(TransDate)

Thus, if a transaction was 3 months prior to 'todays date', then the result would be 3.

Then, for each of the columns, the syntax would be:

If MonthDiff = 1 then amount else 0

to print the column for the previous month, etc.


Top
#104 - 06/24/99 12:07 PM Re: QRW Date Ranges
Softrak Support Offline

Adagio Action Team

Registered: 03/09/99
Posts: 11317
Loc: Vancouver, BC Canada
Hi Richard,

As you know, you can create a formula for each column, where if the month and year match specific criteria, then output the amount, else zero. To show any of the previous months, you have to use 'date math' to calculate how many months previous to 'today' was the transaction created.

To do this, create a formula to calculate the difference (eg. call it MonthDiff):

((Year(Today)-Year(TransDate}))*12)+Month(Today)-Month(TransDate)

Thus, if a transaction was 3 months prior to 'todays date', then the result would be 3.

Then, for each of the columns, the syntax would be:

If MonthDiff = 1 then amount else 0

to print the column for the previous month, etc.


Top


Moderator:  Christa_Meissner 
Who's Online
0 registered (), 35 Guests and 1 Spider online.
Key: Admin, Global Mod, Mod
Forum Stats
1847 Members
5 Forums
14239 Topics
69728 Posts

Max Online: 359 @ 11/18/19 09:08 PM
May
Su M Tu W Th F Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31