on 06-08-2015 7:59 AM
hi experts,
I want customize the two different date formats from BEx to WEBI, I have two different date formats in BW end,
1.Dimension type
2.key type
In Webi, for dimension type objects I can able to customize easily using =FormatDate([ BW Dimension Field Obj Name];"dd/MM/yyyy")
I am facing issue for Key type
In Webi, when I try to apply the same approach for Key value it showing an error
=FormatDate([BW Key Field Obj Name];"dd/MM/yyyy")
Error is
The expression or sub-expression at position 12 in the 'FormatDate' function uses an invalid data type. (IES 10037)
required to convert using any Todate function or any other option is in place
Need your inputs
Regards,
Balaji
Hi Balaji ,
It is always recommended to use INPUT_DATE /INPUT_DATE_TIME in date formatting .
If it is only to get format like you mentioned then use =replace([Date - key],".","/") or use
=FormatDate(ToDate([Date - Key];"dd.MM.yyyy");"dd/MM/yyyy")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Sateesh,
Thanks for your inputs,
for fist one - =replace([Date - key],".","/")
Error in the first , which is available after end of Key Text,
Error is displayed as - Unrecognized input "," at position xx (IES 10018)
this second option which you are mentioned worked for me
=FormatDate(ToDate([Date - Key];"dd.MM.yyyy");"dd/MM/yyyy")
Regards,
Balaji
Hi Balaji,
You have to convert your Key to a Date usint Todate() function
if your values are like 01.01.2015 then use below formula
= todate([Key];"dd.MM.yyyy") ..... this will return the value as 01/01/2015
after this you can customize as per your need using formatdate() function
Thanks,
Tanveer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Tanveer,
when I use the BW Date Key field in Webi, the date is showing as 25.05.2015, but I have the requirement to show the date as 25/05/2015,
tried the option which you are given, but the output is #ERROR
actually the given format is working fine for dimension date objects, but not working for key format date type
I think some alternate we need to try it.
regards,
Balaji
Hi,
You need to convert it to ToDate and then use FormatDate.
Hope it helps...!!
Grtz
-Anila.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.