Average of two columns in crystal report using crosstab - vb.net

I cant get the right Sub Total and Total of this formula
Output is
Formula is ((collections / collectibles) * 100)
Is there a way to change the formula of Sub total and of a column?
I'm using crystal report in vb.net windows application program

This is for simple detail section
Create a "Formula Field" (Not a running total field) called Total
In the Formula Editor grab "Functions" (Middle divider) -> Summary -> Sum -> Sum(fld) and put it in the editor portion
Drag the "Amounts" that you want the total of and and put it in the Sum function
Put this formula field in the footer (It should display the total I believe you want)
Please check this link.
https://www.mindstick.com/Articles/614/running-total-field-in-crystal-report
http://www.dbforums.com/showthread.php?1117914-subtotals-by-page
Edit
If you using cross-tab, then its very easy. Cross-tab given row wise, column wise total and grand -total too.
check this links.
Grand Total Cross Tab rows alongwith columns?
Add "Total" per row and column in Crystal Reports without CrossTab

Related

A number field or currency amount field is required here in crystal Report

Using VBNET2010 and A SQL Database and Crystal Report
I want To Calculate MIN,MAX,AVG of the fields of DataTable in column Fields
I tried Using
Average({DataTable1.Column2})
I tried Using
MINIMUM ({DataTable1.Column2})
I tried Using
Maximum({DataTable1.Column2})
Generate this Error message while in the processing of creating it:-
A number field or currency amount field is required here
Please help me, I need your help.
Thanks,
Or guide me how Get Min,Max Average in crystal report when i am using datatable as a source.
hey hey I got the Answer
for This You Have To create TWO formulas in Formula Editor
1.To convert the Datatable column to Number with Name avg
ToNumber({DataTable1.Column2})
And Second To Convert That number to AVG/MIN/MAX
Average ({#avg})
you want to limit the report data set of the report to the maximum date per group?
in the select expert clcik on the Show formula box.
There is a Group Selection toggle.
Switch it group selection
put your group selection criteria in there Maximum(DataTable1.Column2,group)

Adding footer to report causes erros [MS Access 07]

I have a form that opens a report based on two combo boxes. It is opening an invoice for shipments. You can either open the report based on customer or shipment. Everything works fine for shipments and the total for all items is added correctly. However when I add a grand total within the page footer I am suddenly unable to open the form because access asks what the total is. I have a attached a picture to help explain better.
Access does not store the values of calculated fields. As a result you can't sum the values that it produces. Instead of summing the calculated field, sum the calculation used to produce it.
example:
textbox24 = nz([TL],0) + nz([TM],0)
to sum this field use:
sum_field = sum(nz([TL],0) + nz([TM],0))

Creating column heading that dynamically increases in SSRS report

I have to create a report that looks like below. All the months are dynamically called through Matrix report. And i am not able to place the heading "Yearly Counts" that also dynamically varies with no of months.
Could you please help me in doing this.
If I understand you correctly, you are able to get the Matrix to dynamically add 1 column per month, but you can't get the "Yearly Counts" cell to work correctly, right?
If you use the following option (right-click on the box to the left of the Month row to get to this menu), you should be able to add a header row above the month headers that will expand to cover as many month columns that dynamically appear:
The Matrix should end up looking like this (in design mode):

SSRS - Aggregate of an Aggregate

I am new to SSRS but have plenty of experience with Crystal Reports and am trying to do something that in Crystal is fairly simple but after hours of frustrating research it appears is very difficult in SSRS.
I have looked at these which bring me close:
Running Total Over Aggregated Data
Aggregate Of Aggregate
I can semi-successfully obtain a group total but the group total resets to zero at the beginning of each page which isn't what I want.
I have two groups in my report the nested group has subtotals which are not totals of the detail data. How do I create Group Totals for the nested group subtotals? I have seen many people asking this question but so far have only been able to successfully create a Report total for the nested group subtotal. Can any one point me to a way to solve this?
It appears that this area is a regularly encountered problem that has no resolution. I see the same question raised here SSRS Aggregating Aggregates also with no resolution. I was hoping it was just a knowledge issue on my part but it appears to be a structural issue with SSRS.
OK So it sounds like you want to have a Subtotal and Grand total?
https://msdn.microsoft.com/en-us/library/ms170712.aspx
In this example it is the typical sales company
first line totals are easy, but the subtotal for the "daily group". Obviously you will have different groups/column names, but I think this is what you are looking for.
Right-click the Order cell, point to Add Total, and click After.
This adds a new row containing sums of the quantity and dollar
amount for each day, and the label "Total" in the Order column. Type
the word Daily before the word Total in the same cell, so it reads
Daily Total. Select the Daily Total cell, the two Sum cells and the
empty cell between them. On the Format menu, click Background Color,
click Orange, and click OK.
Then for the grand total
Right-click the Date cell, point to Add Total, and click After. This
adds a new row containing sums of the quantity and dollar amount for
the entire report, and the Total label in the Date column. Type the
word Grand before the word Total in the same cell, so it reads Grand
Total. Select the Grand Total cell, the two Sum cells and the empty
cells between them. On the Format menu, click Background Color, click
Light Blue, and click OK.

Report Builder 3.0 - How to sum output of expression

We are looking to sum the output of an expression meaning that it does not exist as a field. Is there a way that that we can sum the content of a range of tablix cells?
In the above screen capture i am looking to have the total of <<"Expr">> displayed in the Total column.
No. You need to provide an expression that computes the total directly. You can only reference the contents of cells (using the ReportItems collection) that have scope "higher" than the current scope. In other words, you can reference a total text box in a non-total tablix cell, but you cannot reference a non-total tablix cell in a total text box.