Adding column to existing pentaho reports -


i pretty new pentaho tool. have existing *.prpt generates excel report file me. need add new column it. guys suggest me way it.

thanks in advance

note :- these assumption.

after open *.prpt file in pentaho report designer. in right side data tab click tab , check data sets , expand one. below image show sample structure of data sets. in image query 1 main report data source open query 1 data source paste sql1 in there , press ok button. after drag , drop column1, column2, column3 report designer in details header. after save prpt file show result below sql1 output.

enter image description here

   sql1:- select column1, column2, column3 table_name                -------------------------------     output:-  | column1 | column2 | column3 |               -------------------------------               | 1       | 12      | 13      |               -------------------------------               | 2       | 22      | 23      |               ------------------------------- 

=> now, want add first 1 more column report. copy sql2 , paste in copied sql1 , remove sql1 , paste sql2.

   sql2:- select column1, column2, column3, column4 table_name                -----------------------------------------     output:-  | column1 | column2 | column3 | column4 |               -----------------------------------------               | 1       | 12      | 13      | 14      |               -----------------------------------------               | 2       | 22      | 23      | 24      |               ----------------------------------------- 

that's added column prpt file.

i think these information useful you. still have doubts fell free ask.

another simple solution change sql convenient ways , drag , drop column in details.

thank you.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -