Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 4113 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I know this is easy but IM not particularly good at formulas.

Can you please redo this calculation using the "Let Function"

 

Sum(invoices|INVOICE_LINES::c_totalTax) *(taxRate/100) -

Sum(invoices|INVOICE_LINES::c_totalTax) *(taxRate/100)*discValue/100

 

Thanks

Posted

For example:

Let ( [
	~totalTaxSum = Sum ( InvoiceLine::totalTax ) ;
	~taxRate = taxRate / 100 ;
	~discountRate = discValue / 100 ;
	~totalWithoutDiscount = ~totalTaxSum * ~taxRate
] ;
	~totalWithoutDiscount
	- ~totalWithoutDiscount * ~discountRate
)

Another way to do it without any need for the Let function (though the Let function might still improve the readability) just takes a little algebra:

Sum ( InvoiceLine::totalTax ) * taxRate / 100 * ( 1 - discValue / 100 )

This topic is 4113 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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