on 10-20-2008 6:15 PM
I have to create a report that compares (side-to-side) data from this year and last year. The data is located in only one table and I have to create three more formula fields to calculate the variance. Any ideas?
Hi Daniela Firmino
This can be done using group :
Example :
If your table contains : part, qty,date fields then
--Create a group on Part
--create a Date Parameter to get from date and to date
--Write a formula to get last year the qty like ..
numbervar x;
if date>=dateadd('y',-1 fromdate) and date<=dateadd('y',-1 todate) then
x:=x+qtr
x;
--Write a formula to get current year qty
numbervar y;
if date>=fromdate and date<= todate then
y:=y+qtr
y;
--Now create a variation between two
Place all fromulas on your group footer and suppress detail line.
Thanks,
Sastry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.