CSV Upload - Help

Highlighted
Occasional Contributor

CSV Upload - Help

Hi,

I have a CSV file with Time Period, however, this fails to upload into Anaplan.  How do I fix this?

Thanks

 

CommunityMember113484_1-1603466272648.png

 

 

CommunityMember113484_0-1603466257807.png

 

6 REPLIES 6
Highlighted
Occasional Contributor

Re: CSV Upload - Help

Hi

Anaplan can automatically identify only a particular formats of time. Please check https://help.anaplan.com/anapedia/Content/Import_and_Export/Import_Data_into_Models/Map_the_Timescal...

 

You have to set up time settings as shown below. Either M-Y or MMM?YY. Question mark will allow any character between M and Y2020-10-23_18h29_26.png

 

Highlighted
Master Anaplanner/Community Boss

Re: CSV Upload - Help

If @KirillKuznetsov 's solution does not work for you, can you open the file in notepad instead and post a screenshot of what the date looks like. Excel sometimes auto formats dates into friendly mm-yy but that may not reflect the underlying date format

Highlighted
Occasional Contributor

Re: CSV Upload - Help

Hi, when I import though, there is no time option. The module is not dimensioned by time, but the line item is time period and month formatted.
Highlighted
Contributor

Re: CSV Upload - Help

Try to change your cell format in column C in csv. Right click -> Format Cells -> Custom -> Type: mmm yy -> save your file and load again.
Highlighted
Certified Master Anaplanner

Re: CSV Upload - Help

Try importing into a test formatted line item and then converting to a time format within another line item in Anaplan. You can do this for any data type and is good practice for dates and lists, I it particularly useful for dates/ time as Excel can often mess about with the formatting. 

Highlighted
Super Contributor

Re: CSV Upload - Help

@CommunityMember113484 

If the data is not time formatted then Anaplan will not be able to map it to a time period during the import process. In this situation you need to import the data into a text formatted line item and convert it into a time period using Anaplan functions.

 

Firstly, you will need to create a flat list containing all the variations of the the month names and allocate a number formatted property to each which indicates the month number ( Jan = 1, Feb = 2 and so on ). You will use this to map the month part of the text to a month number which will feed into the time and period functions.

 

In you target module create four line items; month list (month list formatted as created above), month number ( number), year number (number) and time period (time period month).

 

Month list = FINDITEM(LEFT(3),Month List) This will return the list item which corresponds to the first three letters of the line item. This is assuming that all months in your data following this three letter format.

Month Number = Month list.Month Number[lookup:Month List] This line item allocates a number to the list item as per the property, month number.

Year Number = VALUE(RIGHT(2)) + 2000 This converts the last two characters to a number and adds 2000 to generate a year value.

Time Period = PERIOD(DATE(Year Number, Month Number, 1)) This takes all the number formatted line items and converts them to an Anaplan time period.

 

The sequence above will allow you to import a non time/date formatted line item and convert it to a time formatted line item so that you can use aggregation functions such as SUM.