Hi Cat,
AND is not used the same way in Pigment as in Excel, where it is a function - but as an operator, like so:
IF(Country = Country."France" AND Revenue > 1000, "Wow this is crazy good!")
Can you share your formula in a Formula Playground, and maybe describe in plain words what you’re trying to achieve?
Hi François,
Thanks for the info, it’s clear to me now. I have been able to add AND as an operator in the formula with IF function. (See below first part of the formula I tested - seems to be working for me. Still need to add some more nested IF functions, but I know how to use AND now )
We have a transaction list with a list of orders currently processing at our DC (updating daily), and I want to be able to to flag the ones that are processing for too long without being shipped and see the overall quantity of these. I am using a formula in a property to calculate an ‘Order aging’ dimension to flag the orders that are not shipping quickly enough, and then I will make some metrics based on this to both view monthly trends in a board and provide a list of older orders to flag. The formula needs to use both IF and AND as for different order types there are different criteria for what we would consider problematic aging. For anything older than 7 working days it needs to be flagged, but then on top of that for certain customers/order type combinations it needs to be flagged already if it is older than 2 days, while for another we need to flag it if it didn’t ship same day, and so on.
Below first part of the formula since you asked, but I think I’m on the right track now and will be able to add the rest of the nested IF functions and then create the metrics without any issues.
IF('SO Sequence'.'NETWORKDAYS DN Creation'>7,'SO DN Aging Check'.Name."Check",IF('SO Sequence'.'Document Type Cluster'='Document Type Cluster'.Name."Direct" AND 'SO Sequence'.'Sales Channel'='Sales Channel'.Name."Retail O&O" AND 'SO Sequence'.'Season Year'='Season Year'.Name."9999" AND 'SO Sequence'.'WEEKDAY SO Creation'=2 AND 'SO Sequence'.'Created By'='SO Created By'.Name."RFC_PCP300" AND 'SO Sequence'.'NETWORKDAYS DN Creation'>0,'SO DN Aging Check'.Name."Check",'SO DN Aging Check'.Name."OK"))
Thanks again,
Cat