Jump to content
We've recently updated our Privacy Statement, available here ×

Jaspersoft Studio how to switch rows and columns


gfiehler

Recommended Posts

I am calling a stored procedure that returns a table something like

Col header 1Col Header 2Col Header 3
row header 1value 1value 2
row header 2value 3value 4

My report should look like

                        Row Header 1         Row Header 2

Col Header 2     value 1                     value 3 

Col Header 3      value 3                     value 4

 

basically switched rows and columns.  the actual data has 30+ columns and 3 rows returned.  so I need 30 plus rows and 3 columns in my output.

I have put the report fields in the summary section, but all I can access is the first row of data.  Is there a way to handle this situation, or does the stored proc need to return the data differently?

 

Thanks for any assistance

Gregg

 

 

 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Thank you for your reponses.  I am now working with a Crossbtab but do not understand how this will solve the issue.

Working with my table above in the crosstab I set the column group to "Col Header 1" field, This seems to give me my dynamic columns based on Col Header 1 values.  But after that I am in the dark.  I have no row groups, all columns are equal and there are no calculations, I just need to display the field data horizontally instead of vertically.  Please let me know if I am missing something.  

On another track, I tried to a regular table and use the Horizontal layout, but that made no difference to the report at all.

Any help is always greatly appreciated.

 

Gregg

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...