Thank you for visiting the FileMaker Reports Explored blog. I recently moved this content over from my blogger account. Hope you like it! When you get a chance, check out the centralized search feature for all the FileMaker blogs found along the right side panel. It is quite handy!

Tuesday
May132008

FILEMAKER: Free Graphing/Charting Comparison Report

From Dwayne Wright - Certified FileMaker 9 Developer
www.dwaynewright.com
info@dwaynewright.com
TWITTER: dwaynewright

How cool is this? Very cool indeed!

My good friend Chris Kubica at Application Architects, LLC has released another one of their free reports comparing third party products for a particular purpose. This report reviews the many great FileMaker-based solutions and plug-ins you can use to easily add graphs and charts to your databases. You can check it out at http://www.applicationarch.com/compare.htm .


=
More info about the author and FileMaker in general, contact me at info@dwaynewright.com.

© 2008 - Dwayne Wright - dwaynewright.com

The material on this document is offered AS IS. There is NO REPRESENTATION OR WARRANTY, expressed or implied, nor does any other contributor to this document. WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Consequential and incidental damages are expressly excluded. FileMaker Pro is the registered trademark of FileMaker Inc.

Wednesday
May072008

FILEMAKER: Plan Your Report then Report Your Plan

From Dwayne Wright - Certified FileMaker 9 Developer
www.dwaynewright.com
info@dwaynewright.com
TWITTER: dwaynewright

Before you go into layout mode to create your new report, you probably should take a step back and look at what you really want the report to do for you first. In most cases, a report is designed to give you feedback about what is going on with the data inside your FileMaker solution. If your FileMaker solution is running on all cylinders, then your report will tell you want is going on with the business (in regards to the parameters of the report). Abstracting that concept a bit further, the report will tell its audience ...

- things are unbelievably good
- things are good but look at this dip over here
- things are about the same
- things are not as good as we hoped
- things are not very good at all

and of course my favorite ...

- things are ... “what the devil does this mean?”

Reports are designed to help those that read them make educated business decisions based upon organized data. Sometimes the business decision is that no new decisions have to be made, but that is still a decision.

In some cases, you may tweak an area of the business that you are reporting on and then run that report frequently to see if the business tweak is returning positive results or perhaps additional tweaking is necessary.

So reports are a process of going from the top view downward, so starting with the end in sight for your FileMaker reports is generally a good idea. In many cases, it is not a bad idea to plan and document the reports you want from a database BEFORE YOU CREATE THE DATABASE! This is because reports organize data into information and that organization is database structure dependent.

One good way to plan your report is to draw it out on paper. This is very old school but it is also very low impact. When you take a drawing of a report to someone for feedback, they know it is just a rough draft. They can focus on the intent of the reports purpose and not the data within it.

Another good but totally opposite way to plan your report is to do a mock one in FileMaker or Excel. This is also a great way to organize your thoughts and illustrate them to others for feedback. However, I have found that computerized reports seem to draw people to the data, even if you tell them the data is bogus. Handwritten reports seem to be a bit more effective in overall report planning that benefits from the feedback of others.

By the way ...
Reports can also be found set dependent, because they report on a given slice of the overall information. So you might need to make sure you have searchable and sortable fields readily available for your reports to use. Take that into account when you are designing the actual report itself.
=
More info about the author and FileMaker in general, contact me at info@dwaynewright.com.

© 2008 - Dwayne Wright - dwaynewright.com

The material on this document is offered AS IS. There is NO REPRESENTATION OR WARRANTY, expressed or implied, nor does any other contributor to this document. WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Consequential and incidental damages are expressly excluded. FileMaker Pro is the registered trademark of FileMaker Inc.

====================== ADVERTISEMENT ==============================
For more information on the InBizness SOHO and other quality FileMaker framework solutions, please visit http://www.dwaynewright.com/solutions.html

Sunday
Apr272008

FILEMAKER: A READER ASKS: Donation Totals By Campaign And Donor

From Dwayne Wright - Certified FileMaker 9 Developer
www.dwaynewright.com
info@dwaynewright.com
TWITTER: dwaynewright

A READER ASKS
First, thanks for your FileMaker Portals blog. I've been browsing through and found lots of valuable tidbits.

I realize I'm being a little presumptive and will understand if you say "no." But, is there any chance you can help me figure out how to do something?

