Crystal Crosstab Embedded Summaries in V11? - crystal-reports

I can't believe I am having such difficulty finding the answer to what I believe is a simple question.
I have a crosstab report which has
Pivot ColA ColB
PivotC1 <cellA1> <cellB1>
PivotC2 <cellA2> <cellB2>
PivotC3 <cellA3> <cellB3>
All I want to do is add a column, that does a row-wise formula in the crosstab. That's it! For example on the first row, a new cell would be to the right which has the formula 0.5*(A1+B1/A1). The content of the formula will be a couple different things but it really only needs to support basic cell references and arithmetic.
I found "Embedded Summary" functionality which does almost exactly what I want, but when I right click for the context menu on a crosstab in my version of Crystal (V11.0) I see nothing of the sort. Furthermore there are some relevant functions named in other references (such as here) that use "GridValueAt" which makes perfect sense... but once again, if I try to use that in a formula, it doesn't recognize the function.
Specifically the Crystal 2008 documentation says to use an Embedded summary you right click on the crosstab and choose "advanced calculations" then "embedded summary".. I dont see either of those options.
Am I missing a library? Was the functionality rebranded in V11?
Thanks!

If you are using 2008, you right click on a field in the crosstab to see embedded summary functionality. But I don't think that's what you need based on your explanation. I think you would be more successful using a calculated member. Right click the top left of your crosstab and select advanced calculation then select calculated member.

I know this is an old question, but in case anyone else comes across this:
Using the GridValueAt function, you can reference the cells within the crosstab. For example -
GridValueAt (CurrentRowIndex, CurrentColumnIndex ,1 ) /
GridValueAt (CurrentRowIndex, CurrentColumnIndex ,2 )
gives you A1/B1
Hope this helps.

Related

Is it possible to adjust the amount of columns (left to right) in Crystal Report based on user input?

I am trying to get crystal to print the details field from Left to Right to an excel spreadsheet output, rather than from the top of the page to the bottom. Setting the details section to 'Format with Columns' and using the layout option of 'Across then Down' doesn't seem to acheive the effect I am looking for. I want to create a given number of columns to the right based on user input passed into Crystal parameters, but I can't seem to find anything within crystal reports that will allow this.
Is it possible that I'm missing something simple, or does Crystal Reports lack the functionality to accomplish columns/rows being generated from left to right rather than up to down?
Thanks in advance for any help!
No such functionality in Crystal alone but you can take control of the Excel output logic using a UFL (User Function Library) allowing a detail-level Crystal formula to write to a specified Excel cell. As the formula progresses through the detail rows, it would increment column/row targets based on the Columns parameter.
You can create the UFL yourself. Alternatively, at least one of the 3rd-party UFLs listed here provides such a function.

Jasper Subtotal

I have a report- from another question: Jasper report data summary which shows totals for a number of columns by location. I need to sub-total some of the location_cds and am not sure where to start. I have one group - by location_cd. Some location_cds have sub-locations, i.e. 3A has 3A1, 3A2, 3A3. Right now I have the totals for each individual row displayed in the group footer. I would like to see a subtotal for any location_cd that has sub-locations. I am trying to puzzle out how I am going to approach that. Should I see if I can do that in the query or will Jasper help me out here?
I am querying Sybase ASE 15.7.0 and am using Jasper Studio 5.5.1
Sub totals are the same as totals, just check the following:
add the order by corresponding to your list - usually add the item to the order by list
ORDER BY some_name_wharever, my_subtotal_thing_to_be_ordered
create a new group using the wizard, right click the root of the report on the report inspector and select "add report group"
create a new variable just like the total one but mind the reset and increment group
That should do it. Hope it helps. Good luck.
I feel like you are trying to create a crosstab, with different subtotals and a general total... Do try looking into crosstabs.. they may be tricky to use, but the end result is great if used properly!

Crystal Reports Multiple Columns Right-to-Left

i wrote a program in C# win form. i have used crystal report. I want to set Crystal Reports Multiple Columns from Right-to-Left.
The following image.
Use cross-tab for this. you just assign left to right
For this use this link.
http://www.codeproject.com/Articles/142064/Step-by-Step-Creation-of-Crystal-Report-using-its
set a single column direction:
Right Click on IFieldObject (column) in section3(details): select "Format Object". Then you know what to do.
Good Luck!

Crystal reports 2008 report writing

Hi
I'm trying to write my first report!!!
and have number of question I cant seem to find the answer to can anyone help me please!
Q1.
i drag a DB field on the the report which is a string format and need to divide the value by 1024 and display the result. I know i need to use tonumber({fieldname}] but don't know where or how to add this and then do the division. how do I do it?
Q2.
on the report I have a group in its header I have the items that display across the report. in the detail I have the fields of a table that relate to above line. all good so far! How do add another Group or section that would allow another collection of data relating to the same first line!
as I see it I need to add another group with another detail section but I can't do this!
Hope this make some sort of sense!
thanks
Answer 1:
That operation should be done in a formula -- the formula editor will provide views to functionality you can access in that context.
Answer 2:
The Group Editor is what you need to use. You can access it from one of the menus at the top, or by right clicking the row header for the appropriate section IIRC.

crystal report problem

what is the equivalant command like in vb for EOF(), MoveNext, Moveprevious commands in crystal reports
There are no equivalent answers in Crystal Reports, at least not in the versions I have used. Crystal Reports more or less simply dumps the data out into the report.
That said, if you are in a detail row, and you want to find out what the next value of a field will be, you can use:
next({YourColumn})
You can also find out the previous column value by using this:
previous({YourColumn})
Keep in mind that Next() won't work on the last record, and Previous() won't work on the first record.
I'll have to double-check, but I believe there is an OnLastRecord function that returns TRUE if you are on the last record.
First, welcome to SO!
Second, you sound new to Crystal Report's purpose is to display data, not perform the kind of calculations you're talking about. CR usually goes record-by-record through the data, displaying (or suppressing) each record, and adding group headers & footers.
To answer your question, LittleBobbyTables does give a few good pointers. To see the entire list of functions available to you, there is a list in the Formula Editor (see pic below). Press F1 for detailed descriptions of each command.
You can also:
Create a "Running Total Formula" that will evaluate each record and give a calculation in the group footer.
Do the calculations outside of Crystal Reports and only feed the end result in (perhaps with an unlinked join to your primary table).
The most complex option is to make a subreport that does the calculation and feeds the result back to the main report
Can you give us some more details about what you're trying to do?