Working with Summary Data

If the measures columns in the source data contain summary data, the time-related column must indicate the time period for which the data is summarized. For example, assume that the SALESINVACT table contains measures columns SALES and COGS; a date-related column, TRANSDATE; and STATE and PRODCODE columns that categorize by sales date, state, and product code.

Table 13. TBC_MD Data in the SALESINVACT Table

STATE

PRODCODE

TRANSDATE

SALES

COGS

...

IL

100-10-C001-S0002-P001

Jan 4

2000

12:00AM

672.00

217.00

 

IL

100-10-C001-S0002-P001

Feb 4

2000

12:00AM

241.00

70.00

 

IL

100-10-C001-S0002-P001

Mar 3

2000

12:00AM

287.00

84.00

 

IL

100-10-C001-S0002-P001

Apr 7

2000

12:00AM

295.00

85.00

 

IL

100-10-C001-S0002-P001

May 3

2000

12:00AM

702.00

207.00

 
      

Each row in the SALESINVACT table summarizes product sales and costs for a particular date for customers from a particular state. A row can also summarize data by other periods; for example, by week.