I am trying to create a simple donation tracking database for our local volunteer emergency medical services agency. I'm no expert but I'm reasonably able when it comes to FileMaker. But, the one feature I need has me stymied. A given donor may make zero, one or more donations to any given campaign -- for example, our 2008 Spring Fund Drive. I am looking for a portal that summarizes their donations by campaign.

John gave $50 for A, $50 for B, another $50 for A.
So, our portal would show

A $100
B $ 50

I would also like to able to search through this portal so, for example, I can find those who gave more than $100 (need to send them an acknowledgment for tax purposes), who gave last year but not this year, etc.

-------
DWAYNE RESPONDS
Well, what you are asking for isn’t really that simple. You are looking to search for the aggregate total amount of a user for a particular campaign. If you have other users in this database, you might want to script the process. Anyway, here is how I went about it...

Here we can see your relationship graph in the file you sent me before I tweaked it.

Since the main thing we are searching is donations, we will want to start in that table. What I want to do is have each donation record calculate the sum total of all the donations by that same donor and for that same campaign. So I am going to create a self relationship and it will have a two level comparison.

Here we can see the self relationship of donations to donations and the relationship requires that the campaign and the donor id be the same value for all records for a valid relationship.

Next, I created a calculation field to know the total donations for the same campaign by the same donor within my Donations table. I named by field .... SUM_campaigndonationsSameDonor ... which is a little verbose but I can live with it.

My calculation for this field is ...
Sum ( Donations_selfByDonorID::Amount )

I added this new field into my portal row but you still cannot search upon it. This is because the field is a calculated value based on relationships and FileMaker cannot calculate a second level aggregate in find mode. So you need to do your search from a layout in the donations file.

FYI... To help keep users from trying to do this, I made the Campaign sum field that I put in the portal unavailable to click into while in Find mode.

So here I decided to write a script. I named my script Find Campaign Donations By Donor. I added comment script steps before hand, to visualize what I want to do and will fill in the actual steps later.

Here you can see my script with just the comments, so I have visualized the result of my script.

Here you can see all the separate script steps that I used to perform this script (click image to expand). Almost all of these steps can be searched upon in the FileMaker Scripting Explored Blog, except the Show Custom Message script step. You can get the scoop on that in the FileMaker Help, which does an admirable job.

=
More info about the author and FileMaker in general, contact me at info@dwaynewright.com.

© 2008 - Dwayne Wright - dwaynewright.com

The material on this document is offered AS IS. There is NO REPRESENTATION OR WARRANTY, expressed or implied, nor does any other contributor to this document. WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Consequential and incidental damages are expressly excluded. FileMaker Pro is the registered trademark of FileMaker Inc.
====================== ADVERTISEMENT ==============================
Click Here To See The FileMaker Book (via a blog) homepage!
===================================================================

Sunday
Apr132008

FILEMAKER: Summary Fields And Reports

From Dwayne Wright PMP
Certified FileMaker Developer

WEB: www.dwaynewright.com
EMAIL: info@dwaynewright.com
TWITTER: dwaynewright
YOUTUBE: FileMakerThoughts

Please Note: If you are viewing this page in a news feeder, the images may get munged up a bit. For the best experience, please visit the journal directly by clicking (here).

Summary fields are normally used to return a numerical result for records in a current found set or that fall within a sub-summary part of a layout. Some examples would be monthly sales, averages of profit per product and other such numerical decision making aids. Summary fields are one of the eight possible choices in the Define Fields dialog box. Just like calculation fields, you cannot enter data into a summary field while in browse mode.

Do not be misled into thinking that summary fields have to be about numbers only. You can summarize numerical data from text, date, time and even container fields with the COUNT OF, MAXIMUM OF or MINIMUM OF options. The summarized total can be affected at any moment and shown live. Typically, it's not a good idea to put a summary field on a data entry screen because the data entry screen may be tied up doing a recalculation on a summary field. You then have to wait to do your work until the calculation is complete. This isn't too bad on moderately sized databases but as the database grows, the delay in recalculating the summary field will grow also.

One thing which is often confusing to new users is a summary field calculates on the current found set or the grouping that applies to a sub-summary part. This means you have to take into consideration the "found set" when you have summary fields in reports that run from scripts. Say, for instance, you have a summary field for sales named "Sum of Sales." It's the sum of a field called Subtotal. We used the Subtotal field because we don't want tax or shipping amounts to show in our sales number. If you perform a find for sales in 1998, this field will show the sum total for those records. If you search for June of 1998, it will only result in the total for those records.

