en
Welcome Guest! To enable all features please Login or Register.
Options
Go to last post Go to first unread
Kenneth Andersen  
#1 Posted : Monday, May 23, 2016 11:02:51 AM(UTC)
Kenneth Andersen
Rank: Newbie

Groups: extranet\Forum
Joined: 5/12/2016(UTC)
Posts: 1

Hello. I've made three comparisons where I identify if an order contains a specific product "Item 2" .

Now I need to create ​​two columns / calculations. 1 column that displays order intake of orders that do not include "Item 2" and 1 column that displays the order intake of orders that do include the product "Item 2". Other orders in the two columns must be specified as "0".

Afterwards I need to make a total calculation of each column . Is this possible?
Calculations based on Comparisons
Ole  
#2 Posted : Tuesday, May 24, 2016 7:17:57 AM(UTC)
Ole
Rank: Administration

Groups: extranet\Forum
Joined: 4/7/2011(UTC)
Posts: 320

Hi Kenneth,

Yes, I think it is possible.

Based on the work you have already done with regard to comparisons, I will use the fact that comparison element number three will have Quantity Sold (m2) different from zero on order number level on orders including Item 2.

So, your first calculation will be something like this:

if sum(d3, 0(l(1,0)), m1) <> 0 then sum(d1, 0, m1) else 0

And the second calculation is the opposite:

if sum(d3, 0(l(1,0)), m1) = 0 then sum(d1, 0, m1) else 0

Best reagrds,
Ole
I work as an employee with TARGIT A/S. Any statement made by me in this forum represents my own opinion and state of mind, and is not necessarily related to or representative of TARGIT A/S.

UserPostedImage Ole Dyring
Users browsing this topic
Anonymous
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error