Hi,
I'm struggling to create a field that should calculate the status of our customers.
I want it to add up three different sales figures and put out 'true' if the sum equals = 0,00€ or ist bigger than > 0,00€
Like so:
ifElse(equal($sales_figure_one_c,) + ($sales_figure_two_c,) + ($sales_figure_three_c,) = 0.00, "example customer",
or
ifElse(equal($sales_figure_one_c,) + ($sales_figure_two_c,) + ($sales_figure_three_c,) > 0.00, "example 2 customer",
In addition to that I want the same field to check up on how long the company has been one of our customers.
Like so:
1. sum of sales figures = 0 AND
ifElse(equal($date_entered, <="today-365days"),"target",
or
2. sum of sales figures > 0 AND
ifElse(equal($date_entered, <="today-365days"),"new customer",
I think I got some things mixed up in this one, it's hard to relate the date entered to the present day....
In the end we want to classify three different types:
1. A company that has been our customer for less than 365 days but didn't place any orders yet >>("target")
2. A company that has been our customer for less than 365 days and has already placed an order >>("new customer")
3. A regular customer that hasn't placed any orders since 365 days >>("lost")
Maybe it's easier to just create another 2 fields and relate to them?
Like so:
1st field: add up all sales figures
2nd field: check up on $date_entered ..."longer than 365 ago" .... or...."within the last 365 days".....
I'm quite new to this, but I'm trying my best to do stuff all by myself...
Can anyone assist me on this case?
Thx!