# Filter for finding track number differences

**URL:** <https://community.mp3tag.de/t/filter-for-finding-track-number-differences/61280>\
**Category:** Support\
**Created:** [June 15, 2023, 11:42pm UTC](https://community.mp3tag.de/t/filter-for-finding-track-number-differences/61280 "2023-06-15T23:42:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DTW](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/5f9b8f/32.png) [@DTW](https://community.mp3tag.de/u/DTW)\
**Post date:** [June 15, 2023, 11:42pm UTC](https://community.mp3tag.de/t/filter-for-finding-track-number-differences/61280/1 "2023-06-15T23:42:29Z")

</div>

I am looking to find a filter to highlight any difference between the track number and the track number in the Filename if possible please?.  
I have notice a few tracks where there is a difference and just wanted to check my whole DB to highlight those that are a problem.  
just as an example:

```
         Filename Track # Title

```

11 Led Zeppelin - Good Times Bad Times.flac 01/09 Good Times Bad Times

Thanks

---

<div class="post-metadata">

**Author:** ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)\
**Post date:** [June 16, 2023, 1:34am UTC](https://community.mp3tag.de/t/filter-for-finding-track-number-differences/61280/2 "2023-06-16T01:34:43Z")

</div>

> [@DTW](#):
>
> I am looking to find a filter to highlight any difference between the track number and the track number in the Filename if possible please?

This should work, including both for single and 2-digit track numbers in both the filename and title.

`"$if($eql($num($left(%_filename%,2),2),$num($left(%track%,2),2)),yes,no)" IS no`

---

<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:** [June 16, 2023, 5:47am UTC](https://community.mp3tag.de/t/filter-for-finding-track-number-differences/61280/3 "2023-06-16T05:47:41Z")

</div>

Just as a speciality in this case as both strings start with a number:  
`"$ifgreater($strstr($num(%_filename%,2),$num(%track%,2)),0,Yes,no)`" IS no

---

<div class="post-metadata">

**Author:** ![DTW](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/5f9b8f/32.png) [@DTW](https://community.mp3tag.de/u/DTW)\
**Post date:** [June 16, 2023, 8:01am UTC](https://community.mp3tag.de/t/filter-for-finding-track-number-differences/61280/4 "2023-06-16T08:01:28Z")

</div>

Many thanks to you both for helping me.  
That worked well.  
It identified 221 tracks out of more than 130000 that needed to be corrected.  
Thanks again 🙂

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [July 16, 2023, 8:02am UTC](https://community.mp3tag.de/t/filter-for-finding-track-number-differences/61280/5 "2023-07-16T08:02:04Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
