How to create a parameterized Pentaho report using PDI as DataSource

Posted on by By admin, in Pentaho | 0

In this blog, we are exploring How to create a parameterized Pentaho report using PDI as DataSource

1. Save the ktr file which we want to use in prd as an xml file.
2. Open the Pentaho report designer new report. Add the parameter in your report which is also a parameter of your ktr(here I have added OrganizationId as Parameter).

How to create a parameterized Pentaho report using PDI as DataSource

3. Then add the xml file in resources(File->Resources)

How to create a parameterized Pentaho report using PDI as DataSource

4. Import the xml file, give an Entry name and save as text/xml file.
5. In datasource select Pentaho Data Integration and add query, give file as your Entry name i.e, refer above picture (here I have given entry name as ktrsavedasxmlfile)

How to create a parameterized Pentaho report using PDI as DataSource

How to create a parameterized Pentaho report using PDI as DataSource

6. Select the output step of ktr here(here my output file is table input) and in edit parameters, give your parameter name value =[Parameter_name] (here =[OrganizationId]) and click ok

How to create a parameterized Pentaho report using PDI as DataSource

7. Preview the data and fields will appear, use these fields and create your report.

Thank You
Soni Sammani
Helical IT Solutions

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments