Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date, Week, Month, Quarter and Year data filtration.

Hi Team,

Need assistance for a requirement which is like below:

I want Day, Week, Month, Quarter, Year selection option in my chart.

If anyone select as date then the date calendar should populate and the user should be able to select one or more dates in the calendar, accordingly data should filter out and shown to user.

similarly on month selection, 12 months should populate and User can be able to select the desired month to view the data. Similar for Week, Quarter and Year.

Basically this requirement need to see the reports in daily, weekly, monthly, quarterly and yearly basis.


Please let me know how it could be possible to achieve or suggest any alternate way if we can do. Also suggest if this can be done by using some extensions.


Any suggestions and helps would be highly appreciated.


Thanks and Regards,

Ipsita

7 Replies
sagarkharpude
Creator III
Creator III

Create inline table for dimensions values like daily, weekly, monthly, quarterly and yearly. And in chart you can use ge fieldselection and dimension values.

jaumecf23
Creator III
Creator III

Maybe you need to create a MasterCalendar. Here you can find more information:

Understanding the Master Calendar (video)

jonathandienst
Partner - Champion III
Partner - Champion III

Assuming you have Day, Week, Month, Quarter, Year fields, and you are using this in bar chart, you could use alternate dimensions which will allow the user to interactively select the required dimension.  The user can select the relevant filters from a filter pane or the smart search option.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
umartareen
Creator II
Creator II

You can link your date field with the below script

******************************************************************************************************************

Let vFromDate = '01/01/2017';
Let vToDate = '31/12/2019';

Temp_Calendar:
LOAD
date('$(vFromDate)' + IterNo()-1) as Date
AutoGenerate 1 While ('$(vFromDate)' + IterNo()-1) <= '$(vToDate)';

Calendar:
Load Date,
Floor(Date) as LinkDate,
Year(Date) as Year,
Month(Date) as Month,
Week(Date) as Week,
WeekDay(Date) as Day,
Ceil(Num(Month(Date))/3) as Quarter
Resident Temp_Calendar;

DROP Table Temp_Calendar;

******************************************************************************************************************


Note: Variables "vFromDate" and "vToDate" must be min and max dates from your data respectively.

pawwy1415
Creator III
Creator III

Hi,

May be this. You can Try using QSVariable extension something like below. Please find the attached sample app.

http://branch.qlik.com/#!/project/56728f52d1e497241ae697f8

qs variable.png

Anonymous
Not applicable
Author

Thanks Kumar for the demo app.

Do I need to script anything more if I use the variable extension?

pawwy1415
Creator III
Creator III

Hi,

No need any script changes.