- The report has the dollar sales for 1998 in the column under 'Dollar Sales'. This is created with the following Structured Query Language (SQL) code:
create table ZZTEE006V77MD000 (
Category_Id LONG,
DOLLARSALES DOUBLE)
insert into ZZTEE006V77MD000
select a11. AS Category_Id,
sum(a11.) as DOLLARSALES
from a11
where a11. in (1998)
group by a11.
- The report also shows the dollar sales for the same time last year in the column under 'Last Years Dollar Sales'. This is created with the following SQL (note the change in the where clause):
create table ZZTEE006V77MD001 (
Category_Id LONG,
LASTYEARSDOL DOUBLE)
insert into ZZTEE006V77MD001
select a11. AS Category_Id,
sum(a11.) as LASTYEARSDOL
from a11,
a12
where a11. = (a12. - 1)
and a12. in (1998)
group by a11.
A transformation metric is useful in showing change over the course of time. For example, it can be used to display change in sales from year-to-year or change in sales from the current day to the same day last year.