FMPRO-L Archives

November 2011, Week 1

FMPRO-L@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Steve Cassidy <[log in to unmask]>
Reply To:
FileMaker Pro Discussions <[log in to unmask]>
Date:
Mon, 7 Nov 2011 22:48:37 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
On 7 Nov 2011, at 11:34, Emma Glaisher wrote:

> My database is a job tracker. The job is a publication which is broken down into sections, so the (relevant) fields are:
> 
> Section No, Total Pages in Section, Date Approved
> 
> I want to display the total pages that have been approved, preferably without the user having to go into Preview mode and view sub-summaries. (I maintain it, the only user is my line manager who needs to report on progress daily).
> 
> So I wanted a calculation like ‘Sum of Total_pages_in_section where Date_Approved is not blank’, but I don’t think this can be done.
> 
> Is there a clever trick I’ve missed? 

Emma

If you are using FMP11, you can display subsummary parts in browse mode. Might that solve the problem?


On the other hand, if you do want to use the Sum function, you need to know that it acts on a set of related records. In your shoes, I'd have a table Publications with a child table Sections, related by publication_id. In Sections, I'd add a field Approved_Pages, with a calculation something like Case(not isEmpty(Date Approved), Total Pages in Section, 0). Then in the Publications table, add a calculated field using the Sum function, summing Approved_Pages. Place this field on a layout, and for each record in Publications you'll see the corresponding number of approved pages for that publication.

I hope that helps you move forward...

Steve

ATOM RSS1 RSS2