Can TI refer to previous row's data during import?
Posted: Wed Nov 24, 2010 6:44 am
Hi all,
I received a source CSV file that reads something like this. Let's just say it contains only 2 rows:
Row 1: Store ABC, Sales Qty, Month1 Qty, Month2 Qty
Row 2: <blank>, Sales Amt, Month1 Amt, Month2 Amt
I'm trying to import Sales Qty and Amt for Store ABC into a cube. however, the application that generates the CSV file does not repeat the Store ID (Store ABC) for every row.
If it possible for TI, while processing Row 2 in Data tab, make reference to the same variable "Store" in the previous row? I'm thinking of creating a new variable that says something like "if vStore variable is blank, lookup vStore variable in the previous row". Hence, if one store has 5 rows of records, the next 4 rows after the first row with Store ID and be have something in the new variable.
Please advise.
Thanks!
I received a source CSV file that reads something like this. Let's just say it contains only 2 rows:
Row 1: Store ABC, Sales Qty, Month1 Qty, Month2 Qty
Row 2: <blank>, Sales Amt, Month1 Amt, Month2 Amt
I'm trying to import Sales Qty and Amt for Store ABC into a cube. however, the application that generates the CSV file does not repeat the Store ID (Store ABC) for every row.
If it possible for TI, while processing Row 2 in Data tab, make reference to the same variable "Store" in the previous row? I'm thinking of creating a new variable that says something like "if vStore variable is blank, lookup vStore variable in the previous row". Hence, if one store has 5 rows of records, the next 4 rows after the first row with Store ID and be have something in the new variable.
Please advise.
Thanks!