ZippyT Posted June 24, 2016 Posted June 24, 2016 "Amount" has tax applicable defined by Value List ("Yes"/"No"). I am trying to sort by "Tax Applicable" (taxable and non-taxable). Data is in another table so i have included a "Sum" part to the calculation. Tax Applicable with Subtotal, tax, and Total; Not Tax Applicable; and then a Grand Total for everything. I have tried this type of calculation: If ( Tax Applicable="Yes" ; Sum ( Amount );0 ) and in another field: If ( Tax Applicable="No" ; Sum ( Amount );0 ) It doesn't work. Any ideas? Thanks.
comment Posted June 24, 2016 Posted June 24, 2016 I don't understand your question - esp. the part about data being in another table. Why can't you sort by the 'Tax Applicable' field directly? If - as it seems - you also want to show a separate sub-summary value for each group, you should use a summary field defined as Total of Amount, and place it in a sub-summary part (when sorted by Tax Applicable), as well as in the Grand Summary part.
Fitch Posted June 24, 2016 Posted June 24, 2016 If you're trying to calculate sums of related data, you may want to calculate or auto-enter the amount into separate fields in the related table. E.g.: If ( Tax Applicable="Yes" ; ( Amount ) ) So in the parent table, your calcs would look like: Sum( TaxableAmount ) and in another field Sum( NontaxableAmount )
ZippyT Posted June 24, 2016 Author Posted June 24, 2016 Fitch, you are an incredible imaginary friend. Your solution works fabulously! Thanks so much. I suppose this is kinda what you were getting at Comment. My next step is to make it all work in a report setup with all of that summary stuff. Thanks again. You made my day!
Recommended Posts
This topic is 3142 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 accountSign in
Already have an account? Sign in here.
Sign In Now