Dear JiriPsota,
There are simply not enough words in my vocabulary for thanking you from the deepest part of my soul! I have been banging my head on this for (almost) ever, and you've given us the solution in a few hours!!!
Your mastery on SQL and Solarwinds is absolutely outstanding -if there's anything I can do for you a part of keeping on saying "thanks/gracias/grazie/merci/danke", please let me know!
I'll forward your reply to the 2 Solarwinds engineers who were not able to give me this solution over the course of several days and 2 tickets opened!
thanks, thanks again!