INTERACT FORUM

Please login or register.

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

Author Topic: Year/month structure view help  (Read 149 times)

subway33

  • Recent member
  • *
  • Posts: 24
Year/month structure view help
« on: April 11, 2025, 08:40:50 am »

Can someone help me build this view? Within this structure, I would like to see the months of the year in their correct form. After several attempts to create the expression, I was unable to succeed.

Thanks in advance.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2942
Re: Year/month structure view help
« Reply #1 on: April 11, 2025, 01:56:53 pm »

Try:
Code: [Select]
formatDate([Date Imported, 0], year)\formatDate([Date Imported, 0], month)\[Artist, 1] - [ Album]&datatype=[list]
Logged

subway33

  • Recent member
  • *
  • Posts: 24
Re: Year/month structure view help
« Reply #2 on: April 11, 2025, 02:07:19 pm »

Thank you Zbex for your prompt help.

It seems that it is almost there, the order of the months is alphabetical, instead of the order of the months of the year.

Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2942
Re: Year/month structure view help
« Reply #3 on: April 11, 2025, 02:29:36 pm »

For that you need to add the expression in 3 separate Categories instead of adding a single category with the full expression.

Category 1:
- name = Anos
- Group by = formatDate([Date Imported, 0], year)

Category 2:
- name = Meses
- Group by = formatDate([Date Imported, 0], MM)
- display = formatDate([Date Imported, 0], Month)

Category 3:
- Name = Albums
- group by = [Artist, 1] - [ Album]
Logged

subway33

  • Recent member
  • *
  • Posts: 24
Re: Year/month structure view help
« Reply #4 on: Yesterday at 04:40:49 am »

Awesome Zybex!
Thanks for putting me in the right direction.
Very grateful as always. 8)
Logged
Pages: [1]   Go Up