Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Current and Previous values in UI

     Dear Guys,

Need help with the below requirement in UI.

a) Current values are the maximum values in table.

b) For previous values I need a option in UI to compare with current date and limit provided. (For eg: if I select 15, previous value should be compared between max date to 15th of that particular month)

Input:

NameRow IDEmployee IDlast_modified_date_timeSLAOTD
A442231/10/2017 23:45
B442215/11/2017 16:38green
C442214/11/2017 17:32green3
D442215/11/2017 17:34green3
E442215/11/2017 17:36green3
F442217/11/2017 17:39red3
G442222/11/2017 12:34red3

Output:

        

Row IDNameprev_perfrocurr perfprev_control_statuscurrent_control statuschanged dateprev chagened date
44Ggreenred3322/11/2017 12:34

15/11/2017 17:3

Note:

17 Replies
sunny_talwar

This is def. doable using set analysis, but how are you providing the limit? Is this via an input box?

Anonymous
Not applicable
Author

Dear Sunny

Yes input will be provided via input box. Also the last modified date must be looked against Row ID and Employee ID (i.e Unique Row ID and Employee ID)

Thanks for your help.

sunny_talwar

Like the attached

Capture.PNG

Anonymous
Not applicable
Author

Hi Sunny,

Yes Exactly. Can you share me the file please.

sunny_talwar

It is already attached above

Anonymous
Not applicable
Author

Hi Sunny, I can see Image alone. Can you please share the qvw file ?

Anonymous
Not applicable
Author

Thanks Sunny.

Have checked the file. It has current selections populated as per the date selected in list box. May be I am not clear with my requirement here.

Please find below in detail.

  • Key=Row ID+Employee ID
  • Only Columns with Previous (i.e. Previous OTD and Previous last_modified_date_time) must be picked from previous values, other column values must be current values.
  • The output tables must be shown for selected month only. Here Nov 2017 is selected. So record with 31/10/2017 23:45 is not populated in output table.

Source:


    

NameRow IDEmployee IDlast_modified_date_timeSLAOTDFPRPriority
A742231/10/2017 23:45Yes1
B442215/11/2017 16:38greenYes2
C442214/11/2017 17:32green3Yes1
H114417/11/2017 17:32red4No1
E332315/11/2017 17:39green3Yes2
E442215/11/2017 17:38green1No3
E442215/11/2017 17:36red3No2
F332317/11/2017 17:39red3No1
G442222/11/2017 12:34red3No2
H114425/11/2017 12:34green4No1

Output Table (vInput=15):


      

Row IDNameEmployee IDPrevious SLACurrent SLAPrevious OTDCurrent OTDCurrent last_modified_date_timePrevious
last_modified_date_time
FPRPriority
44G22greenred1322/11/2017 12:3415/11/2017 17:38No3
33F23greenred3317/11/2017 17:3915/11/2017 17:39No1
11H44redgreen4425/11/2017 12:3417/11/2017 17:32No1

Output Table (vInput=17):


        

Row IDNameEmployee IDPrevious SLACurrent SLAPrevious OTDCurrent OTDCurrent last_modified_date_timePrevious
last_modified_date_time
FPRPriority
44G22greenred 322/11/2017 12:34 No3
33F23greenred 317/11/2017 17:39 No1
11H44redgreen4425/11/2017 12:3417/11/2017 17:32No

1

Anonymous
Not applicable
Author

Dear Sunny, Any help or suggestions on this please.