I have the following simplified XML structure:
<Product>
<Name>Product 1</Name>
<Discount>
<Name>Discount 1<Name>
<Rate>10</Rate>
<Amount>100</Amount>
</Discount>
<Discount>
<Name>Discount 2<Name>
<Rate>20</Rate>
<Amount>200</Amount>
</Discount>
</Product>
<Product>
<Name>Product 2</Name>
<Discount>
<Name>Discount 1<Name>
<Rate>30</Rate>
<Amount>300</Amount>
</Discount>
<Discount>
<Name>Discount 2<Name>
<Rate>40</Rate>
<Amount>400</Amount>
</Discount>
</Product>
The structure is then processed by a report. What I would like to display is the following:
Product 1
Discount 1 (10%) 100
Discount 2 (20%) 200
Product 2
Discount 1 (30%) 300
Discount 2 (40%) 400
I have tried to structure a subreport as follows:
ReportHeader (contains a table header)
Group 1 (grouped by Product.Internal_Id, with the product name)
Group 2 (grouped by Discount.Internal_Id, with discount data)
Details (suppressed)
Footers (suppressed).
When I preview the result in my editor, it looks exactly as I want. However, when processed by the server, each product group lists all discounts for all products:
Product 1
All discounts for all products
Product 2
Same...
The version of my local report designer is 14.0.4.738. The version embedded in the server is 12.2.205.825.
How should I structure my report template in order to obtain the result I expect? Unfortunately, I have limited experience with Crystal Reports. I have tried many variations and many groupings, to no avail.
Related
I have a Crystal Reports that has several Groups as noted below. I need to return a total for each Customer Group by the items (I could have 6 invoices that have Item 1 - 3 on each)I want to see a total for each item - rather than seeing 18 lines - just 3 aggregated by Item
Group1 Customer
ABC001
XYZ002
DEF001
Group2 Invoice #
017700
017702
017703
Group3 Details from Items on Invoice (I needed this to load in taxes to Sales & COGS)
Item 1
Item 2
Item 3
Insert a CrossTab in GH1 or GF1 that shows totals by Item.
note: could also be done with a subreport, but CrossTab is easier and faster.
I have data like this
Type Buy Sell
Car1 23000 15000
Car2 24000
Car3 25000
I used sum(#buy) for total buy field and sum(#sell) for total sell field.
Can I sum all or grand total that like sum(#buy) + sum(#sell) ?
because when I run in VB6 for preview that report, Grand total not show on, please help me master.
For this there are 2 approach.
Via Formula :- add a formula field and in that add give above condition in formula field editor. put this field in your desired location, but ideally put in report footer or group footer(if any).
Use running total or summary total.
Check this links
Crystal Report Sum of a Column data
https://forums.asp.net/t/1971464.aspx?Sum+of+Total+in+Crystal+Report+
I am currently trying to group data together based on a field "type" using iReports 5.6.0. It seems to work but spreads the groups into different places see example below:
What happens
ID Name Location Type Cost
1 C1 FRA Car 2k
2 C1 FRA Car 2k
3 Transit USA Van 10K
4 Custom USA Van 20K
5 C2 FRA Car 4K
Expected Result:
Example Data
ID Name Location Type Cost
1 C1 FRA Car 2k
2 C1 FRA Car 2k
5 C2 FRA Car 4K
3 Transit USA Van 10K
4 Custom USA Van 20K
I wish the data to come out as the expected result below instead of groups seem to be split up (which I think is it the order data is fed into the report from the application)
I have tried using the keep together option but it doesn't seem to work in this situation.
When using grouping in jasper report to get correct output the data
needs to already be ordered according to the group expressions used.
See: Grouping Data in JasperReports
You can achieve this by either:
order your datasource through query ORDER BY or if using custom datasource for example Collections.sort()
or
use the <sortField/> element in the report for example <sortField name="myField"/>.
In iReport IDE open the Report Query Dialog "edit query" and click the "Sort options..." button (bottom of interface)
In JasperSoft Studio open the dataset and query dialog, find the tab "Order" at the bottom and add your field(s)
I'm running a report that gives me the total of sales for a product line represented as product_line_value. I need to use this same report to run totals for combinations of product lines (if I were to create a report for each individual combination I'd be creating over 50 reports.)
So a report looking at the combined totals of product line A and product line B works just fine. However, I'm having trouble reflecting that information in the report. Other than looking at values in my table, there is nothing to say this report is a combination of product line A and product line B. (Remember, since I'm using the same report for over 50 combinations
I can't just simply title the report "Product Line A" and "Product Line B")
I tried placing product_line_value in the page header or as a group header but this only show one product line on each page, even the page totaling both product lines.
Also, I need to print and file each report. So if I have a month where no sales occurred I still need to print and file that report. But the report contains no information on the parameters other than the dates. In case it gets misfiled it needs to say this is the report for product line A and product line B for the month of May instead of just the month.
Is there a way to set up the report so that both product lines appear at the top of the page regardless of whether or not there is any data to report for a time period or do I need to create over 50 individual reports?
So what I'm getting is:
Page 1 Header: Product A Page 1: Product A
Page 2 Header: Product B Page 2: Product B
Page 3 Header: Product B Page 3: Product A and B totals
What I want is the page header to be:
Page 1 Header: Product A + Product B Page 1: Product A
Page 2 Header: Product A + Product B Page 2: Product B
Page 3 Header: Product A + Product B Page 3: Product A and B totals
Thanks
You need to use sub reports to achive this type of functionality.
You didn't mention any dependency of your tables so I assume you have multiple tables and you link outer join to the tables where you get product details so that you get product names irrespective of whether present in table or not.
To get product details in page header use a sub report and just concatenate all products that you need to display and place it in page header.
Now in main report create a group that will display product A first then product B and then in report just sum Product A+ Product B
I have 2 reports displaying data as
Filter Partner Name (Applies only to Report1)
Report 1:
Country Name : XXX
Members Count:1500
Report 2:
Partner name : XYZ
Members Count:1203
On applying filter only to Report 1 : Member count changes
now how can i show the data on Report 2 for the Members Count displayed on Report 1?
Report 2 should have members count that is displayed on Report 1 only
What i'm looking is like a dynamic Count(ID) in Report 2 that changes every time there is a change in Count(ID) of Report 1
on Applying Filter to Report 1
On clicking on bar like above the Data in Report 2 must display only for the (72 members) as Shown Below
How to do this in Tableau 8?
Don't understand, why can't you just apply Partner Name filter to both reports (right click, apply to worksheets,...)?
That way both reports will only display data for the selected partners. You can even build a dashboard with both reports side by side, an put a quick filter so you can select the partners you want to show, and apply the filter to both sheets at the same time.
If this does not work, I'm going to need a little more detail of what you're trying to do, how your database is organized, and how you built the sheets.