show AVG value in table - ssrs-2008

I have table in report builder which I grouped by value (first column)
in second column I want it to show only the AVG of each group data.
how can I do it?
table screenshot

With the following expression. Important is, that you add the scope:
=Avg(Fields!YourField.Value, "YourGroupName")

Related

Function to call the Name of a column in TABLEAU

I have a problem with Tableau.
I have a Dataset with some rows and some columns. I want to write a IFELSE structure where
The IF condition is that the Value of special field(fixed by a row and a column) is equal to the header of a column (it is every time equal to one name(header) of the different columns).
So to summarize: one value is every time equal to the name of a column and to find the column shall be the if-structure
Does someone know if there is a function to call the name (header) of a column? I didn't find it
Here is an small example, in which the Calculated_function choose the right price according to the Barcode. Everything in the first raw, is the header_name of the column below. enter image description here
Best regards
Jonas
You can work like this.
I created a sample dataset as given by you
Step-1: Connected With data in tableau. Clicked all columns having price (4 here), pivoted them so that they look like this..
Step_2: Create calculated_field like this
if [Barcode] = [Barcode_c]
then [Price] END
Step3: Filtered out null values from calculatedField and got a view like this which can be tweaked as per liking.

How to implement a conditional fomula in Crystal Report

I have a table named tblRecovery with 4 column. ID, LStatus, Amount and RecoveredBy I created a formula to sum Amount Column where LStatus Column value is "WCL". I use following code.
It sum all value of Amount column without condition. I want to sum amount column if Lstatus Column value is "WCL". How can I do that?
if {tblRecovery.LStatus}='WCL' then sum({tblRecovery.Amount})
Crystal Reports formulas work on a per-record basis.
Your current formula shows the sum of tblRecovery.Amount on every single row where LStatus='WCL'.
To get the desired result, create a formula-field with following formula and the create a sum of it:
if {tblRecovery.LStatus}='WCL' then
{tblRecovery.Amount}
else
0

How to create a sum variable in ireport?

I am new to JasperReports and iReport designer. Now I have table in that I have a column salary . So I want to display the sum of all employees salary.
for that I took a table from pallet created dataset. It displays the table perfectly , in footer I want to display the sum of salary so I created a variable SalSum here is the properties of it,
class: java.math.BigDecimal
calculation: sum
ResetType:Report
Variable Exp: $F{salary}
The problem is , The sum of salary is not displaying and getting the discription as Variable not found:SalSum
and The table also displays 3 times in report how to solve this please help me anyone.
You can simply drag salary field to the footer area.Then it asks field value or result of aggregation function.You have to choose the second option and from there you select the Sum.That's it
the problem is that you might not use the correct tag for the sum,
<textFieldExpression>
you need to use for summing inside ireport.
here is a nice tutorial about how to implement it

SSRS Tablix Row Number into different Tablix

I've got an SSRS report with two tables. In the first table, I've got a row number column, that is calculated based on the RunnningValue for the CountDistinct on the tablix.
What I need, is a row number column in the second table, that begins with the next number after the last number in the first table. So, if table 1 has 15 rows, table 2 should begin at 16. I figure i can do another RunningValue + the max value from the other table, but no idea how to get that Max number into the second table. Is this even possible?
I think I got it. I did a CountDistinct on the field the other table was grouped on, and that gave me the correct number.

I need to know if it is possible to create a SSRS report as defined

I have a query with 3 parameters that a user should be able to define:
AND (ORION_SCHED.TRIP.DATE_TIME = '09/11/2012')
AND (ORION.CUST.COUNTRY = 'BE')
AND (ORION_SCHED.TRIP.ID_SHIFT ='1')
DATE_TIME should be a datepicker
COUNTRY dropdown with defined values
ID_SHIFT dropdown with defined values
I guess this isn't an issue?
The result of this query will return the dataset
My actual question: I want the result to be presented in this way
So always 3 blocks of data next to each other, the data of every block is the result of the query filtered down on the column TRUCK_ID (a sub-select of the returned dataset)
The empty cells per block are a nice to have, these are non-unique values per TRUCK_ID that I don't wish to be repeated on every line, but like I said a nice to have.
I would add a new column to the query that returned 1,2 or 3 (for each different TRUCK_ID. Then I would use 3 Tablix (one per column on your report) and filter the data by the new column you added on the query.
Then you just group on the TruckID on each tablix and play around with the format. It should work.