Telerik Forums
Reporting Forum
1 answer
387 views

I'm trying to compute the difference between two columns in a crosstab.

 The columns are generated based on a year value in the data source (spanning the last 5 years) and the field values are counts of the number of items in the data set that fall in the given year. I'm trying to add a column at the end which shows the increase/decrease in the counts between two of those columns (the first year in the 5-year period and the last year in the 5-year period). Since I don't know what the values of those years are, I need to determine those at runtime. (See ASCII example below)

Is there an easy way to do this? I've created a report parameter based on a stored procedure which gets me the value of the last year and then I calculate 5 years back from there but it doesn't seem like a very elegant solution.

Thanks,

Chris N

 

2011  2012  2013  2014  2015  5Y Increase

------------------------------------------------------------

3        4         3        6         10     7

Stef
Telerik team
 answered on 26 Oct 2015
1 answer
61 views

olá! Tenho uma consulta no mysql que faz uma contagem da quantidade de inscrições. Mais no relatório está contando todos os itens da cosulta sem aplicar o filtro. Exemplo: 

SELECT
d.department,  
COUNT(d.cod_department) AS total_professionals

FROM department d
INNER JOIN professionals p ON d.cod_department = p.cod_department

where d.cod_business = 1

GROUP BY d.department 
ORDER BY d.department; 

 

run in mysql it returns:

cod_business      department         total_professionals
1                          department 1      32
1                          department 2      10
1                          department 3      15

no relatório substituindo a clausula where pelos filtros, é gerado o seguinte:

cod_business      department         total_professionals
1                          department 1      ​50
1                          department 2      ​70
1                          department 3      ​20​

 

the report returns the company departments '1', but makes the count in all businesses.

the filter is not being applied in the count.​

Stef
Telerik team
 answered on 23 Oct 2015
3 answers
963 views
I am generating a report in which i want to hide some row if it is blank. I am using conditional formatting. I have unchecked visible check-box. So it supposed to be hidden if condition match.
when i try to change the background color of the row, it works. But with the same condition if i try to hide the row (by unchecking VISIBLE checkbox) it do not hide the row.
Why is this happening.
I am using Telerik Reporting Version: 4.2.10.1130

Reply as soon as possible.
Stef
Telerik team
 answered on 23 Oct 2015
4 answers
214 views

I've applied both grouping and a filtering rule to my table. If one of the elements in a group is rejected by the filter, the entire group is rejected. It appears as if Report Designer filters out every entry in a group if any entry doesn't meet the filtering criteria.

Has anyone run into this problem before? Is there any way to filter data before grouping it?

Saba
Top achievements
Rank 1
 answered on 22 Oct 2015
1 answer
298 views

I created my reports into a library class Project but i don't know how show that report in the report viewer in my asp.net app.

 

I added the library class Project in the references and System.ServiceModel , i want to do it programately.

 

thank you

Stef
Telerik team
 answered on 22 Oct 2015
1 answer
384 views

Hi, 

 

We are looking for a reporting tool (in ASP.NET MVC) which can generate reports on the fly based on the selected input parameters. 

In the model class i will have a list<list<string> which will contain the data to be binded to the report. Attaching a similar report which was dynamically generated on the fly for the reference. 

 

Regards,

Balu

Nasko
Telerik team
 answered on 22 Oct 2015
3 answers
282 views
Hi,
I have a asp.net MVC 4 application and I'm considering to include a reporting tools "telerik reporting".
Are there some example about how to show a report in HTML5 Report Viewer under these constraints:
1. The report is created with standalone telerik report designer and it is save as trdx file in  /App_Data folder,  so Report has to retrieved from /App_Data folder
     (use CustomReportResolver : IReportResolver  ?).

2. The report has to use a ObjectDataSource (eg.: list of object like List<Cars>) and the binding is done at runtime before the reports is shown, the list of object has to got from a repository class

    How to create fields on report at Design Time from ObjectDataSource  in standalone telerik report designer.



Thanks for any advice.


Stef
Telerik team
 answered on 22 Oct 2015
3 answers
528 views

Not sure the best way to explain so I figured I'd give a description and hopefully it'll make sense. :)

I have a cross tab report that uses the 12 months of the year for the rows and 2 consecutive years for the columns, and sum amounts in the details section. (12x2 grid with sum details).

 

My SQL data source has all the details needed, but these details are split up by an account number. So, if I have 100 accounts * 2 years * 12 months = 2400 rows of data in my data source.

(ex: Acct1, Jan, 2012,12units || Acct2, Jan, 2012, 2units || Acct1, Feb, 2012, 8units || etc.)

 

My end goal is to do a grouping by account and do a page break after group​'s footer to get 100 separate data pages (one for each account) each with a cross-tab containing the 12x2 grid ​showing all the details for only that one account. I'm hoping to do it with the single data  source SQL query (as opposed to making 100 separate round trips that may be needed to do each individual account).

 

Ideas? Thanks!

 

Stef
Telerik team
 answered on 22 Oct 2015
3 answers
991 views
I have a table with 3 columns. The 3rd column usually has no data. I want to hide this column if there is no data. How can I do this?
Nasko
Telerik team
 answered on 22 Oct 2015
1 answer
90 views

Hey Telerik People!

Due to some turnover at our company and others taking on more important roles, I have been given the unfortunate privilege of converting some Crystal Reports to Telerik (the old saying about "you know what" rolls down hill comes to mind). The problem here is that I know absolutely nothing about Crystal and very little about Telerik. To make things even better, I know almost nothing about coding or scripting. I haven't done any serious report creation since college when I used MS Access 2003. In my opinion, what's happening here is equivalent to giving an assignment to read War and Peace to a child who's just learned to read.

Now that's out of the way, on to the question part...

A field entitled "ck_Date_Changed" in one Crystal Report has the below expression tied to it:

if {Command.ck_Date_Changed} = Maximum ({Command.ck_Date_Changed}, {Command.ix_Student_Number}) then
false
else
true

The field tracks the date & time changes were made to an account. So far, I've been able to move most of the fields and very basic expressions from Crystal to Telerik. I've even managed to get the report to pull data, however, the report shows a line item for each date & time a change was made to the account. I need it to only show the most recent change. Somehow, the above statement was used to do that in Crystal.

I need to first understand what this expression is doing, then I need help converting it to Telerik friendly language.

I have about 10 of these reports to convert (all different) and some have sub-reports.

Thanks for any assistance anyone provides. Let me know if clarification is needed.

Nasko
Telerik team
 answered on 22 Oct 2015
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?