How to build a 'negative list' with crystal report - crystal-reports

I just started to use crystal report and struggling about some kind of negative list building.
I am getting two input lists into crystal report and as a result I like to output a list of items, which are not included in both lists.
Example:
List 1 contains Peter, John, Alice, Mary and Tom
List 2 contains Peter and Mary
My result list should show John, Alice and Tom
How can I do this with crystal report?

If by LIST you mean database table, use an Outer Join from A to B and apply a record selection criterion of: IsNull(B.some_column)

Related

Creating an index in my crystal report

I have a report where I list peoples addresses and some extra information.
At the footer of the report I have a sub report with just the names of people sorted by first name.
I would like to put an A before all the people with names that start with A and a B before people that has names that start with a B and so on. Is there a function built in for this?
Something like this:
A
Adam
Anton
B
Bob
Bert
Your explanation and your example are different, below solution will give output of your example.
Create a formula to extract first character.
#firstcharacter //formula name
Assuming field name as field1.
field1 [1]
Now in your subreport group by this formula and place field1 in details.
If this is not you are looking for let me know.

Crystal Reports : combine and sum two fields if another field is a duplicate

i have been having trouble for a while figuring this out. I am looking to combine the rows that have duplicate "materials" and in doing so sum up the quantities of each and the prices.
Material qty unit price
a 5 20.00
a 5 20.00
b 2 5.00
c 1 5.00
and to get it like
Material qty unit price
a 10 40.00
b 2 5.00
c 1 5.00
Ive looked and found similar questions but couldnt figure it out. sorry if its a repost.
Thanks
When you begin creating the report, one of the first options is grouping, followed by aggregates (sum, count etc.). Once you finish the report wizard, suppress the details and the group headers.
Create a Group based on your Material field and then insert a summary by right-clicking on your qty field -> Insert Summary.
If you can't (or don't want to) group, then you will have to create running totals to summarize your different materials.

Cross tab report in Crystal Report

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.

Selectively showing groups in Crystal Reports

I have a report which displays information by group; I'd like to not show any group that doesn't have at least two items in it. Is there an easy way to do this?
Example:
Bob
3/1
4/3
Joe
3/2
3/7
3/9
Mark
5/9
James
John
8/17
9/2
Grouped on name, should not show Mark or James.
If your report is simplistic enough, you can get away with just suppressing the Group Header, Group Footer, and Details sections by using a summary function like count({table.somedate},{table.dudesname}) < 2. Note that the second parameter to a summary function has to be a field being used to group on.
Your mileage may vary with doing it this way. If you are displaying calculated summaries in the report footer, for example, it won't make sense to just suppress these groups as their data will still affect any report-level summary. The other problem you might run into is needing to use a distinct count on some field instead of just a count, depending on your table joins.
You could create a group-selection formula (Report | Selection Formula | Group...):
Count({table.field_to_count}, {table.grouped_field}) < 2

Crystal Reports XI Cross tab summarised field how to stop cell rows of the same value merging?

I have created a cross tab however if I have a firstname field it merges the rows together if there are two names which are the same. How do you get it to display the names in the each row. In the example below Sarah is not displayed twice as the cells are merged together.
Firstname Lastname
Judy Collins
Sarah Dane
Smith
Joe Dine
Mary Lane
It sounds like you grouped your crosstab on the first name only. I would recommend:
Make a new Formula (Call it "FullName")
In the formula, combine the first name and last name, e.g. something like {First Name}&{Last Name}
Edit your crosstab to group by the FullName formula instead.
Does this help?
EDIT
Based on your comment, I don't think your comment is with Crystal. You need a "unique ID" of some sort, a distinct number for each person. My original suggestion was trying to use the user's full name as a unique ID, but that won't work if your dataset is big enough to include multiple people with the same name. Does your dataset have any kind of unique ID? What is this crosstab trying to display? There might be a better way.