Hello I´ve found following code for using subDataset in Charts. This Code is working without the parameter. My Question now is, how to pass the parameter to the JRXmlDataSource. Thanks very much mic Code:<lineChart><chart>...</chart><categoryDataset><dataset> <datasetRun subDataset="Parameter"> <datasetParameter name="param"> <datasetParameterExpression></datasetParameterExpression> </datasetParameter> <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRXmlDataSource(new java.io.File("C:\\test.xml"), "/test[@id='$P{param}']/tested")]]> </dataSourceExpression> </datasetRun></dataset>