on 08-19-2016 10:07 AM
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.
Hi Edmund,
You can't use Excel formulas in the conversion file. Use JavaScript
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Edmund,
You can try something like this:
EXTERNAL | INTERNAL |
---|---|
????001 | js:(%external%.toString().substring(0,4))+'.01' |
Regards,
Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is it so hard to check the formula in the online JavaScript editor like: http://plnkr.co/edit/?p=preview
User | Count |
---|---|
15 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.