Generating multiple crosstabs dynamically - jasper-reports

How can we generate multiple crosstabs from one crosstab design in iReport? So there will be specified number of crosstabs and each crosstab will be filled with different values.

Related

Parallel Detail Sections in Crystal Report?

I want to know that how to make a crystal report such that its details section should display values of details in multiple/parallel fashion depending upon its column value.
Suppose that my data-set for report is as follows,
I want to group by my report on Id and want to display their Value in detail section so that if value is positive then it should display in left side and if it is negative then it should display in right side. But these two sides should be "Parallel" in display like this
Currently if I suppress a field on some condition then it remains blank or when I do "Format with Multiple Columns" then also the required result is not possible. Because In multiple columns option, it is not necessary that my positive's & negatives columns are equal in count, and there is chance to display positive values in negative side.
Since there is no logical connection to enforce what values should be on the same row, you probably need to implement this as 2 subreports placed side by side. One to show negative values and one to show positive values.
The subreports would be placed in the Group Footer for ID and would be linked on ID.

How to use Grand total for multiple column in tableau

I have one table with three columns say c1,c2 and c3. I want to show grant total for all three columns. I have tried but grand total's logic was working only with column and not for three column.
So is there any way to do so..
If all three columns are measures then you should be able to just go to Analysis->Totals->Show Column Grand Totals.
Or are you also trying to count a dimension? Your question is not very clear.

SSRS Dataset Rendering

I have created a stored procedure where its columns can change names and the number of columns fluctuate as well. Is there a way to auto generate the report in SSRS depending on the result set. My main concern is to output from 3 columns to lets say 10 columns. Any assistance would be greatly appreciated. Thank you.
You can toggle the visibility of columns using the Column Visibility in conjunction with some parameter you define for control flow. It is a bit more difficult to do column wise shifting then row shifting, as with groups. Another thought would be to look into column grouping. In SSRS you can simulate the PIVOT command using column groups.
You can use the matrix, which will show the number of columns as they are generated.
Include (Drag from DATASETS) your data in DATA and the field (dynamic column) in columns.
Hope this helps you.

Creating an extra slice in pie chart in crystal report

I have a SQL which counts the number of rows. Say the result is 80.
I would like to have a parameter that is user-input, to be the total. Lets say the user enters 100.
How would I use the two numbers, 80 and 100, to create a pie chart that shows the data takes up 80% of the total?
I cannot find a way to add custom slice in a pie chart in Crystal Report, is it even possible?
Thanks!
Your best bet may be to stick your SQL in a stored procedure then pass the crystal parameter to the sproc to generate the "dummy" slice.
You can add multiple items to your chart.
Create a formula that calculates the difference between your measured value and your total. In your case this would be total_rows_entered_by_user - number_of_rows. Add the number of rows and the formula to the chart:

Displaying multiple columns / dataset rows per detail section

I need to create a report where each page contains four columns. I initialy had them as subreports but I guess they dont need to be.
How do I make it so each entry in a supplied dataset is represented as a column? Say if I had a dataset with 6 rows, the report would span two pages with four columns on the first and two on the second.
In other horizontal reports I had one dataset row represented as a row in the detail section of the report. But now I need four dataset set rows for each detail section, as the detail section contains four columns.
Guess what I really am looking for is a vertical detail section, sort of, while retaining the rest of the report horizontal.
I suggest using a Crosstab - these are the Crystal equivalent of pivot tables in Excel, or matrixes in SSRS.