Add difference column for given column values in crystal report - asp.net

I have made crosstab report with Section (Fuel/Lube) and Nature (Finished/Semi-Finished)
as row headers and month (September/October) as column header and value as summary field.
What I want is another column having difference for each row summary field for the given months i.e. September, October,....

I Found the solution.
I made a subreport for difference column only, with same parameters as in main report and
called the subreport after linking i.e. crystal report asks for linking the report parameters
on subreport addition.

Related

RDLC subreport inside subreport

Output Needed
Row Grouping
I am trying to create a report to match exactly as in attached file using RDLC, that has three levels of data:
Packing No
PO No
Item
Level 2 and 3 should come in a single column, to achive this I have tried using subreport:
Column Grouping - If more than one PO arrives, column is repeating horizontaly instead of extending vertically
Row Grouping - Two columns are created one for PO No, another for item details,instead on single column
Subreport inside subreport - Here first subreport have Packing No as Parameter, second subreport has Packing No & Po No as parameter, in this case first row of RDLC alone displays all data correctly, subsequent rows are not able to receive the parameter and it displays error.
I came close but not able to complete, any solution will be greatly helpful to me.
I think you are over-complicating things and don't need to place sub-report inside sub-report.
I can see that it might be needed to place (one column report with row grouping by PO#) sub-report into details cell of column 2 and pass package No to it as a parameters to filter data.

Graphs from Google Forms

I have a form which records electricity consumption over time. This will insert values in a sheet, where the first column is called Timestamp and is in the form: 04/02/2016 11:03:44.
I wanted to run some stats based on weeknumber and month from Timestamp and display updated graphs automatically. How would you easily achieve this?
Creating another column which references and formats the Timestamp column, does not work because each time a row is added by the form the references are skipped.
You could try using arrayformula in your other columns as these will automatically adjust to include new Form submissions. For example, try pasting these into row 2 of your response sheet:
=ArrayFormula(IF(LEN(A2:A),WEEKNUM(A2:A),))
=ArrayFormula(IF(LEN(A2:A),MONTH(A2:A),))

Format negative values in reports

I have a report which contains 10 columns of stock values.
When a stock value is negative I would like the text in my report to be formatted differently, for example I may wish to format it in Bold & Red.
Is this something I need to do in the fetch method?
At the moment my fetch method is very basic, just using setRecord once to setup a temporary table.
Is it possible and if so how is it done?
Take a look on the tutorial_ColourLines report.
reportSection.foregroundColor(colour);
The report changes the color of a report section, but it can be done to individual report controls as well.

repeat column headers on the rdl report table

I have a rdl report which contains Legend, chart and rows of records below legend and chart. I got a problem here is I can repeat legent and chard for every type new item but I cannot repeat headers for rows of records. I tried with visibility but did not work. headers are simple as row in the table in rdl report which are required to show date, time, position , like that for every record coming database , any suggestions much appreciated
If you want to repeat header with each row and you are using Visual Studio for designing, it is easy:
Simply click the data row (the one in the middle), right-click it and choose Insert Row Above, in that row you can insert your header text and it will repeat with each row record.
If I haven't deciphered your question correctly, please leave a comment.

salesforce.com matrix reports - more than 2 columns on row headings

I need to create a donor summary report that provides total donations by donor by year.
I need to provide
name address email yr1total yr2total etc...
It looks like salesforce only allows two columns in row headings and two columns in column headings. Is there a way to work around this
Or, is there a way to use the tabular report to do the same?
TIA
If donations is a single field on the donor's record, it seems like what you're looking to do is attempt to display two columns for the same data within a report. The best way to do this (well, outside of creating a master-detail relationship with a new custom object named "Donations") would to have formula fields for each of the donation years, and calculate the donation sums in each of them. That is, as long as you have a way of calculating the year of the donation.
I believe to get the best answer, more information is needed.
Something like this? This will work if your donation is a separate object that's linked to Account (I've used Tasks & Events linked to Accounts in my example).
Create a report in "Matrix format".
Drop Account Name on the left pane, Donation's Date on the columns.
Columns will default to days. Click the dropdown in the place where I have "Created Date" and select summarizing by year (of course fine-tune to whatever you need).
Check date ranges / filter criteria etc obviously if you don't see all data.
Click Show -> Hide details.
Drop your "Donation Amount" or similar field into place where "Record Count" is displayed. Use "Sum".
Optionally deselect Show -> Record Count.
Now you're mentioning that there are only 2 columns so you probably already tried this. Well, common trick is to cheat by using a formula field that would hold your data (separated by comma maybe?). Tabular report would require you to create some helper fields (1 per year) on Account and do some kind of rollup summaries, messy.
If it's for a dashboard you could play with summary report (it can have more groups than 2) and pick chart type table on the dashboard...

Resources