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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

As on Date Employee

Hi All,

I have got anodr Problem & need all your help.:-)

I have attached a Excel File where in i have got Employee name at any given point of time & have got star date & end date & sale amt.

If i select as on any date (as mentioned in the attached Excel file in second Tab "Required Output") i should get the output as given in the attached excel file "Second Sheet".

.

I should be ablt to get the name of the employee as on that day on a runtime if the Dates are not mentioned then i should get the blank but the amount should be get displayed in the report.

Need your suggestion to over come this problem.. 🙂

Rgds,

Srini

2 Replies
Not applicable
Author

The input data looks smthng like this..

Emp IDStart DateEnd DateAs on Date Slaes Peron NameSales
100023901-Jan-201131-Jan-2011Srini100
100023901-Feb-201128-Feb-2011Manish100
100023901-Mar-201131-Dec-4712Sachin100
1000239200

As on date is a Auto generated Date or a Input Box Value "Date Paramter".

Note** the Last Row without a Sales Peron name, Start /date & End Date is not there in the Data.. Its a correction & m placing the new Excel file now..

rgds,

Srini

Not applicable
Author

Hi All,

I am able to achieve this by using a Variable

=aggr(max(if(START_DATE <= AsOnMonthEndDate,START_DATE)),EmpID)

here AsonMonthEndDate is a Autogenerated Date Filed & it gives me the Max Date as ondate which i select & use this Value in a Calculated Dimension as below

=if(START_DATE = Abov_Variable_Value,Emp Name)

But one more problem if in case i have EmpID;s where in i dont have any start Date & End Date but i want to display those records as well..

Any suggestions how to achieve that..wil b of gr8 Help

As i have mentioned in the above thread

Rgds,

Srini