Topic Options
#627 - 07/13/00 12:30 PM Variables and QR6.2B for Windows
Anonymous
Unregistered


Is it possible to declare a date range as a variable? I have divided my report both annually and by month. What I want to do is compare the most recent fiscal period to the previous comparable fiscal period (fiscal year to date '01 vs. fiscal year to date '00 of a comparable period).

This is what I have tried to do:
datevar fy00;
fy00 := ({IH61C Header information.Invoice date} in date (1999, 03, 01) to date (2000, 02, 29));
datevar fy01;
fy01 := ({IH61C Header information.Invoice date} in date (2000, 03, 01) to date (2001, 02, 28))
but I keep getting an error message that it expects a date.

Is what I am trying to do possible at all?

Thanks,

David M. Concannon


Top
#628 - 07/13/00 03:01 PM Re: Variables and QR6.2B for Windows
Softrak Support Offline

Adagio Action Team

Registered: 03/09/99
Posts: 11549
Loc: Vancouver, BC Canada
Hello,


The date range that you are trying to use cannot be placed in a variable. Variables can only have one piece of data for the range.

You will need to create a formula for the date ranges you want on your report.

I have created a similar report using a formula and no errors were found. Here is an example of the formula:

if {AR61A Historical Customer Transactions.Document date} in Date (2000,03,01) to Date (2001,02,28)
then {AR61A Historical Customer Transactions.Original amount} else 0;

if {AR61A Historical Customer Transactions.Document date} in Date (1999,03,01) to Date (2000,02,29)
then {AR61A Historical Customer Transactions.Original amount} else 0


Top


Moderator:  Christa_Meissner 
Who's Online
3 registered (Carol Wojick, 2 invisible), 59 Guests and 0 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
1865 Members
5 Forums
14467 Topics
70661 Posts

Max Online: 432 @ 01/20/25 10:17 PM
April
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