how to create best formula for using IF ELSE?
my 10 cents here..say you calculate something based on a condition and 0 otherwise, you could structure it like
if not <condition> then 0 else <calculation>..by this way you get faster performance (lets say you are expecting 0 on more than 50% of the cells)...
Just to add onto what @ArunManickam mentioned above, you can also consider the following:
1. If you're doing a boolean test, eg If <condition> then TRUE then FALSE; then just write <condition> because it'll give you the same result.
2. If the 'If then else' starts to look big and tough to understand, you can copy it from Anaplan, and paste it in Notepad, so that you can create indentation to help you read/modify more easily, eg
"if condition A then result 1 else if condition B then if condition C then result 2 else result 3 else result 4"
can be converted into the following in Notepad, before you paste it back. Please remember to get rid of the 'Tab' before you process the formula.
"if condition A then
result 1
else if condition B then
if condition C then
result 2
else
result 3
result 4"
3. Referring to the same 'if then else' scenario in item 2, or another 'if then else' which is even longer, you can also consider breaking it into multiple line items, eg
Line Item 1 = if condition A then result 1 else if condition B then if condition C then result 2 else result 3 else result 4
can be broken up into
Line item 1 = if condition A then result 1 else Line Item 2
Line Item 2 = if condition B then if condition C then result 2 else result 3 else result 4
4. If you see a lot of 'If then else' that refers to ITEM(), eg
'If item(Product)=Product.A then result 1 else if ITEM(Product)=Product.B then .....
then you'll need to consider using another Anaplan feature, LOOKUP. Please refer to the following for more details on LOOKUP.
https://help.anaplan.com/anapedia/Content/Calculation_Functions/All/LOOKUP.html?_ga=2.142814449.55075348.1551800869-1239638901.1550667215
Thanks,
LipChean
Hello team, I am logging into Anaplan through SSO. I would like to create a batch script to import a file into Anaplan. For the Spoke model, I would like to run an process via a batch script to import data from the Data Hub. Can anyone provide me script for both the condition.
is there a way to import data with months in columns (usual excel table view)? I have to transform the data so there are rows to cover each period in the upload data form, but I am wondering if there is a better way to just import the data as is with the months in the columns. please let me know what you think. thank you,
Hello, I am receiving an 'Anaplan Upload Failed' Status Description when testing my integration with a Big Query dataset. The integration imports data from BQ to our Anaplan model. No other details given in the error log. I suspect that Cloudworks is not even picking up the file but am not sure what we did wrong on the set…