malak rihaili Posted February 1, 2021 Share Posted February 1, 2021 Hello everyone, i wanted to ask how to do a text filter that shows the data for the last one year from the date chosen like if I entered Jun 2019 it will show the data from Jun 2018 to Jun 2019 your help is appreciated:) Link to comment Share on other sites More sharing options...
Gaia Paolini Posted February 1, 2021 Share Posted February 1, 2021 I am not sure what you mean by text filter, but you could 1) define your start date as document property say ${mindate} of type Date 2) use 'Limit data using expression' in the Data tab of your visualization properties, using this expression: Integer(DateDiff('day',DocumentProperty("mindate"),[YourDate])) >=0 and Integer(DateDiff('day',DateAdd('year',1,DocumentProperty("mindate")),[YourDate])) Link to comment Share on other sites More sharing options...
malak rihaili Posted February 2, 2021 Author Share Posted February 2, 2021 thank you for your respoonse, and by text filter I meant that the user can choose the date and then the data displayed will be for the last one year so in the filters panel there will be a filter for thedate and when I type 1/8/2016 for example, it will show all the data from 1/8/2015 to 1/8/2016 hope I'm clear ;) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now