How to show duplicate data across several entities in a report - crystal-reports

I'm working on a report that retrieves information from several entities across our application.
The query I use retrieves all the employee numbers across diferent entities and displays them correctly, including duplicate numbers that exist across them, which is possible.
Example:
Entity 1 Employee John has number 1001
Entity 2 Employee Frank has number 1001
This is all correct and possible, but when I generate the report, it does not show all the numbers, as some of the duplicate ones are not shown.
If I were to use the example above when generating the report, only one of the numbers 1001 would show.
Is there a way to tell Crystal Reports to show everything including all the duplicate values?

Other main suspects are: Table joins and record selection formula.

Related

Need to group multiple fields together to form one group

Not sure if this is possible, but I thought I would put this out there and see what anyone thought.
Report: I need to track by classroom the parents that have given vs. those that I have not. I had created this awesome report with those that had, but I could never figure out how to pull the parents who hadn't yet in to the report. I need those that have not as well to create a sum and percentage of parents each class. (first query was too narrow, the next one gave too many dates and gifts, which duplicated the names in the report)
So I'm trying a different route and took the data from an Export instead of a Query, but now the "Classroom Guide" field is in a separate column for each child they have at the school.
I need to combine the 4 Guide fields somehow so I can group by them to create the classrooms in the report.
Makes sense?
Example data is like:
first.name;last.name;Guide1;Guide2;Guide3;Guide4;Gift.Date;Gift.Amount

How to generate a page in report for each data row using SSRS

I am working on developing an SSRS report.I have a table in which student name and 6 subjects marks is stored in each row. My problem statement goes like this ---> lets say if 10 rows of data is present in table then I want to create report card/ marksheet for each student in new page but inside a same report. (I.e. 10 pages in one report). Then convert the report containing 10 pages to PDF format and save it in some folder.
Can anyone show some possibilities to achieve my problem statement.
Thanks in advance....
Usually you'll want to use a List object to separate your report by student. You would group the list by student in your report. Then set a Page Break in the List with the location to Between each group so that it separates each student into a separate page.
Then you can put charts, tables and other object inside the list and it will repeat with the list group (in your case, each student).
MSDN: Lists
In this report I made below, the List is highlighted in Red and groups by each site. It just has a table inside. When it's run each site gets it's own page with a list of their people.
Keep in mind that a List is actually just a Tablix with only one data cell - with the column and row headers removed.

Crystal Report with multiple datasources

I am working on a crystal report like in the sample image. it has some limited attributes and some attributes that will be repeated. like item id will be repeated for each item and invoice id will be only one in the whole invoice. I am trying to use two different tables one for repeating elements and one for single time elements.
I am facing problem in setting the datasource of the crystal report. how can I set it so that it may fetch data for repeated elements from datatable one and other from datatable two.
Or if you know any other approach for such problem please share.
Problem Solved.
We can use as many datasources as we want. We just need to add them through database expert options.
besides while giving it actual data we can do that like this:
objRpt.Database.Tables[0].SetDataSource(list_of_objects_of_data_sources);
objRpt.Database.Tables[1].SetDataSource(list_of_objects_of_data_sources2);
this also shows that we can provide data to crystal report through list of obects instead of datatables. we just need to set the references in the database expert as those class objects.
like in the figure

crystal reports total of values field

I'm using Crystal Reports 10 right now and I have my report almost finished. I have a group of customers and for each customer, I have multiple lines of customer information. The one thing I'm still trying to figure out though is how can I get a running total of one column's distinct values.
So, for example I have a customer Bob who has 6 different items. For each item, there is a manufacturer. It might be the same for all 6 items, it might be one for 3 of them and another for the other 3, or they might all be different. What I want is to have a field at the bottom of the group for Bob that would say:
Man1 - 3
Man2 - 1
Man3 - 2
with the manufacturer being on the left side and the number of items they make for that customer on the right side.
Is there anything in Crystal Reports that can do this right now? Or can someone give me some advice on where I would get started on a formula to do this? Thanks for any help you guys can give.
Need more information:
What kind of data structure are we talking about? How are the manufacturer and item data found? How are these related to the customer? How many manufacturers/items are typically found per customer?
If the manufacturer and items are two different fields, that might be simple (cross tab in customer group). If they are free form, that might be a problem. If there are separate fields for every manufacturer (I've see it happen), then that might be a problem.
Best scenario:
One field for manufacturer, one field for item, distinct relation to customer.
Possible solution:
Group by customer, sub-group by manufacturer, count of items.
Not best scenario:
Table for customer, separate table for each manufacturer.
Possible solution:
Main report, group by customer. Linked subreport on Manufacturer/items.
Worst scenario:
Free-text entry of manufacturer and items in a memo field.
Possible solution:
Redesign your database (grin).
If you have to, you can do this using logic tests through formulas, but if you have many manufacturers/items, it would get exhaustive.
Best answer: More information.

Crystal Report- How can i count records of users from different related tables?

I am using Crystal Report2008.I have user table, this table is linked with other table such as devises, photos, videos, emails, notes, texts by its Uid and users have record in all different tables. I want a report which shows that how many record each user has in each table.
I am also getting this error: "More than one data source or a stored procedure has been used in this report. please make sure that no SQL Expression is added an no server-side group-by is performed."
Thank You
With the tables linked, it is not possible to get an accurate count. Your joins will affect how many records are returned.
You need to write one report for each table. If there's a need to see the numbers all on one page, you could write a subreport for each table then put the subreports all together on one page.