Working with three sub-summary layout parts on a layout, the first shows a sub-summary when sorted by year, the second by month and the third by salesperson. When you put the same summary field, in this example, "Sum of Sales" in each part, you get three different answers (after you do the correct sort operation, of course). The first time the summary fields appears (in the part sorted by year), it will give you the annual totals, the second time by each month and finally by each sales person for that month. It will look something like this....

2003 Sales Total $150,000 << Sum of Sales field
----------------------------------
June Sales Total $15,000 << Sum of Sales field
----------------------------------
Dwayne Sales Total $10,000 << Sum of Sales field
Edward Sales Total $5,000 << Sum of Sales field
----------------------------------
July Sales Total $20,000 << Sum of Sales field
----------------------------------
Dwayne Sales Total $1,000 << Sum of Sales field
Edward Sales Total $19,000 << Sum of Sales field

As you can see, the field has a different total in each sub-summary part but it is the same field on the layout. Again, you will have to sort the database by year, month and sales person before the totals will show. The reason the data needs to be sorted is so it can be grouped accordingly with the sub-summary parts. It should also be noted that summary fields in sub-summary parts can only be viewed on the printed page or in FileMaker Preview mode.

Quick Note: For reports with multiple sub-summaries, you have to make sure your sort order matches when you run the report. The best way to ensure the sort order is correct before printing a report is to automate the process with a script. This way, you don't have users trying to memorize complex sort orders for reports. Also, make sure none of your layout elements extend across two or more layout parts. If you do, chances are it won't appear at all or make your report look real goofy.

There are seven different types of summary fields, which are:

Total Of
Average Of
Count Of
Minimum Of
Maximum Of
Standard Deviation Of
Fraction of Total Of

The following discusses these in more detail...

TOTAL OF - Returns the total of a selected numeric field (or calculation field with a numeric result) for all the records in the current found set. This would be used to give you a total of sales in a sales report. There is a check box option called "Running Totals" that will summarize the current total as to move from one record to the next . This is the equivalent of a spreadsheet sum function where 2 + 2 + 2 = 6.

AVERAGE OF - Returns the average amount of a numeric field (or calculation field with a numeric result) for the current found set. This can be used to give you the average sale in a sales report. Say you are doing a report on product sales for the month of July. You have a multiple structured pricing scheme based upon the quantity purchased on one invoice. The average summary field would be great in figuring out what your average profit is per unit by subtracting... well ... should I say it.... the average cost of the product for the month. There is a check box option that is labeled "Weighted Average." This will weigh the calculated result based upon a field that you choose in the scrollable list to the right. Average is the equivalent of (2 + 3 + 4) / 3 = 3

COUNT OF - Counts the number of valid, populated entries in an indicated field. It is important to know that the Count function is intelligent enough to ignore empty fields and will not count them. One popular method of using the Count option is in the sub-summary part of a monthly sales report. Here you can get a count of the number of invoices for each month in the found set and using the Total option, you can get the total sales amount. For example for June 1999 (54 sales - $5,000) and for May 1999 (49 sales - $4800).

MINIMUM OF
- The smallest value (number, date or time) of a particular field in the found set of records or for the set of records in a sub-summary part. Using the same monthly sales report example discussed above where June 1999 (54 sales - $5,000 Smallest Sale Was $10.00) and for May 1999 (49 sales - $4800 Smallest Sale Was $20.00).

MAXIMUM OF - The largest value (number, date or time) of a particular field in the found set of records or for the set of records in a sub-summary part. Using the same monthly sales report example discussed above... June 1999 (54 sales - $5,000 Largest Sale Was $500) and for May 1999 (49 sales - $4800 Largest Sale Was $300).

STANDARD DEVIATION FUNCTION - A statistical element that shows how much a field value deviates from one record to another. It has a check box labeled "By population" that changes it from a statistic to a population element. A good example of how Standard Deviation might be used is if comparing test scores for different schools, the standard deviation will tell you how diverse the test scores are for each school.

FRACTION OF TOTAL OF - Returns a fractional representation of a value you specify against all the values in a numerical field (or calculation field with a numeric result) for a found set of records.

=
More info about the author and FileMaker in general, contact me at info@dwaynewright.com.

© 2008 - Dwayne Wright - dwaynewright.com

The material on this document is offered AS IS. There is NO REPRESENTATION OR WARRANTY, expressed or implied, nor does any other contributor to this document. WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Consequential and incidental damages are expressly excluded. FileMaker Pro is the registered trademark of FileMaker Inc

