how to count subgroups in BIRT - birt

I'm doing a report with BIRT 3.7 and I've a query order by customers and invoice, with a group for customer and subgroup for invoices. So the thing that I need is for each customer, how many invoices it has. I'm trying to use function count from Aggregation related to invoices's subgroup, but when I run the report, the aggregation variable shows the total of details from last invoice.
Any comment is welcome!.
Thanks.

Related

Sum Quantity from Opportunity Product Entity to a specific Field on an opportunity within the opportunity table

I have a list of opportunity product lines associated to opportunities that I want to pass to a field within the opportunity table so users can see this within the opportunity table view. The products in the opportunity lines are Number of learners. For projecting onboarding numbers for the month I want to add one field to my opportunity entity.
Total number of learners
This field would be populated by the total quantity of all "learners" products in the opportunity product lines.
I have tried a roll up field, but I can't seem to get it to sum up the quantity of products to appear within the new field created in the opportunity entity.
What features of Dynamics CRM could help me achieve this? MS workflow?
Rollup
Product Line
Rollup field on Form
rollup field should solve your req.
If that does not solve your problem, Then you can create Power autome/ cloud flow.
If not you can create Plugin
If not Javascript.
But my best bet or choice would be rollup and then cloud flow.

Different sorting within groups crystal reports

I have a report in Crystal Reports with multiple subreports and groups. The overall report is grouped by Incoming Loan Status (are the loans at the venue or upcoming, etc.) and then within that is grouped by the exhibition name and then the accession numbers. I want to have the report sorted by Incoming Loan Status (which I have done) and within that loan status, the date. I need all loan statuses that are at the venue to be sorted in ascending order by the VenueCompletionDate (i.e. when it returns) and all loan statuses that are upcoming to be sorted in ascending order by the VenueCommencementDate.
I had looked at parameter sorts, but I need both at venue and upcoming loans on the same report and need both sorts to happen simultaneously within those groups.
Are there any recommendations for this?
Link to example report

How to get tax amount(both group and percent) individual product in account_invoice(Sale)?

While creating report I need to take tax amount for individual product from account.invoice (sale). Have tried SQL query but it is not possible so how can I do that?
A SQL query is possible but it could get hard if you try to make the calculations in pure SQL. account.invoice.line has a Many2many field invoice_line_tax_ids that you can use in your SQL query as a mapping table (database table account_invoice_line_tax that has fields invoice_line_id and tax_id).
If you want to make this job easier for yourself, create a new computed field (remember store=True) for account.invoice.line that calculates the taxes by line using the same methods Odoo uses. See account.invoice.line._compute_price for example.
If you need the taxes by product instead of by invoice line, just group the invoice lines by product in your report.

Sort on a grouped column cognos

I've looked at a few ways to do this and I am unfortunately coming up short.
I have a list report in Cognos on which i have grouped some but not all columns. I would like to sort by customer account however i believe my groupings aren't letting me.
Columns:
Customer Account (Grouped)
Customer Name (Grouped)
Order Reference (Grouped)
Product Code
Sales Document Number (Grouped)
Order Date
Required Date
Despatch Date
Quantity Despatched
Despatch Mode
Despatch Price (Grouped)
The table shows the customers orders, what they have purchased and the collective price.
I would like to sort by the customer orders (grouped) column.
Thanks in advance
Will
To fix this i was fortunate that we did not require the grouping in the end and this was only a nice to have.
Thanks to anyone who logs onto this in order to help but the problem is sorted.
Thanks
Will

sales tracker return cost from query

I am using Oracle APEX 4.1.1 to build a sales tracker. To explain things as simple as possible we have a table CALLED "CARS" of all products and their cost with the columns as "CAR" and "COST" there are about 500 cars listed and their associated costs.
We have a form setup so the sales staff can record their sales week by week. Simple form with a list of values built upon the "cars" column called "P2_CARS and I want the cost field in the form "P2_COST" to be generated from a query that runs against the table.
It will run dynamically when they change the value in P2_CARS and I have this but pretty sure its all around the wrong way or just wrong.
SELECT COST FROM CARS WHERE CARS=P2_CARS
can anyone help?

Resources