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: 
Not applicable

Filter values from one column based on values from other two columns

Hi to All,

I have two tables:

One containing the day bay day sales:

IDClientDateSales
1Name11/15/201350
2Name12/15/2013100
3Name15/15/2013100
4Name17/15/201350

and one containing the targeted budgets by Client for different periods of time:

ClientBudgetStartDateEndDate
Name110002/1/20136/1/2013
Name220003/1/20138/1/2013

I need to create a chart having the dimension Client, Stard Date & EndDate and as expresion to calculate the SUM(Sales) restricted by the timeframe given by StartDate and EndDate of the trageted budget.

In above example, I need to get the sum for rows with ID 2 and 3 which has the Date between corresponding StardDate and EndDate from Client "Name1" (and so on for each client).

Do you know if there is a way to do that using Chart object?

Or I need to do this during loading script?

Thanks in advance

Laurentiu

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached example.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached example.


talk is cheap, supply exceeds demand
Not applicable
Author

Tks,

That's it. The Join in the script is "the one"