Jump 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.

Yaer to date Sales total calculation

Featured Replies

I have 3 files, Customer - Invoice- InvoiceLine.

I want to define a calculated field in the customer file which is the total of the sales or invoice values for the current financial year. In the Invoice file, the Invoice_Value is Sum(Invoice|InvoiceLine:Invoice_Line_Value).

I tried the following

Calculated field in Invoice file to isolate invoices that fall in the financial year ; (European date format)

If(Invoice_Date>31/04/2002 and Invoice_Date<01/05/2003,Invoice_Value,0)

I would then define another sum() field in the customer file, using the Customer ID relationship.

However, it doesn't work, always returning 0.

Any suggestions on how to achieve the result appreciated.

Andrew

Try this one...

If(Invoice_Date > Date(4,31,2002) and Invoice_Date < Date(5,1,2003),Invoice_Value,0)

or have a look at the Sample file I posted in the Sample Section (Handy Bits). It has a calc in there for determining in which Financial year a date lies. Then you can do sub-summary reports by FY.

Create an account or sign in to comment

Important Information

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

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.