Qlik Community

Ask a Question

New to QlikView

If you’re new to QlikView, start with this Discussion Board and get up-to-speed quickly.

Talk to Experts Tuesday, January 26th at 10AM EST: Qlik Sense. REGISTER NOW
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to track Sales based on customer-specific dates


I would like to be able to track the sales of those customers who have purchased one specific product "X" with one extra condition:. only all those customer-specific sales that exist during the same day as the purchase of the product "X" should be taken into account.

The expression below illustrates what I would like to track. I know that Customer&Date combination does not work like it is used below, but if did, the expression below would give me what I am looking for. In other words, I am looking the overall sales of Customer&Date combinations that have purchased this product X.  


Could someone be able to help me? Thank you already in advance!

3 Replies
Not applicable


Check with this function

which explains the Trace function as follows:


The trace statement writes string to the Script Execution Progress window and to the script log file, when used.

The syntax is:

trace string


trace Main table loaded;

trace $(MyMessage);

See the Examples here

  QlikView Addict: QlikView TRACE Statement

Not applicable

Thank you, but I forgot to mention that I would like be able to do this in the expression with already ready dimensions without the need to change any script. "Customer", "date" and "Sales" already exist so I would like to be able to do this in expression using the existing ones. Do you think it is possible?


HI LazuPets,

Can you post a sample QVW?