Skip to Content
author's profile photo Former Member
Former Member

Excel Formula in Conversion File

dear BPC Gurus

I've created a DMP to import transaction data from BW.

In the BW Cube, one of the field is called 0FISCPER (Fiscal Year / Period), which the period values are as follows:

2016001

2016002

2016003...

Like this format: YYYYMMM

Now, I want to map this field to my BPC Model TIME Dimension which has the following members:

2016.01

2016.02

2016.03....

In this format: YYYY.MM

In the convesion file, I want to change to the format from YYYYMMM to YYYY.MM by using this code:

TIME = LEFT(0FISCPER,4) + *STR(.) + RIGHT(0FISCPER,2)

However when validating it, it gave me an error message that the formula is not recognized.

I do not want to use a Conversion file for this purpose. Does anyone knows what formula to use for this? Javascript will do too.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Aug 19, 2016 at 09:15 AM

    Hi Edmund,

    You can't use Excel formulas in the conversion file. Use JavaScript

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 19, 2016 at 09:24 AM

    Hi Edmund,

    Excel formulas cant be used in Conversion file......But for your requirement you can use

    TIME = 0FISCPER(1:4)+*STR(.)+0FISCPER(6:7) mapping in the transformation file itself....Assuming TIME is your time dimension name..

    Hope this helps....

    Regards,

    JP

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 19, 2016 at 09:35 AM

    Hi Edmund,

    You can try something like this:

    EXTERNALINTERNAL????001js:(%external%.toString().substring(0,4))+'.01'

    Regards,

    Rahul

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.