Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello All,
I have below field where the data is commencing from 2010 till now.
My requirement is i have to show the data only for current year in this filter pane i.e it should show the dates starting from jan 2021 till the maximum. I don't know how to restrict this in filter pane.
Can anyone please help ?
Thanks in advance
Hey, could be something like this:
=AGGR({<INPUT_YEAR={"$(=MAX(INPUT_YEAR))"}>}MIN(INPUT_DATE),INPUT_DATE)
You would need to create a year dimension from INPUT_DATE for this.
Hi,
You can create a separate Currentyear date filed in the model and use the same field in the filter pane.
like below
'>=' & Date(YearStart(Max(Date)), 'MM/DD/YYYY') & '<=' & Date((Max(Date)), 'MM/DD/YYYY')
'>=' & Date(YearStart(Max(Date)), 'MM/DD/YYYY') & '<=' & Date((Max(Date)), 'MM/DD/YYYY')
This didn't worked in backend . Am i doing it correct ?
error - invalid expression
My script (before this just generated some dates):
Front-end: