on 07-29-2013 7:05 AM
Hi Experts,
As for my requirment i need to write field level routine for getting total no of days.
I have two char for start date and end date when i am mapping these two char in tranformations to key figure showing error (Source parameter /BIC/xxxxx) is not being used) .
Which type of key figure i need to create for this ?
Thanks - Siva
Hi,
I think you can use a key figure of type integer, data type INT4 to store the number of days.
Regards
Sourav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Venkat,
Since you mentioned your Two Characteristics are Dates then you can create your Keyfigure with option "Integer / Numc".
In the Transformation Map your both dates to the Keyfigure you wanted and write a field routine
\* RESULT = SOURCE_FIELDS-/BIC/XXXXX - SOURCE_FIELDS-/BIC/XXXXXX. */
And if you want see this column in the query then create a new formula by giving the name "total no of days" then
1) keep your two date characteristics in Rows area
2) Create Formula With Replacement path on each DATE Characteristic and keep each one in local formula and you have to hide both formula.
3) Now finally in your wanted column "total no of days" you place this two formula and subract it as Startdate - End date.
Hope this will help You!!
With Regards,
PJ.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkat,
For total number of days you can define the key figure type as numc. Then you can directly do the calculation in field level routine using formula such as DATE_DIFF(Start_Date, End_Date).
Hope it helps
Yasemin...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkat,
Why u go to calculation in Bex Query Designer for Total No of Days.
Thanks,
Purushotham.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use FM ' FIMA_DAYS_AND_MONTHS_AND_YEARS' at transformation level and get start date and end date from source and get difference between 2 dates.
Regards,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Create characteristic with NUMC as datatype.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.