
converting to 'repeating' fields
Andy you need to read the original more carefully. He does not have a
repeating field, he wants to create one for field populated as a list ie:
Field A Field B Field C Field D.
Product 1 Quanity of P1 Price of P1 Sales of P1*
Product 2 Quanity of P2 Price of P2 Sales of P2*
Product 3 Quanity of P3 Price of P3 Sales of P3*
Product 4 Quanity of P4 Price of P4 Sales of P4*
*I assume he means the quanity x price
All of this being in one record with returns after each number. Gareth if this
is not correct, please let us know what you meant.
Gareth,
I would first create a serial number field if there is not one already. Then
export it and the four field to a tab delimited file. You will then have to go
into it in a wordprocessor and massage them in to this:
Serial No.[tab]Product 1[tab]Quanity of P1[tab]Price of P1[tab]Sales of P1
Then import it into a new file and relate that back to your main database.
If you are still confused feel free to call me.
Steven Scharf
SCS Media Services
57 East 11th Street, 9th Floor
New York, New York 10003
212-822-8555
Andy replied :
Hi Gareth!
I would export the repeating filed to a new related FileMaker Pro file,
splitting the repeating fields to different records. This will make the
calculations children's play.
Hope this will help!
Andy
Quote:
> I have established a database from imported (tab-separated) values that
> contains records of a store's sales transactions. Each transaction is
> one record. In one (non-repeating) field - call it A - I list the items
> bought, separated by return characters. In another (B), the quantity of
> each; in the next (C) the price of each, and in another (D) the sales
> value of each.
> So each of these fields contains a column of numbers or text. The
> database is not required to calculate the sales values - these were
> supplied to me in the original text file.
> What I can't do is calculate the total sales value of the transaction
> (i.e. the total of the numbers in column D). I won't do this manually
> because there are 6,800 records.
> I believe that I need to reorganise the data so that field D (at least)
> is a repeating field. Then I can use the 'sum' function.
> But I cannot figure out whether and how it is possible to reconfigure
> this database (once populated) so that each item in (D) is a separate
> repetition, instead of merely appearing on a separate line with a return
> between lines. Am I missing something really simple?
> If not, can I still export field D, manipulate it externally and then
> re-import it so that it will pop[ulate a newly created repeating field
> E? What would the required separators be, for the external file to fill
> into the repeating field successfully?
> Any help much appreciated...TIA
> Gareth John