Getting (+/-)n th days date from given date
Hi all ,Please help to solve this problem.
Given a date, I need to get date object for the (given date-1) date object ,(given date-2),(given date-3) ....
and also
givendate+1,given date+2 ...
help me out to solve this problem
Check this code out and let me know if it works for you :
public static GregorianCalendar add(GregorianCalendar gc, int _add) {
gc.add (Calendar.DATE,_add);
//System.out.println(gc.toString());
return gc;
Similar Messages
-
How to get the exact day date with the another date field?
Hi,
Please help me how to get the specific day of the week's date with the help of another date field.
Actually , one field(week_day) has 1,2,3,4,5,6,7 here 1--MON,2-- TUE like that.
another field has the date. based on that date, we have to go to that particular week and need to pick up the date by the above week_day. It should be in that week itself.
Thanks in advance!!
Regards,
Vissu...
Edited by: vissu on Oct 29, 2010 3:07 AMHi,
Something like this
SELECT TRUNC(<DATE_COLUMN>,'DAY')+<WEEK_NO_COLUMN> FROM <YOUR_TABLE>;for the particular week of the date
SELECT TRUNC(SYSDATE,'DAY')+<WEEK_NO_COLUMN> FROM <YOUR_TABLE>;for the current week
cheers
VT -
Getting the Last day for a given week number
Dear Gurus,
I want to find the Last day of a given week number.
Can anyone help me out.
Regards
Madhu KHere I dont want to pass date,
If I give Week Number, Can I get that Week Numbers
Last date and First Date.
test@ORA10G>
test@ORA10G> -- this query fetches the start and end dates for a specified week in the current year
test@ORA10G>
test@ORA10G> select
2 wk as week,
3 min(dt) as start_date,
4 max(dt) as end_date
5 from (
6 select
7 trunc(sysdate,'yyyy')+level-1 as dt,
8 to_char(trunc(sysdate,'yyyy')+level-1,'ww') as wk
9 from dual
10 connect by level <= trunc(add_months(sysdate,12),'yyyy') - trunc(sysdate,'yyyy')
11 )
12 where wk = &week_number
13 group by wk;
Enter value for week_number: 1
WE START_DAT END_DATE
01 01-JAN-08 07-JAN-08
test@ORA10G>
test@ORA10G> /
Enter value for week_number: 23
WE START_DAT END_DATE
23 03-JUN-08 09-JUN-08
test@ORA10G>
test@ORA10G> /
Enter value for week_number: 52
WE START_DAT END_DATE
52 23-DEC-08 29-DEC-08
test@ORA10G>
test@ORA10G> /
Enter value for week_number: 53
WE START_DAT END_DATE
53 30-DEC-08 31-DEC-08
test@ORA10G>
test@ORA10G>pratz
can be shortened further:
test@ORA10G>
test@ORA10G> select
2 to_char(trunc(sysdate,'yyyy')+level-1,'ww') as wk,
3 min(trunc(sysdate,'yyyy')+level-1) as start_dt,
4 max(trunc(sysdate,'yyyy')+level-1) as end_dt
5 from dual
6 where to_number(to_char(trunc(sysdate,'yyyy')+level-1,'ww')) = &week_number
7 connect by level <= trunc(add_months(sysdate,12),'yyyy') - trunc(sysdate,'yyyy')
8 group by to_char(trunc(sysdate,'yyyy')+level-1,'ww')
9 /
Enter value for week_number: 1
WK START_DT END_DT
01 01-JAN-08 07-JAN-08
test@ORA10G>
test@ORA10G> /
Enter value for week_number: 53
WK START_DT END_DT
53 30-DEC-08 31-DEC-08
test@ORA10G>
test@ORA10G> /
Enter value for week_number: 23
WK START_DT END_DT
23 03-JUN-08 09-JUN-08
test@ORA10G>
test@ORA10G> /
Enter value for week_number: 14
WK START_DT END_DT
14 01-APR-08 07-APR-08
test@ORA10G>
test@ORA10G>Message was edited by:
pratz -
Get Nexr working day for the given calendar id
Hello,
My requirenment is I have a date.If that date falls on friday then I have to get the next working day date i.e.Monday for the given Calender iDDATA:wk_dat TYPE scal-indicator.
PARAMETERS:pa_dat TYPE sy-datum.
CALL FUNCTION 'DATE_COMPUTE_DAY'
EXPORTING
date = pa_dat
IMPORTING
day = wk_dat.
CHECK wk_dat = 5.
pa_dat = pa_dat + 3.
WRITE pa_dat.
here if u want to get the next working day
Use FM DATE_CHECK_WORKINGDAY after the check statement.
add the date until u find a working day. -
Need to create at BEX Query to get last 30 days data.
Hi,
I need to create a bex query based on input date need to calculate last 30 days outstanding and 31-60 days outstanding 61-90 days outstanding 91-180 days outstanding and greater than 180 days outstanding. Please find the format of the report.Kindly help me.
Thanks & Regards,Based on those documents you can easily create.
1. First create variable (Mandatory) user input
2. Posting date is avaialble as char you will get
3. need to calcualte difference b/w those 2 dates you can refer below By using replacement path we can convert both dates into get difference.
http://www.sd-solutions.com/SAP-HCM-BW-Replacement-Path-Variables.html
4. now need to create Bucketing logic formula as per requirement above documents will give idea. -
How to get the first day in the month from a domain date ?
Hi,
I like to know how to get the first day in the month from a domain date?
Thanks
StephenHi Gokul...
Instead of using the funtion module you can just write the 3 statements of code to get the first day of the week.
Its similar to the above one but instead of writing case statement you can achive the following.
data : w_res type i,
w_data type d,
w_res = w_date mod 7.
w_date = w_date - w_res.
write w_date.
This works.
Regards,
Siddarth -
From Invoice Date - get No of days
Hi,
I have invoice date,
in my report there is calculations need tobe done for the following.
Case - MTD
Invoice Date - 2009.03.24. I need to capture no. of days in that month ie, 03 (march)
Case - Elapse Days
no of elapse days since 1st of every month ie, if current day is 2009.03.24, elapse days will be 24days....not the working days...but all the days in that month from 1st of ebery month to till today.
provide your suggestions.
pratap> in my report there is calculations need tobe done for the following.
>
> Case - MTD
>
> Invoice Date - 2009.03.24. I need to capture no. of days in that month ie, 03 (march)
You can pass your Invoice date ( Month and Year ) into Function Module NUMBER_OF_DAYS_PER_MONTH_GET
and get no.of days for that Month.
> Case - Elapse Days
>
> no of elapse days since 1st of every month ie, if current day is 2009.03.24, elapse days will be 24days....not the working days...but all the days in that month from 1st of ebery month to till today.
Can you explain your requirment more elaborate.
For my understanding
1) if your invoice date is 2009.03.24, and you want elapse days will be 24.
use Concatenate funtion and get the value 24.
2) if your Current date (system date )is 2009.03.24, and you want elapse days will be 24.
use Concatenate funtion to system date and get the value 24.
3)if your invoice date is 2009.03.01,system date is 2009.03.24 and you want elapse days will be 24.
use function module 'DAYS_BETWEEN_TWO_DATES' with passing your invoice date ans system date, you will get the elapse days vale 24.
Cheers,
Sree -
Any FM to get count of each week day for the given date range
Hi guys,
Any FM to get count of each week day for the given date range?
eg: If i give 14/07/2008 to 14/08/2008
I need to find how many Mondays, tuesdays...sundays in this given date range.
If not single FM is available, any logic that gives above result is also appreciated.
Thanks,
Vinod.hi Vinod,
this is not a full solution, I just give you a basic idea:
DATA : lv_start TYPE sy-datum VALUE '20080714',
lv_end TYPE sy-datum VALUE '20080814'.
WHILE lv_start LE lv_end.
CALL FUNCTION 'FTR_DAY_GET_TEXT'
EXPORTING
pi_date = lv_start.
* IMPORTING
* PE_DAY_TEXT1 =
* PE_DAY_TEXT2 =
* PE_DAY =
* you have to summarize the output here somehow...
lv_start = lv_start + 1.
ENDWHILE.
hope this helps
ec -
How to get next date or date after n th day of a given date ?
I want to get the date after n th day of a given date.
Here a date and an integer will be the input.
suppose 15/12/2007 and 3 are the inputs and the output will be 18/12/2007
Is there any method to solve this purpose ?
Plz its urgent !!javagalaxy.com wrote:
I didn't feel this is a home work for them. I feel the OP is trying to learn.Well, that is a part of what homework is. Now, tell me how doing it for them helps them learn? They might run it once, to make sure it does what it is suppossed to do, then simply turn it in. In the process, they haven't learned a thing. Only a very small fraction of posters will study the posted code to figure it out, as evidenced by the fact, that if the code is not 100% cut-n-paste capable for their assignment, they will come back and complain that this or that does not work, or was not done.
>
This will be good learning for the OP, why don't you point out what is done badly.
Did you mean using
now.add(Calendar.DAY_OF_MONTH, daysToAdd);
instead of
now.set(Calendar.DAY_OF_MONTH, now.get(Calendar.DAY_OF_MONTH)+daysToAdd);?
That is the main crux of it, yes, but homework or not, you should actually attempt to catch and handle the exceptions, rather than simply declaring "throws Exception". Handling exceptions in the homework assignments will cause that to become a habit and you will actually do it correctly without thinking about it. Just like constantly declaring "throws Exception" in your homework will also make that a habit, and guarnatee that you will someday also do that when it counts, thereby causing all sorts of problems (usually for coworkers).
if its something else then please do let us know.
I can also learn how to do it good :) -
How to get next day date (i.e., tommarow's date) from java
Hi all,
One small help plz..........
Which is the method to get next day date(for eg: 2mmarow)....
How can I get tommarow's date from Date class or some others in Java..
Iam able to get today date.....but my requirement is I should get next day date....Plz help me....
Plz help me.....
Any help will be appreciated...
Thanks a lot.....~!~!Here's a working example:
import java.util.Calendar;
import java.text.SimpleDateFormat;
public class Tomorrow {
public static void main(String[] args) {
Calendar c = Calendar.getInstance(); // current date
c.add(Calendar.DAY_OF_MONTH, 1); // add one day
SimpleDateFormat sdf = new SimpleDateFormat("dd"); // use the pattern: day_of_month
String str = sdf.format(c.getTime()); // fromat the date to string
System.out.println(str); // print it at the console
}You should read the [url http://java.sun.com/j2se/1.5.0/docs/api/java/util/Calendar.html]Calendar and [url http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html]SimpleDateFormat class javadoc. -
To find the no of working days b/w given date
Hi ABAP Experts,
Here i have one requirement .
table is tfacs
in this table i want to know the no of working days b/w the given date. Here i have attached my code .pls go through it and do me needful.
TABLES : tfacs,vbrk.
DATA: BEGIN OF ty_tfacs OCCURS 0,
ident TYPE tfacs-ident,
jahr TYPE tfacs-jahr,
mon01 TYPE tfacs-mon01,
mon02 TYPE tfacs-mon02,
mon03 TYPE tfacs-mon03,
mon04 TYPE tfacs-mon04,
mon05 TYPE tfacs-mon05,
mon06 TYPE tfacs-mon06,
mon07 TYPE tfacs-mon07,
mon08 TYPE tfacs-mon08,
mon09 TYPE tfacs-mon09,
mon10 TYPE tfacs-mon10,
mon11 TYPE tfacs-mon11,
mon12 TYPE tfacs-mon12,
basis TYPE tfacs-basis,
fenum TYPE tfacs-fenum,
wenum TYPE tfacs-wenum,
load TYPE tfacs-load,
string1(31) TYPE c,
string2(31) TYPE c,
string3(31) TYPE c,
string4(31) TYPE c,
string5(31) TYPE c,
string6(31) TYPE c,
string7(31) TYPE c,
string8(31) TYPE c,
string9(31) TYPE c,
string10(31) TYPE c,
string11(31) TYPE c,
string12(31) TYPE c,
uk(31) TYPE c,
total1 TYPE i,
total2 TYPE i,
total3 TYPE i,
total4 TYPE i,
total5 TYPE i,
total6 TYPE i,
total7 TYPE i,
total8 TYPE i,
total9 TYPE i,
total10 TYPE i,
total11 TYPE i,
total12 TYPE i,
END OF ty_tfacs.
SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS : s_jahr FOR tfacs-jahr MODIF ID b1.
SELECT-OPTIONS : mon FOR tfacs-mon01 MODIF ID b1.
SELECT-OPTIONS : s_month FOR vbrk-erdat MODIF ID b2.
SELECTION-SCREEN : END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME.
PARAMETERS r1 RADIOBUTTON GROUP c DEFAULT 'X' USER-COMMAND flag .
PARAMETERS r2 RADIOBUTTON GROUP c .
SELECTION-SCREEN END OF BLOCK b.
INITIALIZATION
INITIALIZATION.
AT SELECTION-SCREEN OUTPUT.
IF r1 NE space.
LOOP AT SCREEN.
IF screen-group1 EQ 'B2'.
screen-output = 1.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF screen-group1 EQ 'B1'.
screen-output = 1.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
start - of - selection
start-of-selection.
IF r1 = 'X'.
PERFORM get-data.
PERFORM display-data.
ENDIF.
& form get-data
text
--> p1 text
<-- p2 text
form get-data .
DATA : total1 TYPE i.
SELECT * FROM tfacs INTO TABLE ty_tfacs
WHERE ident EQ 'IN'
AND jahr IN s_jahr.
LOOP AT ty_tfacs WHERE ident = 'IN'.
IF sy-subrc EQ 0.
PERFORM get_string USING ty_tfacs-string1
ty_tfacs-mon01
ty_tfacs-total1.
PERFORM get_string USING ty_tfacs-string2
ty_tfacs-mon02
ty_tfacs-total2.
PERFORM get_string USING ty_tfacs-string3
ty_tfacs-mon03
ty_tfacs-total3.
PERFORM get_string USING ty_tfacs-string4
ty_tfacs-mon04
ty_tfacs-total4.
PERFORM get_string USING ty_tfacs-string5
ty_tfacs-mon05
ty_tfacs-total5.
PERFORM get_string USING ty_tfacs-string6
ty_tfacs-mon06
ty_tfacs-total6.
PERFORM get_string USING ty_tfacs-string7
ty_tfacs-mon07
ty_tfacs-total7.
PERFORM get_string USING ty_tfacs-string8
ty_tfacs-mon08
ty_tfacs-total8.
PERFORM get_string USING ty_tfacs-string9
ty_tfacs-mon09
ty_tfacs-total9.
PERFORM get_string USING ty_tfacs-string10
ty_tfacs-mon10
ty_tfacs-total10.
PERFORM get_string USING ty_tfacs-string11
ty_tfacs-mon11
ty_tfacs-total11.
PERFORM get_string USING ty_tfacs-string12
ty_tfacs-mon12
ty_tfacs-total12.
ENDIF.
ty_tfacs-uk = ty_tfacs-total1 + ty_tfacs-total2
+ ty_tfacs-total3 + ty_tfacs-total4
+ ty_tfacs-total5 + ty_tfacs-total6
+ ty_tfacs-total7 + ty_tfacs-total8
+ ty_tfacs-total9 + ty_tfacs-total10
+ ty_tfacs-total11 + ty_tfacs-total12.
MODIFY ty_tfacs TRANSPORTING total1 total2 total3
total4 total5 total6
total7 total8 total9
total10 total11 total12
uk.
ENDLOOP.
PERFORM write1-data USING 'COU' 'YEAR' 'MONTH01'
'MONTH02' 'MONTH03' 'MONTH04'
'MONTH05' 'MONTH06' 'MONTH07'
'MONTH08' 'MONTH09' 'MONTH10'
'MONTH11' 'MONTH12' 'TOTAL WDAYS' .
LOOP AT ty_tfacs.
PERFORM write1-data USING ty_tfacs-ident ty_tfacs-jahr
ty_tfacs-total1 ty_tfacs-total2
ty_tfacs-total3 ty_tfacs-total4
ty_tfacs-total5 ty_tfacs-total6
ty_tfacs-total7 ty_tfacs-total8
ty_tfacs-total9 ty_tfacs-total10
ty_tfacs-total11 ty_tfacs-total12
ty_tfacs-uk.
ENDLOOP.
ENDFORM. " get-data
TOP-OF-PAGE.
FORMAT COLOR 5 ON.
WRITE :/10 'COUNTRY',
20 'YEARS',
35 'MON01',
45 'MON02',
55 'MON03',
65 'MON04',
75 'MON05',
85 'MON06',
95 'MON07',
105 'MON08',
115 'MON09',
125 'MON10',
135 'MON11',
145 'MON12',
170 'total wdays'.
FORMAT COLOR OFF.
WRITE :/ SY-ULINE.
*& Form display-data
text
--> p1 text
<-- p2 text
FORM display-data .
LOOP AT ty_tfacs.
WRITE :/10 ty_tfacs-ident,
20 ty_tfacs-jahr,
30 ty_tfacs-total1,
40 ty_tfacs-total2,
50 ty_tfacs-total3,
60 ty_tfacs-total4,
70 ty_tfacs-total5,
80 ty_tfacs-total6,
90 ty_tfacs-total7,
100 ty_tfacs-total8,
110 ty_tfacs-total9,
120 ty_tfacs-total10,
130 ty_tfacs-total11,
140 ty_tfacs-total12,
150 ty_tfacs-uk.
ENDLOOP.
ENDFORM. " display-data
*& form get_string
text
-->p_0250 text
-->p_0251 text
-->p_0252 text
form get_string using p_0250 " month
p_0251 " string
p_0252. " total
p_0250 = p_0251. " move month to string
TRANSLATE p_0250 USING '0 ' . " translate
CONDENSE p_0250 NO-GAPS. " condense
p_0252 = STRLEN( p_0250 ). " pass length of string to total
ENDFORM. " get_string
***& Form write1-data
text
-->P_0306 text
-->P_0307 text
-->P_0308 text
-->P_0309 text
-->P_0310 text
-->P_0311 text
-->P_0312 text
-->P_0313 text
-->P_0314 text
-->P_0315 text
-->P_0316 text
-->P_0317 text
-->P_0318 text
-->P_0319 text
-->P_0320 text
*form write1-data using p_0306
p_0307
p_0308
p_0309
p_0310
p_0311
p_0312
p_0313
p_0314
p_0315
p_0316
p_0317
p_0318
p_0319
p_0320.
*WRITE :/ p_0306,
p_0307,
p_0308 left-justified,
p_0309 left-justified,
p_0310 left-justified,
p_0311 left-justified,
p_0312 left-justified,
p_0313 left-justified,
p_0314 left-justified,
p_0315 left-justified,
p_0316 left-justified,
p_0317 left-justified,
p_0318 left-justified,
p_0319 left-justified,
p_0320 left-justified.
*ENDFORM. " write1-data
from this report what i am getting is year and its 12 months but my requirement is i will give date using select options and i should get the total no of working days in b/w this date.Use the following code to find no of working days b/w given date. Use the correct factory_calendar_id in the function module. L_DAYS will display the required result:
PARAMETERS: p_date1 TYPE sydatum,
p_date2 TYPE sydatum.
DATA: date1 LIKE scal-date,
date2 LIKE scal-date,
correction LIKE scal-indicator,
calendar LIKE scal-fcalid,
factorydate1 LIKE scal-facdate,
workday1 LIKE scal-indicator,
factorydate2 LIKE scal-facdate,
workday2 LIKE scal-indicator,
l_days TYPE scal-facdate.
CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
EXPORTING
date = p_date1
correct_option = '+'
factory_calendar_id = 'US'
IMPORTING
date = date1
factorydate = factorydate1
workingday_indicator = workday1
EXCEPTIONS
correct_option_invalid = 1
date_after_range = 2
date_before_range = 3
date_invalid = 4
factory_calendar_not_found = 5.
IF sy-subrc = 0.
CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
EXPORTING
date = p_date2
correct_option = '+'
factory_calendar_id = 'US'
IMPORTING
date = date2
factorydate = factorydate2
workingday_indicator = workday2
EXCEPTIONS
correct_option_invalid = 1
date_after_range = 2
date_before_range = 3
date_invalid = 4
factory_calendar_not_found = 5.
IF sy-subrc = 0.
l_days = factorydate2 - factorydate1.
WRITE: / l_days.
ENDIF.
ENDIF. -
Any F.Module is there to get 'Month and day ' from the given input number
Hi experts,
I am working on Inventory withdrawl report and in the selection screen, If i enter the CHARG (Batch number) then I need to display the posting date by default in the next selection input based on the Batch number.
In the selection screen :
Batch : 7111WF0211.
Posting Date : (I need to display by default based on batch number).
My requirement is, in the above Batch first digit '7' is the year.
And from 2nd to 4th digit. i.e., 111. I need to find out month and day from 111.
I mean from 1 to 365 days, In which day and which month '111' will come ?
Please send me the code or suitable Function Module. Your help will be appreciated.
Thanks,
Ranji.Use FM ADD_TIME_TO_DATE
Do this
days = batch+1(3).
days = days - 1.
Call Function 'ADD_TIME_TO_DATE'
exporting
i_idate = '01.01.2008'
i_time = days
i_iprkz = 'D'
importing
o_idate = date_p_d
You will get the date in date_p_d.
But what about Leap years? IS the first number the year?
IF so pass in i_idate the first of january of that year so you get the correct day depending if it is a leap year or not
Edited by: Ramiro Escamilla on Feb 26, 2008 9:56 PM -
How to know the day of a given date?
Hello Experts,
Is there any function module that can give the day of a given date? For example, If
I put in 10/30/2007, it will give me Tuesday. Hope you can help me guys.Thank you and take care!Hi
Yes, DATE_COMPUTE_DAY
Sample code:
clear: hold_day_of_week.
CALL FUNCTION 'DATE_COMPUTE_DAY'
EXPORTING
DATE = workdate
IMPORTING
DAY = day_of_week_num
EXCEPTIONS
OTHERS = 8.
CASE day_of_week_num.
WHEN 1.
hold_day_of_week = 'Monday'.
WHEN 2.
hold_day_of_week = 'Tuesday'.
WHEN 3.
hold_day_of_week = 'Wednesday'.
WHEN 4.
hold_day_of_week = 'Thursday'.
WHEN 5.
hold_day_of_week = 'Friday'.
WHEN 6.
hold_day_of_week = 'Saturday'.
WHEN 7.
hold_day_of_week = 'Sunday'.
WHEN OTHERS.
hold_day_of_week = 'invalid'.
ENDCASE.
or
You can use DATE_COMPUTE_DAY to get the day number of the week (for example, today gives 5)
then use WEEKDAY_GET which returns an itab with seven entries (one for each day of the week.)
You enter in this itab and get the field langt to get the day name.
code @ http://www.sap-img.com/abap/fm-to-get-the-day-for-a-particular-date.htm
Pls reawrd points -
How to get previous day data if i dont have current day data.
Hello Gurus,
I have a stock levels data in ODS. when there is no movements, we are not getting any stocks into ODS. So we have to get previous day data as it is for current day data into another ODS.
Could you please help me in this regard.
Thanks in advance,
RamaRama -
0CALDAY can't help us in this scenario .
Step 1 :
To do this - You have to add one ZDATE (InfoObject ) to 1st ODS. ZDATE is updated by itself from current date of system when ever you are loading data to 1st ODS.
Step 2:
You have to do full update to 2nd ods.At the selection screen of InfoPackage (from 1st ODS to 2nd ODS ) you have to write following code for ZDATE.
pseudo Code:
1) Select fields "Rec_INSERT","Time stamp","Request Status" and "Request ID" where ICUBE = ODS1 from table "RSMONICDP"
2) Populate above selected fields data in INTERNAL TABLE
3) Sort INTERNAL TABLE by Time stamp .
4)
If (Record Count = ' 0 ' for current date in internal table )
update records from ODS1 to ODS2 where ZDATE = "yesterday date"
else
update records from ODS1 to ODS2 where ZDATE= "today date"
endif.
Make sure this is full update not delta update from ODS1 to ODS2
I am sorry, I m not good in Coding but I am sure if u use this logic,You can meet your requirement.
I hope you can understand my logic. Let me know if you have any questions,
Anesh B . -
How to get Privious Day data in OBIEE
Hi experts i need to get preivious day data(Rating Given by Bank to a customer). Because this data (rating) is not an measure so i can't use AGO function.
So please suggest me how can i Get this without using AGO function.
Thanks in Advance
Regards
FrndsHi..
yes, need to do as naresh said..
but in filter you need to assing this..
Apply filter on your date column
and click on convert this filter to SQL option..
here you need to assign the code given by naresh..
like..
your datecolumn =*timestampadd(sql_tsi_day,-1,daycolumn)*
likewise, you get.. but this gives you only previous day data as you asked..
Thanks & Regards
Kishore Guggilla
Maybe you are looking for
-
Data mart status has beed reset by del the in between req in source ODS
Hi SDN, We have a situation where in which there is a daily delta laod going from ODS to Cube and we have reset data mart status accidentally by deleting the request which is in between multiple number of requests in the source ODS, now when we delet
-
hi friends, how to clear the open item of customer with vendor open item. i have select the cklr with customer/vendor and assign the customer /vendor in both the master data. is there any further costomization settings or any manual clearing process.
-
I`m setting up ranges for searching a database. I plan to use a combobox for choosing 'year', 'month', 'week' as ranges from a given date. I have one datefield for the start date, and want another one to reflect the date of the range limit. In other
-
Internet Sharing Stopped Working
At home, I have a G5 dual 2Ghz as my primary computer and a G4 450MHz that I use mostly as a file archive. I was running OS X 10.4.10 on both machines. My internet connection device (an AirCard from Sierra Wireless)is hooked up via USB to my G5. I se
-
Windows 8.1 sound problem
Hello! I have NVidia HD Sound Drivers installed. My sound worked fine on Windows 8. It also worked fine after I updated to windows 8.1, but after a while the sound disappeared. In device manager, it sais the drivers are installed but the system can n