Like I've said before, the first version of the Sales Report attempted this, and I took it out when I took over the project because it simply didn't work well. But I'm looking forward to seeing what solution you might come up with.
A few things you'll want to keep in mind:
- Attributes currently have no associated quantity, so you'll need to do your own counting.
- How will you handle text attributes? Remember that they are often completely different values (hence no counting).
- You'll probably want to ignore file upload and read-only attributes, but only if they do not have a currency value associated with them.