Hi Jiri,
To be honest I used SQL to begin, and then did some debugging by observing how the canned NCM Console specific reports are built. That way I managed to create the reports I needed (in this case for devices not backed up in X days or ever). I found out that the structure of the report file is slightly different, and that made it a bit tricky.
If you guys are interested in the reports, I could upload them here.
Thanks,
Alex