Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all
I need to count the number of customers over the time, in Load Script
but i need to create a new field with their number of visit added together
for better explanation i attached the xls with data and expected output
please suggest
Use the Expression in Chart if you want in load
Then
FACT:
LOAD Customer_ID,
Date
FROM
(ooxml, embedded labels, table is Data);
left join(FACT)
Load Customer_ID,
Count(Customer_ID)
Resident FACT
GROUP BY Customer_ID;
how is 12347 = 8 , when you only have 5 rows of data for each customer, can you explain in detail?
12347 | 12/1/2016 | 8 |
12347 | 12/2/2016 | 8 |
12347 | 12/3/2016 | 8 |
12347 | 12/4/2016 | 8 |
12347 | 12/5/2016 | 8 |
12347 | 12/6/2016 | 8 |
12347 | 12/7/2016 | 8 |
12347 | 12/8/2016 | 8 |
Hi,
In your specified .xls file have only 5 records for all three customers.
am i relevent to your expected output?
--surendra
Anyways, you can use below
count(TOTAL Date)
Hi
please download the book1 again
i changed it
yes it is relevent
try
count(TOTAL Date)
Hi
In Load Script
Use the Expression in Chart if you want in load
Then
FACT:
LOAD Customer_ID,
Date
FROM
(ooxml, embedded labels, table is Data);
left join(FACT)
Load Customer_ID,
Count(Customer_ID)
Resident FACT
GROUP BY Customer_ID;