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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
diptojyotidutta
Contributor II
Contributor II

How to create a range section for date or year in chart

Hi everyone,

I have a field "Year" in my dataset. What i want in my chart is that i want an option to choose the range of year where the user can set an initial year and a final year by themselves in order to get the relevant data in that period like sales or no.of champions in that period.

What must be the script/expression/chart/custom object for this purpose?

Regards,

Diptojyoti Dutta

1 Reply
Anil_Babu_Samineni
MVP
MVP

You may decide what range dates should be, As an Example

Load Dim1, Dim2, If(Year>Max(Year), 'Forecast Year', If(Year>=AddYears(Max(Year), -2) and Year<=Max(Year), 'Last 2 Years', ...)) as Flag_Self Resident Table Group By Dim1, Dim2;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful