Anthony stark Posted September 25, 2019 Share Posted September 25, 2019 Hi Guys, I have a line chart that is limited to show the previous 6 months of data with " [Date] >= dateadd('mm',-6,DateTimeNow()) ". The problem is that it only shows the data from the first day of the current month instead of the current day of data (today's date). It basically shows the last 6 months of data ending at the first day of this month, instead of ending on todays date. How do i modify this to show the current day of data as the last point in the line chart, instead of the first day of the current month Thanks in advance Link to comment Share on other sites More sharing options...
Shashank Gurnalkar Posted September 26, 2019 Share Posted September 26, 2019 It seems to be working for me. I used this expression in the category axis: If([Date]>=dateadd("mm",-6,DateTimeNow()),[Date]) I am attaching the sample analysis file with embedded data. If this does not answer your question, it would be helpful if you can share your analysis file with embedded data. Link to comment Share on other sites More sharing options...
Anthony stark Posted September 26, 2019 Author Share Posted September 26, 2019 Hi Shashank to limit the date with that expression i get the "The expression musthave type "Boolean' error. I am unable to open thedxp file due to different versions 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