on 07-28-2015 8:49 PM
I am using two flat Excel files as my database linked by the key table Code.
One table (Cost) has my costing figures and the other table (Data) is a dump from Quickbooks with my sales figures.
I need to calculate Total Cost by multiplying Quantity by Cost from the Data Excel file by the Cost in the Cost Excel file.
However, in the Code table of my Data file I have elements which are not in the Cost file, such as Credit Note, Miscelaneous, and Sales Discount.
So, when multiplying Quantity x Cost they are eliminated from the calculations.
I tried the following formula WHICH has not worked...
IF {Data_.Code} = "Credit Note"; "Miscelaneous"; "Sales Discount"
THEN {Data_.Total Sale}
ELSE {Quantity} * {Cost}
Any help?
Thank you.
Thank you for your prompt reply Abhilash.
Nevertheless, the suggested approach has not worked.
After entering that formula I get "The ) is missing" error (please see screenshot).
I tried the same formula with one variable ("Credit Note", which was accepted, no error message), and everything else was calculated, but the variable "Credit Note".
I can't get my report to reflect the true final figure because of this odd records...
Any more help would be appreciated.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have created a mockup of my report and you can get the CR file and the Excel database here https://www.dropbox.com/sh/pm6ixqf8xv55kqg/AADXY8wu_ORFA81rcG_KVXcaa?dl=0
Maybe you can spot the issue.
Thank you.
Hi Rony,
Try:
IF {Data_.Code} IN ("Credit Note", "Miscelaneous", "Sales Discount")
THEN {Data_.Total Sale}
ELSE {Quantity} * {Cost}
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.