For each record, there is a particular calculated field. The value of that field is obtained by the difference of the value in the next record. So sorting should be correct for the right value of this field. But now the report shown to the user is grouped in many sections and sorted in different ways, but I want the field to be of right value (based on one sort).
In short, how can I sort the records based on,say 'A', and do the calculation and display it based on different combinations of sort?
Links, pointers appreciated.
Example:
Original sort by Age for calculation
Name Age Diff
-------------
Mark 60 5
Pete 65 7
Nath 72 0
Values of Diff should still hold in different sort
Name Age Diff
-------------
Mark 60 5
Nath 72 0
Pete 65 7
Related
I have a data set like this
Name Occupation Payment Principal Interest
Amy Nurse 100 90 15
Becky Teacher 80 100 20
Catherine Nurse 90 75 15
John Engineer 90 80 12
Tom Teacher 120 100 20
... ... ... ... ...
I'd like to create side-by-side(Payment) stacked chart:
Row: Occupations
Column1 : stacked(Sum of Interest and Sum of LP Principal) by occupation
Column2 : Only Sum of LP Payment by occupation
Can anyone give me hint how to make it?
Your data is not in the correct format for the required chart and you need to do some data prep.
Pivot all three measure fields from the data source page.
create a calculation to define the column for each data type
Build the chart as below and hide the header for column field.
One approach that avoids reshaping your data is to use the measure names and measure values placeholder fields to create the stacked bar chart.
See below
I got 3 lists with grades ranging from 0-100 represting 3 different tests.
each list has an equal number of indxes (represting participates).
For example- the 1st indexes in the lists- list1,list2 and list3, are the grades of the first particiapte in the 3 different tests.
I need to make a new group (named group1) that select evey 3rd participate, starting from the first, and than calculate the avarage of this group scores.
i'll appriciate any help!!
Hopefully instead of three 'lists' you are actually using a 3 column matrix for this? e.g.
testScores = [20 48 13;
85 90 93;
54 50 56;
76 80 45
...]
From here it is trivial to select every third participant:
testScores(1:3:end, :)
and then to find the mean:
mean(testScores(1:3:end,:),2)
I have a matrix with several groups(employees, managers and departments). I have columns: sum time expected, sum time entered, sum overtime, sum missing time. At the manager and department level the overtime and missing time skew the results. Basically if a manager has two employees and one has 5 hrs overtime and the other has 5 hrs missing time, the result will show that for the manager there is no overtime or missing time for their employees.. I have tried to add subtotals but I get the same outcome. I have also tried to =sum(textbox.value) but I get the error that aggregates on textboxes have to be within footers. I believe that subtotal rows should be considered footers but that is not the case. Any help would be much appreciated. Thanks!
Time Expected Time Reported OT MISSING-------------------------------------------------------------------
Total by Manager----------------------------------------------------------------------------------------------------------
80 ------------------ 80 --------------- 0 ------ 0--------
Totals by Employee---------------------------------------------------------------------------------------------------------
40 -------------------- 35 -------------- 0-------- 5---------
-----------------------------------------------------------------40 -------------------- 45 -------------- 5 --------0
I realized my problem. My calculations were thrown because I had tried to use isnothing to replace NaN with 0s.
I'm just beginning with Report Builder and I am trying to get an average of the value of one field if another field equals a number.
Example:
A table that contains a series of book reviews by different reviewers identified by number:
Reviewer Score
1 95
2 85
3 77
3 99
1 87
What I want is to get a reviewer's overall average score. So i would like to get an average of all scores filtering out the other reviewers.
I have been at this for a couple hours now and I don't think I am even close...
=Avg(iif(reviewer="1",score,Nothing))
I have used this successfully in my report.
I am using a Crystal crosstab. My rows are lab results and my columns are dates. I am sorting the dates in descending order so that the most current dates are listed first. I know I can use the TopN formula for rows to limit to a certain number of rows but I need to limit it to a certain number of columns preferably 10. In the example below I would not want to show anything after 10/10/11.
10/1/12 9/3/12 7/16/12 5/8/12 4/22/12 3/17/12 1/9/12 12/3/11 11/15/11 10/10/11 9/23/11 8/18/11 7/7/11 6/8/11
Calcium 8.5 9 9.1 9 8.9 8.9 9 9 9 9 9 9 8.9 9
Vitamin D 45 45 51 49 56 50 51 55 60 66 60 59 60 61
Any guidance would be greatly appreciated.
Thanks
Jill
I think the cross tab can only limit columns if the names are specified which will not be possible with dates.
There are two possible work arounds I can think of:
1 - limit via the query:
Go to Report > Select Expert > Record and select the date field, click formula then add this formula (for 10/10/2011):
{Mytable.DateField} < Date (2011, 10, 10)
or for a dynamic date (older than 1 year):
{Mytable.DateField} < DateAdd ("yyyy", -1, CurrentDate)
2 - The other option is to create cross-tab as a standard report, this means the dates will be vertical rather than horizontal.
You can add a group to the report by date then add values for each type as summaries, let me know if you prefer this and I can explain in more detail.