You could combine your tags into a single expression tag:
max({tag1},
{tag2},
....
{tag24})
Then you can just worry about tracking the highest value of that over time.
You may also want to look into this module:
It's got some powerful tools that could make this a bit more efficient.
2 Likes