Sorting the report in birt - sorting

I have created a column binding in a report(datetime column) using birt.
The datetime value that the column binding fetches based on the value of another string type column.
Now when I'm sorting the report based on the column binding, the result that I'm getting is initially sorted on the basis of the string column and then on the basis of the column binding.
I want the report to be sorted only on the basis of column binding (datetime) value.

Related

DAX Measure: True/False for selected column names

How to write measure that could filter Matrix based on True values in selected column names?
Example (download):
Estimated result: want to see only rows with Football = True
P.S. Field parameters are used to create slicer with column names
You'll need to fix this in the data model by introducing a Customer_Sport linking table with bi-directional cross-filtering to Customer.

Display columns dynamically in a BI Publisher report based on the parameter value selected

The report has AR balance amount which is bucketed by days (0-30 days,30-60 days, etc)
The requirement is to have a parameter for Bucket and the values should be 180+,210+,240+
When 180+ is selected for the parameter, the report should display columns
0-30,30-60,60-90,90-120,120-150,150-180,180+
When 210+ is selected for the parameter, the report should display columns
0-30,30-60,60-90,90-120,120-150,150-180,180-210,210+
When 240+ is selected for the parameter, the report should display columns
0-30,30-60,60-90,90-120,120-150,150-180,180-210,210-240,240+
I know how to populate the amount into diff buckets but not sure how to dynamically control bucketing based on the parameter value selected.

Oracle Reports (6i): Get difference of two items from two different queries (Multi Query Report)

I have an Oracle 6i report with Two Complex Queries (Q1 and Q2) connected by Data Link. The report was developed by some other developer who is not available now. Multiple columns are being displayed in report.
Q1 has a column Total_Issuance and Q2 has a column Total_Consumption. I have to display their difference on report. I am using a formula column to get the difference and then binding a display field to this formula column to show on report.
But since the formula column is outside both the queries, I am getting following errors.
REP-1517: Coloumn 'CF_1' references column 'Total_Issuance', which has incompatible frequency.
REP-1517: Coloumn 'CF_1' references column 'Total_Consumption', which has incompatible frequency.
Just like the formula column is outside both queries, create two additional summary columns (outside of both queries):
cs_tot_iss, which will sum total_issuance
cs_tot_con, which will sum total_consumption
Now modify formula column so that its source are newly created summary columns, e.g. let it
return :cs_tot_iss + :cs_tot_con;
As of paper layout: you don't have to display cs_tot_iss nor cs_tot_con (as you already have those values via total_issuance and total_consumption), just add formula column.
Create a new calculated field to the query that is the detail query (I asume it's Q2).
In this calculated field you can simply use:
return :Total_Issuance - :Total_Consumption;
to calculate the difference.

SSRS - Calculated field using column from other DataSet in Matrix (cross-tab)

I have several DataSets in an SSRS report. How can I use a summed matrix (crosstab) column from one DataSet in a formula of another DataSet with the same data fields (just different selection criteria (categories differ)). When I specify that field in the other DataSet, it only gives me First every time (I did not use First()); it does not automatically move them with the crosstabs in the second DataSet.
You cannot do this in SSRS 2008. This capability is first available in SSRS 2008 R2. Depending on how you use the data in the report layout, you might be able to use the ReportItems collection to get a value. For example, you can use the contents of Textbox1 with a field in a different dataset (field called MyColumn1) in an expression like this:
=ReportItems!Textbox1.Value + Fields!MyColumn1.Value
The ReportItems collection uses the value of a textbox after the page is rendered, so you get the result only and not the raw data so you'd have to be using raw data.

Use an Aggregate function in Sort Expression

I have a report which uses a dataset returned from a stored procedure. There are two key columns: Name and Value
I am using this dataset for two tablixes. The first is just a straightforward tablix displaying the data.
The second groups the data based on a Name column. I need to order this data based on the Sum of Value column
However I get the following error:
[rsAggregateInDataRowSortExpression] A
sort expression for the tablix
'table1' includes an aggregate
function. Aggregate functions cannot
be used in data row sort expressions.
Is there another way I can show the data grouped by name and still order it by Sum(Value)?
Instead of sorting on the tablix you need to sort against the row group. Remove the sort on the tablix and then go to the row group properties and put the same sort expression under the sorting section there, this should then work.
OK, I just had to add an extra column for the the Sum value to my query and then use that. Not ideal, but it works

Resources