Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Simple selection question

Hi,

I am wondering if you can assist with, what I think is a small issue.

I have the following related QlikView "tables"

targets.jpg

I wish to create a simple chart where the dimension is "SalesPersonName" (from the "SalesPersons" table) and the 2 expressions are:

Sales: =sum(if(OrderDate = MasterDate, SalesQty))  where "OrderDate" is the date in the Sales table (out of view above) and "MasteDate" is my date in the calendar that I use to display date choices.

Targets: =sum(if(SPTargetDate = MasterDate, SPTarget)) where "SPTargetDate" is the date in the SalesPersonsTargets table

The above works fine and I would typically get:

Salesperson
Sales
Targets
Andrew1015
Ben2022
Charles05
David110
Edward2220

The above is OK but I want to restrict it to list SalesPersonst that have targets ONLY so "David" in the above example should not be displayed.

Anybody have any quick suggestions?

Thanx

Rok

1 Solution

Accepted Solutions
Not applicable
Author

Try doing for sales this:

If(sum(if(SPTargetDate = MasterDate, SPTarget))=0,0,sum(if(OrderDate = MasterDate, SalesQty)) )

View solution in original post

2 Replies
Not applicable
Author

Try doing for sales this:

If(sum(if(SPTargetDate = MasterDate, SPTarget))=0,0,sum(if(OrderDate = MasterDate, SalesQty)) )

Not applicable
Author

Excellent - thanx for your help (and in record time too!)

Rok