Shri G Posted August 18, 2022 Share Posted August 18, 2022 Instead of all quarters, i want to display last 3 quarters only like Q1,Q2,Q3, of 2022. Also in another chart i have to display data of last 3 months on X-axis Link to comment Share on other sites More sharing options...
Solution Fabian Duerr Posted August 18, 2022 Solution Share Posted August 18, 2022 To limit data only in certain visualizations I suggest to work with data limiting expressions. You can find this option in the properties of your visualization under "Data". A data limiting must always evaluate to TRUE or FALSE (boolean)For the last three quarters you could use:(YEAR(Max([DATE])) - YEAR([DATE]))*4 + (QUARTER(Max([DATE])) - QUARTER([DATE])) < 3For the last three months you would use:(YEAR(Max([DATE])) - YEAR([DATE]))*12 + (MONTH(Max([DATE])) - MONTH([DATE])) < 3Here, [DATE] is your date columnIf the reference date is not the last date in your dataset but today then replace Max([DATE]) with Today() Link to comment Share on other sites More sharing options...
Shri G Posted August 19, 2022 Author Share Posted August 19, 2022 Thank you so much Fabian Duerr 😊 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