Our product is starting to get lots of requests for custom reports from our customers. I've taken some steps to really stream line the creation of the reports and exporting reports to PDF / XLS format. This has really helped and most reports can be created fairly quickly with a very full feature set.
The other day I began thinking about giving users the power to create their own filters essentially creating their own queries through a UI. This isn't so bad because our framework, CakePHP, stores all the relations to the data and its easy to build on top of this.
The tricky part is striking a balance between usability and power. A concern of mine is that this sort of thing might be too complex to our non-techie customer base. Have you done something like this before? Do you have any great examples? How did you handle (or why did you not handle) complex things like: OR, AND, NOT IN, IN, <, >, BETWEEN etc... Specifically I'm interested in your thoughts on building an intuitive and beautiful UI.
Basically, we used a single piece of software's single feature as our reference, for describing it to others and for how to handle the experience.
iTunes Smart Playlists. (https://www.evernote.com/shard/s136/sh/7f5f39a1-6c85-4853-aa...)
I have yet to see a better interface (than iTunes) for building what are essentially custom queries.