Tuesday
Apr082008

FILEMAKER: Creating A List View Via The Assistant

From Dwayne Wright
Certified FileMaker 9 Developer
www.dwaynewright.com
info@dwaynewright.com

A list layout is the most simple type of report and creating one is very easy in FileMaker. So I thought that I’d cover it quickly before we go too deep into all the different aspects of FileMaker’s report design options.

Step 1 - Open an existing FileMaker file or create a new one from scratch. Make sure the file has a few fields in it that could be used in a list. This can be something as simple as first name, last name and phone number. Make sure you have 3 or more records worth of data in the file as well.

Step 2 - Next we need to put FileMaker into layout mode. This can be done a number of ways. You can choose layout from the View menu, use the keyboard shortcut ( Command L for Macs ) ( Control L for Windows ), you can use the pop up menu in the lower left corner of the screen or you can even execute a script that has the Go To Layout Mode script step within it.

Multiple Ways To Enter Into Layout Mode

Step 3 - When you enter into layout mode, you will notice that you now have a Layout menu option. From here, select to create a new layout by selecting the first option of New Layout / Report. In the following dialog box, select the Columnar list / report option and click the Next button.

Step 4 - The next window in the assistant allows you to create a simple list or a report with grouped data. The grouped data option uses the sub-summary layout part that we discussed briefly earlier. We won’t go into that option now but will explore it in detail ( maybe more detail than you really want ) later on in this guide. So from here, select the first option of Columnar List / Report. There is one option to this setting of Constrain to page width. This means the fields will only extend to the defined print limits of a page. This is great for layouts you know that are going to be printed and not so necessary for view only lists. We haven’t covered this yet but you can have 2 layouts with the same data. One for viewing and one for printing. You can write a script that will print the layout best suited for printing from the layout the user is viewing. Depending on the printer you are using, you can use smaller font sizes that a user can view comfortably from a computer screen.

Step 5 - The next window in the assistant allows you to specify the fields you want in the layout. You can select the fields you want from the list on the left, click the move button and the field will appear in the list on the right. The list on the right reflects the fields that will be on the layout in the order they will appear. You can move these fields up and down in the list to change the order in which they will appear. We should also mention that you can use fields from a valid relationship as well in this layout. The related fields can be found from the pop down menu right about the left hand list.

Step 6 - The next window will allow you to choose a sort order for the report. This doesn’t really mean anything unless you have a script attached to this sort order. FileMaker will not sort a found set of record by simply going to a particular layout. This option can be valuable for reports using sub-summary parts with their necessary break fields. Using the assistant, you can create a sub-summary type of report, specify the sort order and build the script all on the fly. This isn’t necessary for this discussion but we will cover it when we are covering those types of reports. For more information on sort options, check out all the posts we have in my found set blog.

CHAPTER 3: Sorting The Found Set Explored (17)

Step 7 - The next window is used for you to choose one of the provided FileMaker themes. Some of these themes may seem to be a little odd to you and not that business like. However, it should be noted that some of these themes look great when used with the Instant Publishing option of the Web Companion. On the internet, many of these themes look stunning. If you know XML, you can create and save your own themes.

About The Layout Assistant And Themes

Step 8 - The next window is very cool. It allows you to show information in the header and / or the footer that tell the user something about the list / report. Some of this information can be seen when you are viewing the layout in browse mode and some of it can only be seen when in print preview or when printed out.


Step 9 - The next window allows you to create a script on the fly for going to this layout. This can be very useful for complicated reports that have multiple steps. The script that is automatically created for you is very basic.


Step 10 - The final step asks you what mode you want to be in when the assistant ends. You can be in preview mode for those complicated reports using sub-summary parts. However, most of the time you will want to be in layout mode. This allows you to add any customizations you want on the newly created report.

=
More info about the author and FileMaker in general, contact me at info@dwaynewright.com.

© 2008 - Dwayne Wright - dwaynewright.com

The material on this document is offered AS IS. There is NO REPRESENTATION OR WARRANTY, expressed or implied, nor does any other contributor to this document. WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Consequential and incidental damages are expressly excluded. FileMaker Pro is the registered trademark of FileMaker Inc.

====================== ADVERTISEMENT ==============================
For more information on the Virtual One On One Training, please visit http://www.dwaynewright.com/training.html
===================================================================