Sony Hejmady Posted January 9, 2019 Share Posted January 9, 2019 I have a requirement where I have a column Period of type "String" which has Year and Months data as seen below.For example the below value 1708=2017 year and 08= August Month. Period (String type) --------- 1708 1709 1801 1802 1803 1804 1810 1811 1812 1901 I need to see last 6 months record in line chart. I tried with following expression which works but every time when records keeps piling I need to manually update the Month data.Please help. String("1807") Link to comment Share on other sites More sharing options...
Gaia Paolini Posted January 9, 2019 Share Posted January 9, 2019 Hi Try this:compare the current year and month with the year and month in the period: Logical formula: 12*(YearNow-YearPeriod) + (MonthNow-MonthPeriod) This worked for me,either as a calculated column, or an expression to limit the line chart by: (12 * (Integer(TERR_String("output Link to comment Share on other sites More sharing options...
Sony Hejmady Posted January 11, 2019 Author Share Posted January 11, 2019 Thank You Gaia :) 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