INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Nesting Decades in panes?  (Read 1757 times)

locust

  • Citizen of the Universe
  • *****
  • Posts: 699
Nesting Decades in panes?
« 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
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: Nesting Decades in panes?
« Reply #1 on: November 14, 2011, 10:47:21 pm »

FormatDate([Date, 0], Decade)\[Year]&DataType=[List]
Logged

locust

  • Citizen of the Universe
  • *****
  • Posts: 699
Re: Nesting Decades in panes?
« Reply #2 on: November 14, 2011, 10:49:48 pm »

Cheers, mate  :)

One step closer to a perfect setup  ;D
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Nesting Decades in panes?
« Reply #3 on: November 14, 2011, 11:17:43 pm »

Rick's expression is nicer, but here's one using the basic format you used, and deals with Unassigned Years:
Code: [Select]
if(isempty([Year]), Unassigned,
                   listbuild(1, \, removeright([Year], 1)0's, 'removeleft([Year], 2)&datatype=[list])</nobbc>
Logged
The opinions I express represent my own folly.

locust

  • Citizen of the Universe
  • *****
  • Posts: 699
Re: Nesting Decades in panes?
« Reply #4 on: November 14, 2011, 11:41:10 pm »

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   :)
Logged

MarkCoutinho

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 676
Re: Nesting Decades in panes?
« Reply #5 on: November 15, 2011, 04:00:04 am »

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!
Logged
Mark Coutinho
Dutch Top 40 collector of lyrics, sleeves and bios

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: Nesting Decades in panes?
« Reply #6 on: November 15, 2011, 04:36:12 am »

I'd be lost without them...
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72444
  • Where did I put my teeth?
Re: Nesting Decades in panes?
« Reply #7 on: November 15, 2011, 07:33:22 am »

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.
Logged
Pages: [1]   Go Up