Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
qv_testing
Specialist II
Specialist II

Restrict Years

Hi All,

I want to restrict years front end (UI)..

i have many years like 2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024

In my chart i have to show only 2015,2016,2017,2018,2019,2020

I have Gantt Chart... this is my expression   Max(EndDate) - Min(StartDate)

Thanks in Advance....

1 Solution

Accepted Solutions
Kushal_Chawda

Please see the attached

View solution in original post

9 Replies
swuehl
MVP
MVP

Maybe using a set Expression

Max( {<Year = {">=2015<=2020"}>} EndDate) - Min({<Year = {">=2015<=2020"}>} EndDate)

qv_testing
Specialist II
Specialist II
Author

Thanks for Quick response..

I want to  show 2012 to 2016 years only..

PFA,

Kushal_Chawda

Please see the attached

Not applicable

Hi Qv_Testing

Do you mean to only show cases started in those years on your Gantt chart? If so, one option would be to add a calculated dimension to your chart, to replace years outside your range with nulls, then suppress null. (See the attached, also with a list box showing Year(StartDate) ).

I believe you'd get better performance if you can calculate 'Year(StartDate) AS StartYear' as part of your load script, so you don't have to keep calculating that on the fly.

Does that answer your query?

qv_testing
Specialist II
Specialist II
Author

ThanX Kush...

qv_testing
Specialist II
Specialist II
Author

Hi All,

Thanks EveryOne..

My problem is reference line it should be after 2015 year

My scale also it should be unique years, that's why i have mentioned static step 365 days..

Please anyone can help me?????

qv_testing
Specialist II
Specialist II
Author

HI Kush,

How to set reference line..??

Anyone face reference line issue.. Please help me

Kushal_Chawda

where you want the reference line?

qv_testing
Specialist II
Specialist II
Author

in chart..

i used in Presentation tab--> reference line

exp  today()

but in my chart reference line it showing before 2015 year... i want to show after 2015 (it should be after 2015)