In my crystal report, records are showing like that.
NAME DEPOSIT REMARK
LUKE 100.00 DECEMBER
LUKE 10.00 NOV
LUKE 10.00 NOV
But we have found duplicated record in there. In this case, I don't want to touch my query and want to change only in crystal report. What I want to be is like
NAME DEPOSIT REMARK
LUKE 100.00 DECEMBER
LUKE 10.00 NOV
Any resolution will be appreciated.
If you are looking to achieve this in the Crystal Reports designer, then there is an option "Database" in the menu that says "Select Distinct Records". Try using this it will return you only unique records, but be sure you use the unique field as well in the Details section.
Hope this helps.
Related
From a query, I get this data (simplified):
Referring Date Name Budget
2017-01 JACK 100
2017-01 JOHN 200
2017-01 SMITH 150
2017-02 JACK 50
2017-02 SMITH 200
2017-03 JOHN 300
2017-03 SMITH 200
2017-03 JENNY 150
I need a crosstab to organize budget on columns and referring-date and name on rows.
Using Jasper Wizard, I got this:
As you see, Referring Date is put in a Rowspan.
Unfortunally, Im requested to build something like this:
I've tried to modify Crosstab but when I try to move Referring Date above Name (companyName in my case) I got the error because Im "invading" company section.
Is there a solution?
Thank you!
Yes its possible. Don't use Cross tab. Learn and use report Group. Create group on "referring date".
For Total create a variable of data type same as $F{budget}.Set the Calculation to 'Sum', the Reset Type to 'Group' (and pick the appropriate group from the dropdown), set the variable expression to $F{budget}.
I have a report which has a main report, and would have a second detail band which would be a subreport call to another jrxml file.
The report and subreport are showing properly. But now i want to hide the subreport on load and would only show up when the statement no is clicked and be hidden when clicked again, is there some javascript/jquery trick i could add into jasper?
sample:
id statement_no name company
1 123-4 John Carp Carp Solutions
statement_no type amount
123-4 BILL 456.12
123-4 CHARGE 14.05
2 145-9 Jenny Jones Alias Investments
3 111-2 Lo Yee Alain Bank
statement_no type amount
111-2 BILL 150.00
111-2 CHARGE 2.00
note: I am using the Community edition which does not support Visualize.js
I need to do a sumif here.
Lets say I have the following data
EMPNAME TICKETS
Lindsey Abbott 102894
Lindsey Abbott 106402
Lindsey Abbott 105491
Alex Kenney 106337
Alex Kenney 106328
Alex Kenney 106338
The result would be like:
EMPNAME Count of Tickets
Lindsey Abbott 3
Alex Kenney 3
How do I do this in crystal reports? Please help me
Insert a group on EMPNAME
Insert a summary field on TICKETS; choose Count as the aggregator
Hide/suppress the Details section
Your best method depends on what other information you intend to use in your report. If there is a lot of other data, you'll want to research the use of Running Totals (a good starting point would be https://msdn.microsoft.com/en-US/library/ms227117(v=vs.80).aspx).
If all you are trying to do is provide a count per user, then use Group Expert and group by EMPNAME. Insert the field into the detail section of the report. Right click on the field and INSERT SUMMARY. Summarize the EMPNAME field, calculate by COUNT, and be sure to check "Add to all group Levels".
When you click ok, you'll see the count in the newly generated Group Footer. You can then simply move the EMPNAME field from the DETAIL Section to the Group Footer, shrink or hide the detail section, and you're good to go!
I am quite new to cross tab type reports in crystal report and I want to show multiple users multiple details.
So that I have columns as username and row containing details of the same.
Like:
User1 User2 User3 User4 User5
Details1: aaa bbb ccc dddd eeee
Details2: 123 345 534 566 87667
Details3: geg dhrth htrhytr ghdf ytryr
But I am unable to get the interface as total, subtotal summary etc fields are quite confusing.
Also I am not interested in grouping my rows on the basis of one field and then showing details in it.
Create a cross tab report and in Row area you put Your details and in column are you put your user, and don't forgot to put the Summarized fields. It works fine. No need to do any coding all the things should manage from your stored procedure.
I am currently working on a Crystal Report wherein I use three different commands.
I use the first command to display the details on the header of the report while the other two commands contain two sets of data for the report body itself.
My problem is that the report's format should be grouped into two wherein the first group will appear after the header and the second group will appear after the first group. To give you a better view of it, please refer to the sample below:
CLASS CODE: AC01
SECTION : A
TEACHER : Ms. Teacher 1
GROUP 1
NAME AGE BIRTHDATE
Student 1 19 12-01-1990
Student 2 22 08-04-1987
Student 3 20 07-07-1989
SCHEDULE
TIME DAY SUBJECT
10-11 AM MWF HISTORY 101
12-01 PM MWF BIOLOGY 202
02-04 PM TTh BIOLOGY LAB
Please note that I am using TextTools for GROUP 1 and SECTION Labels. I have tried adding a new Header and placing the 'GROUP 1' in it then the preceeding Details Section contains the data for Group 1. However, I cannot add another Header below the Details Section so that I can start working with the SCHEDULE.
Are there any workarounds for this problem? Thank you very much!
Alright,
I did some other research and this is what I got: http://www.crystalreportsbook.com/Forum/forum_posts.asp?TID=12033
Apparently, I had to use SUBREPORTS.
Thanks for the help! :)