Ask a Question related to FileMaker, Design and Development.
-
Fred #1
Conditional sum?
FMP6, MacOSX.2
I've created a calc field using the aggregate Sum(score) to give me a "total
points scored" for all related records in a self-join. I then created a
checkbox that, if checked, I want the score from that particular record
omitted from the Sum calc (but I want the score preserved so I can't have
the checkbox zero out the score field). Is this possible?
The only way I can think of seems clunky: create scoreForSum calc =
Case(omit = "true","",score)
I would then use Sum(scoreForSum) to obtain "total points scored".
As I said, it seems clunky with the extra field, so I was wondering if there
is a better way.
TIA,
Fred
Fred Guest
-
conditional format
Hi, Using A2K, Can anyone tell me if there is a way of using Conditional Formatting to highlight the current record in a continous form (i.e.... -
Conditional query
<CFQUERY NAME='qGetDetailThumbs' DATASOURCE='va_db'> Select hotelId, name, supplier, url, thumbnailurl FROM hotel_images WHERE hotelId =... -
Conditional compilation
I am writing a Perl script which will run on multiple machines. I have a use Expect; in the script. The problem is that Perl Expect is not... -
Conditional Value Lists
While browsing the Techinfo database on the web for the contents of the FileMaker Developer CD, I encoutered a folder describing an example of... -
Conditional Constraint?
As soon as you start doing conditional constraints, you're talking business logic. At which point, your attention invariably should turn the way of... -
John Weinshel #2
Re: Conditional sum?
That's pretty much it.
If the checkbox is formatted with a VL whose contents are 1 and 0 (or even
1), and you squish it to show only the 1 part, and it's a number field, you
can shorten to:
omit*score
--
John Weinshel
Datagrace
Vashon Island, WA
(206) 463-1634
Associate Member, Filemaker Solutions Alliance
"Fred" <fredr1@cox.net> wrote in message
news:BBC322C8.C65B%fredr1@cox.net..."total> FMP6, MacOSX.2
>
> I've created a calc field using the aggregate Sum(score) to give me athere> points scored" for all related records in a self-join. I then created a
> checkbox that, if checked, I want the score from that particular record
> omitted from the Sum calc (but I want the score preserved so I can't have
> the checkbox zero out the score field). Is this possible?
>
> The only way I can think of seems clunky: create scoreForSum calc =
> Case(omit = "true","",score)
>
> I would then use Sum(scoreForSum) to obtain "total points scored".
>
>
> As I said, it seems clunky with the extra field, so I was wondering if> is a better way.
>
> TIA,
>
> Fred
>
John Weinshel Guest
-
Glenn Schwandt #3
Re: Conditional sum?
I think that should be:
(not omit) * score
assuming that checking the box means omit = 1 and you don't want to count it
in your sum.
"John Weinshel" <john@datagrace.biz> wrote in message
news:vprr5q496i3u42@news.supernews.com...you> That's pretty much it.
>
> If the checkbox is formatted with a VL whose contents are 1 and 0 (or even
> 1), and you squish it to show only the 1 part, and it's a number field,have> can shorten to:
>
> omit*score
>
> --
> John Weinshel
> Datagrace
> Vashon Island, WA
> (206) 463-1634
> Associate Member, Filemaker Solutions Alliance
>
>
> "Fred" <fredr1@cox.net> wrote in message
> news:BBC322C8.C65B%fredr1@cox.net...> "total> > FMP6, MacOSX.2
> >
> > I've created a calc field using the aggregate Sum(score) to give me a> > points scored" for all related records in a self-join. I then created a
> > checkbox that, if checked, I want the score from that particular record
> > omitted from the Sum calc (but I want the score preserved so I can't> there> > the checkbox zero out the score field). Is this possible?
> >
> > The only way I can think of seems clunky: create scoreForSum calc =
> > Case(omit = "true","",score)
> >
> > I would then use Sum(scoreForSum) to obtain "total points scored".
> >
> >
> > As I said, it seems clunky with the extra field, so I was wondering if>> > is a better way.
> >
> > TIA,
> >
> > Fred
> >
>
Glenn Schwandt Guest



Reply With Quote

