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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
ecabanas
Creator II
Creator II

How Could I do this ratio?

I have this example table:

SalesId   CustomerID   date

1             A                   jan-12

2             B                   Jan-12

3             C                   Jan-12

4             A                   Feb-12

I want to know the number of salesId which has ben bough two times

count({<SUM(count(SalesID))>=3>} CustomerID)

thank's to all

Labels (1)
13 Replies
Not applicable

create new text object and in text  write

=Count(SalesID)

you dont need to filter

see the attached image

ecabanas
Creator II
Creator II
Author

Hi Fahad,

Thank you for your compiled example, but oone question, what is the "RepeatedTime" in the function?

it does not calculate correctly

Not applicable

Hi,

The "RepeatedTime" is the field Name which calculates the number of time the customer has purchased.

It is a new filed created in the Script.

for example CustomerID = "A" has made 4 purchases, the script counts and stores it in the field "RepeatedTime" for all the instanses  of CustomerID = "A" in data.

You could look into the script..

Thanks


ecabanas
Creator II
Creator II
Author

You are the ONE!!!

Thank's!!! if you come to Barcelona you are invited to a beer 🙂