INTERACT FORUM
More => Old Versions => Media Center 17 => Topic started by: locust on November 14, 2011, 09:58:18 pm
-
Is there a more elegant way to nest decades than this? Maybe one that isn't so expression intensive.. I'm trying to optimise my views and don't want to over burden my view schemes with any unessential labour intensive expressions..
listbuild(1,\,removeright(formatrange([Year],10,2),5)'s,removeleft([Year],3))&datatype=[list]
Thanks
-
FormatDate([Date, 0], Decade)\[Year]&DataType=[List]
-
Cheers, mate :)
One step closer to a perfect setup ;D
-
Rick's expression is nicer, but here's one using the basic format you used, and deals with Unassigned Years:
if(isempty([Year]), Unassigned,
listbuild(1, \, removeright([Year], 1)0's, 'removeleft([Year], 2)&datatype=[list])</nobbc>
-
That was along the lines I was going for, I think Rick expression will be less intensive on the cpu though.
I'm not really bothered about my expressions checking if there is a value.. I've got a custom scheme that is setup specifically for tag maintenance. I like to keep that stuff separate from my main view schemes.
Thanks anyway, it's cool so see multiple ways of doing the same thing :)
-
Forgive me, but as I'm Dutch I don't understand the meaning of 'to nest decades'. I think it might be of interest to me too, so can someone describe or 'translate' the meaning of this?
Thanks!
-
I'd be lost without them...
-
Forgive me, but as I'm Dutch I don't understand the meaning of 'to nest decades'. I think it might be of interest to me too, so can someone describe or 'translate' the meaning of this?
Nested means something like "contained within". Explorer has folders nested within folders, for example.
Decades are the 1960's, 1970's, etc.