INTERACT FORUM

Please login or register.

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

Author Topic: Expression help - Grouping to "all" and "selected works"  (Read 1550 times)

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Expression help - Grouping to "all" and "selected works"
« on: July 02, 2017, 04:29:08 pm »

I'm trying to make expression field which would make two groups for artist:
first group would hold all the songs for the artist in question and
second group would show only best songs (based on amg picks for example)

I can make expression which groups to "best songs" and "the rest" but is it possible to somehow extend that "the rest" group to also include "best songs"?
Code: [Select]
If(IsEqual([AMG Track Pick,2],1),Best Songs, The Rest)
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Expression help - Grouping to "all" and "selected works"
« Reply #1 on: July 03, 2017, 07:59:04 am »

Sure.  You want a Search List, not an Expression.  Make a Search List category.  Then add two searches to it:  All, and Best.  All will have no criteria in the search.   It will just show all files.  Best will use your field above with a value of 1.

I just tried it with Rating as my criteria; rating of 5 is "best".  I got two groups, All, and Best.  All shows all, Best shows only 5 star songs.

Good luck!

Brian.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Expression help - Grouping to "all" and "selected works"
« Reply #2 on: July 03, 2017, 10:58:23 am »

Of course! I was probably too tired yesterday and therefore jammed myself to expression solution... Thanks Brian!
Logged
Pages: [1]   Go Up