Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Class function

I have the following chart:

Screen Shot 2016-03-21 at 23.33.54.png

Instead of having classes like 1970 - 1975, 1975 - 1980, 1980 - 1985 can this be changed to 1970 - 1974, 1975 - 1979, 1980 - 1985 which would be more meaningful than what the default class function provides.  I am using the following;

Screen Shot 2016-03-21 at 23.40.38.png

Regards

Chris

1 Solution

Accepted Solutions
maxgro
MVP
MVP

replace Year with your field

=Dual(

  subfield(class(Year, 5, 'x'), '<', 1) & ' - ' & (subfield(class(Year, 5, 'x'), '<', 1)+4)

  , 

  class(Year, 5, 'x')

  )

1.png

View solution in original post

4 Replies
maxgro
MVP
MVP

replace Year with your field

=Dual(

  subfield(class(Year, 5, 'x'), '<', 1) & ' - ' & (subfield(class(Year, 5, 'x'), '<', 1)+4)

  , 

  class(Year, 5, 'x')

  )

1.png

swuehl
MVP
MVP

Try something like

=Dual( floor(YearField,5,0) & '-' &Ceil(YearField,5,4), Floor(YearField,5,0) )

Anonymous
Not applicable
Author

MANY THANKS Maxgro that solved my problem

Anonymous
Not applicable
Author

Thank you Swuehl for your contribution