Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Simple Music Royalty calculation help please

Featured Replies

  • Newbies

Can you help please? I have a sales statement from itunes now in Filemaker. I have three different songs, SONGA, SONGB and SONGC. Each record has a field "Track Title" with one of the titles in it, and a "Net" field which has a numerical (cash) value. There are other fields which are not needed. I need a script to calculate each specific songs total added Net amount and display it after searching the 200 or so records. Any ideas musch appreciated or if anyone knows of a similar script I could look at that would be great.

Hi John, and Welcome to the Forum

What version of FileMaker, Operating System, and Platform are you using.

You can enter this information in your Profile, and then you won't have to supply it each time you ask a question.

Go the the [color:red]Menu Bar, click on [color:blue]MY PROFILE >> Control Panel >> [color:orange]FileMaker Questions (bottom of the list)

Lee

  • Author
  • Newbies

oops, thanks!

  • Author
  • Newbies

this is a "basic" interpretation of what i need to happen, but i can't work this out as sadly i'm still a novice

let songacount = 0

let songbcount = 0

let songbcount = 0

loop

if tracktitle = "songa" then read field net

and add total net to songacount

if tracktitle = "songb" then read field net

and add total net to songbcount

if tracktitle = "songc" then read field net

and add total net to songccount

next record and repeat

end loop

display songacount

display songbcount

display songccount

You've almost constructed a script there. (Hint: look into Set Variable.) But if all you need is to view the totals, a subsummary report would be less trouble IMO.

Or, you might want to keep your songs in one table and your sales in another. Then you could have a calculated field in songs that's simply Sum( related::net ).

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.