SUM function from a list with text formatted line item
How to create a SUM formula from a list but the format of the line item on the list is text
and how to automate upload data from SQL server into Anaplan
thank you
Answers
-
SUM only works on the numbers. There is a function called TEXTLIST which should do the job for you. However TEXTLIST impacts the performance of the engine, so use it cautiously.
You can use Anaplan Connect or other options. Similar thread here
Connect to SQL server - Anaplan Community
Misbah
1 -
Aggregation functions like SUM operate using LIST formatted line items on TEXT. This is because text strings are not meaningful and therefore are not able to direct the function as to what items to include in the aggregation.
Also, the target of the SUM must be dimensioned by the LIST being used in the mapping.
To use the TEXT data as a mapping in your model you need to convert the contents of the line item into a list.
Use ISFIRSTOCCURRENCE and a boolean line item to filter your module to only show unique entries. Create a saved view only showing the TEXT data and use the boolean to filter out all duplicates.
Next, use this view to update a list using an import action - Import into a list.
Create your mapping that will inform the SUM function using this updated list - SUM.
Your mapping table should contain the same dimensions as the source and contain a list formatted line item containing the relevant mapping. Here, you would format the line item using your updated list.
The target should be dimensioned by the list. The SUM function will aggregate the data as per the mapping table.
As for the automating the upload refer to @Misbah link.
Good luck,
Chris
1