Could you please post the query that you are currently using to retrieve the data? From the info that you've provided it's not even possible to tell if you're retrieving data from a regular relational SQL DB or from an OLAP cube...
With the extra info I'll try to help you out!