Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
rajkumarb
Creator II
Creator II

Count the Customers

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

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

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;

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

7 Replies
vinieme12
Champion III
Champion III

how is 12347 = 8  , when you only have 5 rows of data for each customer, can you explain in detail?

   

1234712/1/20168
1234712/2/20168
1234712/3/20168
1234712/4/20168
1234712/5/20168
1234712/6/20168
1234712/7/20168
1234712/8/20168
Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
surendraj
Specialist
Specialist

Hi,

In your specified .xls file have only 5 records for all three customers.

i.png

am i relevent to your expected output?

--surendra

vinieme12
Champion III
Champion III

Anyways, you can use below

count(TOTAL Date)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
rajkumarb
Creator II
Creator II
Author

Hi

please download the book1 again

i changed it

yes it is relevent

vinieme12
Champion III
Champion III

try

count(TOTAL Date)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
rajkumarb
Creator II
Creator II
Author

Hi

In Load Script

vinieme12
Champion III
Champion III

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;

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.