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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Creating Date filters

I have data associated with Date in the table as below.

  Date IDAmount
319961100
319962200
619963300
619964400
619965500

I want to give From Date & To Date Filter separately as below, So that If I select the below combination I should get all the data available(for this combination) from above table.

If I'm using master calendar, the dates are converting to MM/DD/YYYY format.  But I want the date format(MMYYYY) to be displayed as it is in filters.

I don't want to use cartesian join to frame From and To Date filters considering the data size.

Is there any other alternative ?

Thanks in Advance.

8 Replies
prma7799
Master III
Master III

Please share some sample data..

Sergey_Shuklin
Specialist
Specialist

Hello, Sri B!

I think this should help: what is alternate states in Qlikview ?

Anonymous
Not applicable
Author

This is the sample data set. If I want to get the data associated with filter selections(only for 031995, 031996) what would be the approach ?

If I want to get the range (between 031995 to 031996) what is the approach ?

DateIDAmount
031995610
031995620
0919951010
1219951120
0319961100
0319962200
0619963300
0619964400
0619965500
0919961200
0919962300
1219967200
1219967300
09201510100
12201510100

LOAD Date(Date#(Date,'MMYYYY'),'MMYYYY') as Date, ID,Amount Inline [

Date ID Amount

031995 6 10

031995 6 20

091995 10 10

121995 11 20

031996 1 100

031996 2 200

061996 3 300

061996 4 400

061996 5 500

091996 1 200

091996 2 300

121996 7 200

121996 7 300

092015 10 100

122015 10 100

] (delimiter is spaces);

Anonymous
Not applicable
Author

Thanks Sergey. thats quick reply. I will check.

antoniotiman
Master III
Master III

Hi,

see Attachment.

Regards,

Antonio

Anonymous
Not applicable
Author

Hi Antonio,

It is giving the selections on date range. Values are getting aggregated on 'ID' column. However I have to display all rows without aggregation on ID (ID is based on Date). For the same selection expected output should be:

  

DateIDAmount
0319961100
0319962200
0619963300
0619964400
0619965500
0919961200
0919962300
1219967500

Also If I want specific rows alone (without range) for Date selections, how I can frame date filter. Output on above selections should be

DateIDAmount
0319961100
0319962200
1219967200
1219967300

Thanks.

antoniotiman
Master III
Master III

See Attachment

Anonymous
Not applicable
Author

One more question, I am already displaying set of data (Incurred till date) using the below condition using input box filters.

=num(sum({<Year={'>=$(=vStartYear)<=$(=vEndYear)'}>}[Amount]),'$#,##0')


How do I Incorporate above used Alternate states concept on existing condition-
sum({<Date={'>=$(=Min({Date1} Date))<=$(=Max({Date2} Date))'}>} Amount)


Here I have two filters, 1st is inputbox filters for ITD range.

                                 2nd is Listbox filters with Alternate states (for filter selections within above filter range).


For Eg:  I'm displaying ITD range Amount column using    sum(Year= {>=(1990)<=(2000)}[Amount])

within this selection I want to show  sum({<Date={'>=031996<=121996'}>}[Amount]).


Finally I should be able to see Amount values for this range >=031996<=121996.


is it possible in qlikview ? or any other approach ?


rwunderlichdigvijayatkinsowswuehljaganmarcus_sommer