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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Year,Month and Quater filters not reflected in Graphs

Hi All,

The Below code has been currently using in my .qvw file and i have data in year from 2011 to 2014.

LOAD DISTINCT
Date as BG_DETECTION_DATE,Date,
Year(Date) as Year,
Month(Date) as Month,
Date(MonthStart(Date), 'MMMYY') as MonthYear,
if(monthstart(Date) <= $(vTodaysDate), 1, 0) as _History,
'Q' &
Ceil(Month(Date)/3) as Quarter,
Dual('Q' & Ceil(Month(Date)/3) & '-' & Year(Date), Year(Date) & Ceil(Month(Date)/3)) as QtrYear,
Week(Date) as Week,
Weekstart(Date) as Weekstart,
Weekend(Date) as Weekend
;
Load
Date($(vEndDate) - RecNo() +1) as Date
AutoGenerate($(NumberOfDays));

If i'm selecting Year ,Month, Quarter, its not filtered in my graphs even i added year column in Date as BG_DETECTION_DATE in Load.

What is wrong in my file?

How can i filter with the Year , Month and Quarter in my graphs?

Thanks in advance,

13 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

vEndDate value is : 41918.999999988

That's why your dates have time fractions:

comm155973.png

That's why they don't match with your  table.


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Ok, then how can i avoid this problem? what i have to change in my file?


Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Change your vEndDate value. Set it to 41918 or 41919.


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

thank you Gysbert Wassenaar and Awesome , my file working fine with filter.