Only take up space on printed receipt if a row in a portal has a value in FileMaker - filemaker

What I'm trying to do:
Print out a report that's a lists orders for a customer with a "grand total" that displays about 1 inch below the last order...whether there be 1 row, 4 rows, 10 rows, etc.
What I've done:
I have a "Customers" table and a related "Orders" table.
I created a layout (based on the "Customers" table) that will be a report I print.
I have inserted a portal to display orders and had to choose the maximum number of rows.
My question:
How do I ensure that the "grand total" will appear an inch below the last row in the Orders portal and not at the same spot on the page no matter how many orders? Right now, since I selected the number of rows in the portal as 10, someone that has 1 order will have a printout that has the one order but then a lot of whitespace before the "grand total" appears.

Portals are not print-friendly. Print your report from the Orders table, and use sub-summary parts to show customer data and sub-total.

Related

Data studio Pivot report and want to select only top 10 records

I have a pivot table in data studio where payments per customer is displayed as Total payments per customer and also i have one more dimension to show payments per hour for the same customers . Now i want to display only top 10 customers in the report based on their total values.
I had created one pivot table in data studio and selected row dimension= customer name, column dimension= payment time and metric=sum(amount) .
want to display top to customers only based on sum(amount) is this possible ?

Crystal Reports Crosstab Summary Row Count of Subset of Data

I have a crosstab report that counts the instances of records (that I have previously filtered via the Section Formula Record method).
I would now like to also include a second count of the records that are a subset of the original set of records.
IE In my booking app, I have a count of all the booked seats in a restaurant, I would now like a count of all the seats that were booked online. (and of course this is all grouped by restaurant at the top and then each row is the day.
I hope that makes sense, - thanks in advance.
Create a formula such as IF <Booked_Online> Then 1 ELSE 0
Then, SUM that formula to get the count of booked online.

How to select a specific record/row of data in Crystal Reports?

I have my sql database Views available to my report, but sometimes they return multiple values, for example I have one that shows me the Total Credits for a range of years.
When I click "Browse Data.." it lets me see what bits of data are available
Eg:
Credits
-------
31
45
460
But I want to select 45 (based on a customer ID)... is it possible to do this?
EDIT: An alternative is if I can link the Customer ID from two views, but only if it's not null (as sometimes there are no records in the Credits)
To avoid the problem of unintentionally "deleting" customers from the report results, first do a left outer join between the CONTRACT_VIEW and the year views, such as TOTAL_2013. In your selection formula, instead of just doing something like {TOTAL_2013.Customer_ID}=MyCustomerID, add all the nulls to it as well, so: isnull({TOTAL_2013.Customer_ID}) or {TOTAL_2013.Customer_ID}=MyCustomerID. This will prevent customers who don't have any entries in the by-year views from being removed completely from the report.

In Crystal Reports, can you group by two tables which are both many-to-one with the top group?

I am working on a Crystal Report that breaks down data first by Receipt ID, and then I need two groups both under Receipt ID, but that aren't related to each other.
So instead of three levels of grouping, I need to somehow have only two levels like following:
Group: Receipt_ID
Group: Receipt_Detail.Line_Number
Group: Receipt_Deduction.Description
Here is an example of what it should look like:
Receipt ID Line Number Weight Dollar Amount
091911001
1 17,640 $2116.80
2 16,860 $1180.20
3 17,200 $1204.00
MAC Peeler Rate 17,640 0.0027
MAC Juicer Rate 34,060 0.0011
091911007
1 40,000 $10050.00
2 13,500 $2600.00
MACMA Rate 53,500 0.0350
And so on.
Is there anyway to do this sort of thing in Crystal Reports 10?
A subreport! That would be the cleanest way.
In the receipt ID footer, insert a subreport.
In the subreport, use the Receipt_Deduction table.
In Subreport Links, select records in the subreport based on Receipt_ID = Receipt_Deduction.Receipt_ID
Move your deductions content to the subreport's detail section.
In the parent report, remove the Receipt_Deduction group, and perhaps the detail table too.
If you want, you could even move your detail content to the Detail section, so you can remove the Receipt_Detail group.

Crystal Reports 2 column crosstab

Using crosstab expert in CRpts, populating the columns selection with 2 column names and using preview, report has I cannot tell what is what. Report has helpdesk total by date and out of that total there is a group count for another dept. Report looks great with one column selected. However, once I select a column fr db and select it to the columns with Crosstab expert, the columns in the report preview are displayed but hard to tell what is what since I get No and Yes columns. I also have Keep Groups together, column totals on top, and Row totals on left "checked" out.
I want to be have: grand toatl column(for helpdesk) total for Dist. Classrooms afected totals
Can you help? I am also new to CR and have not been able to make a "hit" researching.
Based on the above, I want a report to look like:
(col 1) (col 2) (col 3
Date Group District Classes Affected
Crosstab expert has: 2 rows, 2 summaries(sum on date and grandtotal on top), 1 col(which works great with only col 2 used as column but not when I include col 3).
District is count of district's in group
Classes Affected is count of groups count.
Is this better?