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?
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