# MAX function?

**URL:** https://community.mp3tag.de/t/max-function/8998
**Category:** Support
**Created:** [September 21, 2009, 3:16pm UTC](https://community.mp3tag.de/t/max-function/8998 "2009-09-21T15:16:12Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![pilaar39](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/4bbf92/32.png) [@pilaar39](https://community.mp3tag.de/u/pilaar39)
#### Post date: [September 21, 2009, 3:16pm UTC](https://community.mp3tag.de/t/max-function/8998/1 "2009-09-21T15:16:12Z")

</div>

I want to use Mp3tag to automatically change the file name according to the track number.

Currently, I use the Tag-\>Filename tool in this manner:  
%artist% - %album% - $num(%track%,2)-14  
but first changing the last number, in this case 14, to the maximum number of tracks in the sequence.

Is there a way I can simply interrogate the Track Seq for the largest value, and use it in the formula - sort of like a $max(%track%) ?

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [September 21, 2009, 3:24pm UTC](https://community.mp3tag.de/t/max-function/8998/2 "2009-09-21T15:24:58Z")

</div>

%\_total\_files% returns the number of currently selected files.

---

<div class="post-metadata">

### Author: ![pilaar39](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/4bbf92/32.png) [@pilaar39](https://community.mp3tag.de/u/pilaar39)
#### Post date: [September 21, 2009, 3:31pm UTC](https://community.mp3tag.de/t/max-function/8998/3 "2009-09-21T15:31:47Z")

</div>

Excellent!! Exactly what I wanted.. Thanks!!!

btw.. I have been checking my profile settings, and notice that I have an old email address registered with this account, but I cannot see anywhere to update it. Suggestions?

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [September 21, 2009, 3:36pm UTC](https://community.mp3tag.de/t/max-function/8998/4 "2009-09-21T15:36:45Z")

</div>

You must click on "My Controls" and on the bottom left side there is "Change email address"  
Or just click this [link](http://forums.mp3tag.de/index.php?act=UserCP&CODE=08)

---

<div class="post-metadata">

### Author: ![pilaar39](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/4bbf92/32.png) [@pilaar39](https://community.mp3tag.de/u/pilaar39)
#### Post date: [September 21, 2009, 3:43pm UTC](https://community.mp3tag.de/t/max-function/8998/5 "2009-09-21T15:43:41Z")

</div>

Thanks.. don't know why I could not see that myself before.. guess the old eyes are going..

---

<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: [February 9, 2026, 12:21pm UTC](https://community.mp3tag.de/t/max-function/8998/6 "2026-02-09T12:21:48Z")

</div>


