Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Filtering yrs of data and sales person

Hi,

I'm a newbie, I'm trying to figure out how to

•        Read only the current 3 years of data using a variable

•        Read only salesmen (all employees who have sales) from Employees table

See attached my first attempt.

Thanks

Cheers


2 Replies
hic
Former Employee
Former Employee

You could for instance do:

Let vToday = Num( Today() );

Transactions:
Load
TransactionDate,
SalesManID as EmployeeID,

resident TransactionTable
Where TransactionDate >= AddMonths($(vToday), -36) ;

Salesmen:
Left Keep (Transactions)
Load
EmployeeID,

resident Employees ;

Not applicable
Author

Hi Hendric,

Thanks you so much.  I'm going to try it out.

Cheers

Rash