# Suggestion: allow filter on tracklist values please

**URL:** https://community.mp3tag.de/t/suggestion-allow-filter-on-tracklist-values-please/15638
**Category:** General Discussion
**Created:** [April 9, 2014, 11:30am UTC](https://community.mp3tag.de/t/suggestion-allow-filter-on-tracklist-values-please/15638 "2014-04-09T11:30:13Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [April 9, 2014, 11:30am UTC](https://community.mp3tag.de/t/suggestion-allow-filter-on-tracklist-values-please/15638/1 "2014-04-09T11:30:13Z")

</div>

I would like to be able to filter on any values I see in the tracklist. E.g. I have a computed column "status" and I would like to filter: **status IS ok**. Thanks.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [April 9, 2014, 12:09pm UTC](https://community.mp3tag.de/t/suggestion-allow-filter-on-tracklist-values-please/15638/2 "2014-04-09T12:09:53Z")

</div>

You can do that if you copy the computation expression from the column definition and paste it as filter expression.  
Using an arbitrary column header would lead to the necessity to only allow unique labels for columns.

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [April 9, 2014, 12:30pm UTC](https://community.mp3tag.de/t/suggestion-allow-filter-on-tracklist-values-please/15638/3 "2014-04-09T12:30:56Z")

</div>

> [@ohrenkino](#):
>
> You can do that if you copy the computation expression from the column definition and paste it as filter expression.

Like this?

> [@ohrenkino](#):
>
> Using an arbitrary column header would lead to the necessity to only allow unique labels for columns.

Not at all. It would lead only to filtering being unavailable on the rare column names that are duplicates.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [April 9, 2014, 1:13pm UTC](https://community.mp3tag.de/t/suggestion-allow-filter-on-tracklist-values-please/15638/4 "2014-04-09T13:13:48Z")

</div>

> [@chrisjj](#):
>
> Like this?

Yes.

> [@](#):
>
> Not at all. It would lead only to filtering being unavailable on the rare column names that are duplicates.

Which is not quite "not at all".  
It would also apply to user-defined fields which may have the same name as one of the columns and then you cannot even filter for the files that might have the field of that name as filtering would be disabled.  
If you allowed filtering then it is not really clear which data would lead to hits.  
An algorithm that automatically renames columns to make them unique again would probably be irritating.  
So, from my point of view such a function would produce more hassle than ease of use.  
Although copying and pasting may be a little cumbersome, it at least is not ambiguous.

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [April 9, 2014, 1:35pm UTC](https://community.mp3tag.de/t/suggestion-allow-filter-on-tracklist-values-please/15638/5 "2014-04-09T13:35:09Z")

</div>

> [@ohrenkino](#):
>
> Yes.

Than any idea why that example is failing?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [April 9, 2014, 1:49pm UTC](https://community.mp3tag.de/t/suggestion-allow-filter-on-tracklist-values-please/15638/6 "2014-04-09T13:49:16Z")

</div>

> [@chrisjj](#):
>
> Than any idea why that example is failing?

To few inverted commas?  
Try a

"$if ...." IS "ok"

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [April 9, 2014, 2:13pm UTC](https://community.mp3tag.de/t/suggestion-allow-filter-on-tracklist-values-please/15638/7 "2014-04-09T14:13:33Z")

</div>

Thanks. It seems the first two quotes are needed, and the second two not.

And if there quotes in the expression, it fails.

I think the user should not have to mess about in this way just to filter on what is already shown.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [April 9, 2014, 2:46pm UTC](https://community.mp3tag.de/t/suggestion-allow-filter-on-tracklist-values-please/15638/8 "2014-04-09T14:46:22Z")

</div>

> [@chrisjj](#):
>
> ...  
> I think the user should not have to mess about in this way just to filter on what is already shown.

You can use the filter also for criteria that are in fields that are not shown.  
To use displayed data you have the option to sort by one or more columns.  
If you write the computed data to a user-defined field, you can easily apply a filter that is as short as the one you mentioned in the first post.  
The difference is that data in fields is more or less a constant string, while the computed result only exists at runtime. And this has to be computed every time

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [April 9, 2014, 3:04pm UTC](https://community.mp3tag.de/t/suggestion-allow-filter-on-tracklist-values-please/15638/9 "2014-04-09T15:04:12Z")

</div>

> [@ohrenkino](#):
>
> You can use the filter also for criteria that are in fields that are not shown.

Sure I am not suggesting that be changed.

> [@ohrenkino](#):
>
> To use displayed data you have the option to sort by one or more columns.

That's no substitute for a filter. Especially when viewing thousands of tracks.

> [@ohrenkino](#):
>
> If you write the computed data to a user-defined field. The difference is that data in fields is more or less a constant string, while the computed result only exists at runtime. And this has to be computed every time

I'll pass thanks, because the other difference is that it takes about 100x more time to write that data to the files than to compute and display it. And I have to rewrite it every time an input field might change. I don't want display-only data embedded in my music files.
