Hi All, I have data in the below format returned through a function which inturn calls the stored procedure internally. aaaaa 555555 eeeee 44444 fffffffffff 222222 my query that i am using in ireport looks like this select rptcode,rptcount from table(presidents_FUNC('2009')).When i map this query in ireport and try building a pie chart i am getting one chart per record returned by the function.it is not summarising into single chart. how to solve this? Any help would be appreciated. Anjan