I have a report with items, ingredients and recipes. I am grouping by items so that I can create lists of recipes that contain that particular item. For example:
Item 001 Egg
Recipe 1
Recipe 2
Recipe 3
Item 002 Flour
Recipe 1
Recipe 2
I have a subtotal under each Item group that counts the number of Recipes. I am trying to get a subtotal at the very bottom of the report to count the number of Item groups. In the example above I would expect the total to be 2, however my report outputs the total as being 5 because each recipe contains the item. How can I count just the number of groups?
I am not 100% sure that this will help, but try RowNumber(), it is one of the functions. Adding to a textbox in the GroupFooter might give you the required output.
Related
I am attempting write a report with a summary by location. However, the groupings are duplicating. Need to see single location name with total entries. In the example it should show Athens in 2023, month 1 and day 2 I should have a total of 2.
Required output
I grouped by destination (parent group), then by year (parent group), then by month (parent group), then by day (parent group). I want to see each location, by year, month and day as a single total entry. Instead it is splitting out each entry.
It looks like all your fields are inside the details group (the lowest level), you can see this by the the horizontal lines in the row header. You only need a single group that groups by location/year/month/day unless you also want total by month and year?
If you only need the day level totals then remove all rowgroups except 1 and then edit the remaining row group to group by the 4 fields as required.
If you want to retain the location/year/month groups so you can add totals to those, try deleting the details rowgroup.
If this does not help, explain what totals you need and show the rowgroup panel (below the main designer window)
I am tasked with reproducing a spreadsheet in an SSRS report to save hours of Excel spreadsheet work. I have done all the calculations and got them into a single dataset however I am not able to work out how to display in the same table/matrix.
My spreadsheet looks like this:
Column B is a text column used to describe what the figures in each group are showing. Col C is 'Region' grouping.
I have got this far with my matrix - grouping by region and month. This gives me rows 3 to 8 incl of the spreadsheet.
But I am not able to work out how to add the next group of data (rows 9 to 12 in the spreadsheet) into the matrix. Each group of figures would use an expression to pull by a different field so only using single dataset: I still want it to use the region and month exactly the same as the top group. There is no parent or child relationship between the labels in col B in the spreadsheet.
I have tried adding an adjacent group below but it is still trying to keep it as part of the top group.
Is this at all possible?
do I need to have 6 different matrix, placing them together and just hide the month names in the bottom 5?
This is an extract of the data results. The top group counts the uniques customer id, the second group counts the unique sale id, the 3rd group totals the net sale value, the 4th group totals the profit value, the 5th group calculates the total sales and divides by the number of customers, the 6th group calculates the total sales and divides by the number of sales.
It looks like you will have to have 6 separate tablix and amend the aggregate function and field for each tablix
I have a google sheet with 5 columns.
Column 1 is a Unique list of Names
Column 2 is a Unique list of Tasks
Column 3 is a Price For Each task
Column 4 is a List of Names - Log File Column
Column 5 is a List of Tasks - Log File Column
What I am trying to do is create a 6th column that gives me the total $ owed to each name. To get this value it will need to count each time a task occurs next to a name in column 5 and then multiply it times the lookup value of that task and then sum each task together. I know its kind of a big formula to do in a sheet and might be something I can't do, but any advice would be appreciated.
It seems like an odd set-up, so there's a chance I'm not understanding it completely. Here's a formula to try:
=(COUNTIFS($D$2:$D$20,$A2,$E$2:$E$20,$B$2)*$C$2)+(COUNTIFS($D$2:$D$20,$A2,$E$2:$E$20,$B$3)*$C$3)+(COUNTIFS($D$2:$D$20,$A2,$E$2:$E$20,$B$4)*$C$4)
It looks at the unique name in Column 1, then counts the number of times that name was paired with each task and multiplies it by the listed price per task. Then, it sums up those figures.
Here's what it looks like in Excel, but it should function the same in Google Sheets:
I need to do something specific in Crystal Report for Visual Studio 2005.
Let's say the following data:
The report regroup the data with the prdCode field, which gives something like this:
Now, I need to add a subtotal everytime one of the 4 first columns changes (Lot / Cédule/ Brand/ Contenant in the report). In this case, I should have a subtotal for the first row (lot=153363 and next one is 171008). Then, another subtotal at the last line of lot=171008 and Cédule = 023854. Then another subtotal at lot=171008 and cédule = 023863, etc.
I have no idea how I can do this. Adding Groups won't help, as I will have 5 group footers display for the first row only. In the case of the above image, I should display only 5 subtotals. A subtotal is the sum of the Total Gross/Tare/Net fields.
Anyone can help me out on this?
thanks for your time and help
Yes you are correct adding 5 groups doesn't solve the issue and also it doesn't make any sense, Instead combine all your fields and create a single group that will seggregate the records as required.
Try following approach.
Create a formula #grouping and write below cide
ToText(Lot)&ToText(Cédule)&Brand&Contenant
Now create a group with this formula and take summary in group footer
I am making one Crystal Report for bills.
Bills Table :
BillID(pk), PartyName, BillDate, Loading, Unloading.
BillDetails Table:
ID(pk),BillID(fk),Item, Quantity, Rate, Amount.
In the database expert I have joined the 2 tables.
I want the report like this:
BillID PartyName BillDate
SALE EXPENSES
ITEM QUANTITY RATE AMOUNT LOADING 10
toy 2 2 4 UNLOADING 20
doll 7 6 42
ball 8 6 48
cell 5 6 30
TOTAL : 160 30
NET: 160
- 30
130
The problem is that the loading and unloading appear only once per bill while the biil contains multiple items.
How I can mix details section with items that appear only once(loading and unloading) ?
You have at least two options for presented layout:
Use subreport for displaying loading/unloading values (link with bill ID)
Put your loading/unloading fields into special group header section (group by bill ID) and make that section "underlay following sections"
If you can dispaly loading/unloading values on separate row, then place them into appropriate group header/footer and you're done.
I think you'd need to use both of the options in Arvo's answer together to get what you are wanting.
I'd first create your subreport for "Loading and Unloading" and place it in the header with Item, QTY, etc and then set that header to "underlay following sections". This will get you the details of the subreport, but then you need to capture the total to send back to the main report.
To get this info you'll need to create a shared variable in the subreport for the total and then you can reference it in your formula in the main report's "Net" footer section.
Hope this helps.