Function overview
Prototype
related.sumIf (
relatedField; test )
Parameters
relatedField The related field you would like to perform the test on
test A test to be evaluated.
Description
Tags:
SumIf Sum Simulation Related List Excel
Sums the values in relatedField where they meet a certain requirement.
See the required List.filter function for more information on the tests that can be performed.
If you want to use this in a version lower than 8.5, see the FM8List function as an alternative to "List".
Examples
Sample input
realted.sumIf ( Assignment_Marks::percentage ; "value >= 50 AND value < 100")
Sample output
The sum of all the values in Related::Field that have a value between 50 and 100.
Function code
List.Math( "sum" ; list.filter( List(relatedField) ; test ; "number" ) )
// ===================================
/*
This function is published on FileMaker Custom Functions
to check for updates and provide feedback and bug reports
please visit http://www.fmfunctions.com/fid/210
Prototype: related.sumIf( relatedField; test )
Function Author: Genx (http://www.fmfunctions.com/mid/29)
Last updated: 07 March 2009
Version: 1.2
*/
// ===================================
List.Math( "sum" ; list.filter( List(relatedField) ; test ; "number" ) )__LITBR____LITBR__// ===================================__LITBR__/*__LITBR____LITBR__ This function is published on FileMaker Custom Functions__LITBR__ to check for updates and provide feedback and bug reports__LITBR__ please visit http://www.fmfunctions.com/fid/210__LITBR____LITBR__ Prototype: related.sumIf( relatedField; test )__LITBR__ Function Author: Genx (http://www.fmfunctions.com/mid/29)__LITBR__ Last updated: 07 March 2009__LITBR__ Version: 1.2__LITBR____LITBR__*/__LITBR__// ===================================
Login or register to comment
Create a new account with fmcustomfunctions.com or login to post a comment.
Comments
09 March 2009
20 January 2010
Related.SumIf ( Data_Metrics::SalesDolars; Data_Metrics::WK=1)
Can't seem to get it to behave, any advice?