NoFilter & 6wk Average & removing current week issue
Morning everyone,
I have a minor issue that I believe can be resolved but I must be overlooking something simple...I have a basic 6wk average variable that works fine, however, I do not want the report block to generate a 6wk average for the current week. Does anyone have any suggestions? I have tried adding in some manual calculations inside the variable which calculates current week then trying to remove it via <> or similar logic. I have created a dummy report which I will try to screenshot and post a pic.
Thanks!
Hi Thomas ,
Why don't you try cell formatting to display the cell value as blank?
1. Right Click on the cell and select 'Format Number' option .Select format type -number(assuming type is number)
2. Check 'Custom' and define format for 'Equal to Zero' as blank.
3. For 'Positive' and 'Negative' give appropriate(you can give 'STANDARD')
Regards,
Bilahari
Similar Messages
-
Report Issue: Previous Weeks, Current Week and Next Week Values
Hello Folks,
this is a typical requirement...at-least typical for me..
we have 20 weeks of data at weekly level. we have four Metrics out of which two are coming from Database and rest two are calculated metrics.
Metric0: On Hand Qty
Metric1: Past Qty
Metric2: sell Qty
Metric3: unsell qty
Metric4: Total Qty
the report will always be shown for 20 weeks, but depending on whats my current week, all the past weeks should be flagged as Past Week. (so i wrote a case statement for this). for Instance: I am in Week11, so my weeks in should be Past Week, Wk11, Wk12.........Wk20.
Metric 1 is always dependent on result of Metric4 (This is the Complexity) per week basis
Metric1 for Past weeks value in Week Column will be wk1 to wk10 On Hand Qty (fox ex: 80)
Metric4 for Pass Weeks Value in Week Column will be Metric1 for Pastweeks + Metric2 for Past Weeks (For Ex: 20) (Past weeks mean wk1 to wk10)
value of Metric4 is now 100
Metric1 for Week11 Now should 100 (From Past weeks Calculation)
Metric4 for Week11 will be Metric1 for Week11(100) + Metric2 for Week11(10) + Metric3 for Week11 (10)
Now...Metric1 for Week12 will be 120 which is wk11 total (100+10+10) and goes on Until Week 20
Any Ideas how to achieve this in obiee 10g
Thanks
RakePlease try out in this way....
Database level --Create opaque view & procedure or function to get the week total,week ago total, current week , Past week ,future week & do rpd modelling and use PIVOT VIEW.
At answers:
1.Here Previous week M4 is the current week M1 which means it is a cumulative value carried forward week by week.
2. M2 & M3 are direct database columns.
3. You have time hierarchy with WEEK Level.
M1 - ago(rsum(m2+m3),weeklevel)
M4- RSUM(M2+M3)
week -AGO(RSUM(M2+M3)- M2-M3-RSUM(M2+M3)
w1-0-10-20-30
w2-30-11-21-62
w3-62-12-22-96
Now you can PIVOT IT to get in
W1-W2-W3
M1 0 - 30-62
M2 10-11-12
M3 20 -21-22
M4 30 - 62-96
NOW PASTWEEK (W1-W10), CURRENT WEEK(W11)-W12
1.as you see cumulative here you need to use BINS.means ( case when week <= currentweek(maybe variable) then prior) else week)
2. UNION - combine similar request - First cirteria week <= w11 and second criteria week > week 11 --combine pivot it. Use sum agg in fx criteria1.
Hope this should solve your pblm at answers.
Edited by: MK on Oct 27, 2011 12:48 PM -
How to get Current week and No of Weeks for each quarter!!
Hi,
As a part of report development I have to derive Current week and No.of Weeks in Curreny Query. Based on these information I have to calculate Phased target (Calculated KYF).
Phased target = (Target for Quarter / No of weeks in Current Quarter) X Current Week.
We have to derive Current Quarter and Current week from Customer Exit (From Invoice date, which is an entry by Users at report level).
My questions are:
1) We have to derive Two Restricted key figures (by Calweek) for derving No of weeks for Currnet Quarter and Current week in Query level. Based on this info, we have to derive Calculated kef figure for Phased target.
2) And the output is 6 (ex:- 132008) char length for Current week and we have to pick Week info only and we have to populate RKF created for Current week. How we can achieve this.
3) Regarding the No of weeks per for current quarter, we are writing Customer exit to determine Quarter and no of weeks, but how to bring this info in query level.
4) Is there any standard code available (SAP Exit) to find Current week and No of Weeks in Current quarter.
Regards,
Suresh MolliHi Venkat Molli,
Follow the below step for the doing the same:
1. Create a customer exit variable on calweek.
2. Restrict the created variable for respective info object.
3. To Populate the data write code in CMOD.
in enhancement function module: EXIT_SAPLRRS0_001 -> in Include ZXRSRU01 write the below code:
WHEN '<variable name>'.
IF i_step = 1.
CLEAR l_s_range.
CALL FUNCTION 'RSVAREXIT_0P_CWEEK'
IMPORTING
e_t_range = lt_week.
READ TABLE lt_week INTO l_s_range1 INDEX 1.
v_last_week = l_s_range1-low+4(2).
v_last_week = v_last_week - 1.
l_s_range1-low+4(2) = v_last_week.
l_s_range-low = l_s_range1-low.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
4. Execute the report.
I hope you can handle you issue now.
Assign points if it is helpful.
Regards,
S P. -
ASCP Planned orders recommendation date for current week
Dear Experts,
I am facing the below issue in Decentralized ASCP workbench.
In the forecast demand date is 18-04-11, 25-04-11, 02-05-11 and so aon (Weekly buckets).
After launching plan today (18-04-11), Recommendation in workbench are showing due dates as 19-04-11, 25-04-11, 02-05-11 and so on.
The question here is, Why the current week demand is shifting one day (19-04-11). Business requirement is today (18-04-11).
Appreciating your valuable soluation.
Note:
(We checked planning time fence. Items having the value 0, 1 are also giving the same result)
Regards,
RameshSandeep Gandhi,
Yes, ASCP can not schedule anything in the past but it will suggest planned orders for today (Plan run date) for the past demands.
Example: Forecast Demand due date : 16-04-11.
when we run the plan today, ASCP have to suggest planned order for today's due date (18-04-11)
But we don't know why it is shifting to 19-04-11 (tomorrow).
Your valuable suggests will be very helpful
Regards,
Ramesh -
HT202447 is this dealing with the current "security" issues Apple is now addressing ?
By disabling the Java web plug in in Safari does this deal with/fix the current "security" issues Apple is now addressing?
If Software Update reports that the update is available, it means that you are or have been running Java. Install it. It will remove the Flashback malware.
If Security Update 2012-003 does not appear, then you have not been running Java. Leave it disabled.
In other words, merely un-checking the "enable Java" checkbox will not remove the malware if it is already present. You should install the update if it is offered to you. -
How to get data for current week and previous week using customer exit in Bex.
Hi everyone,
I have a scenario in which I need to display data for current week and previous week (based on "sy_datum" the program has to calculate current week and previous week) in Bex using Customer exit. I have created one variable in Bex Query Designer and I have written code for the variable in CMOD. But it is not working fine, (I know that we can do the same by using offset value in Bex). Can some one guide me how to achieve my requirement using customer exit.
Thanks in Advance,
G S Ramanjaneyulu.Hi krishna,
Thanks for your quick reply, can you have a look at my code,
case i_vnam.
WHEN 'ZPWK_CWK'.
ranges : pre_week for sy-datum.
data : start_date type DATS,
end_date TYPE dats .
************FM TO GET FIRST DATE OF CURRENT WEEK ************************
CALL FUNCTION 'BWSO_DATE_GET_FIRST_WEEKDAY'
EXPORTING
DATE_IN = sy-datum
IMPORTING
DATE_OUT = start_date. " WEEK FIRST DATE
end_date = START_DATE + 6. " WEEK LAST DATE
END_DATE = START_DATE - 1. " PREVIOUS WEEK END DATE
START_DATE = START_DATE - 7. " PREVIOUS WEEK START DATE
**********PREVIOUS WEEK DATES IN PRE_WEEK******************
pre_week-SIGN = 'I'.
pre_week-option = 'BT'.
pre_week-LOW = START_DATE.
pre_week-HIGH = END_DATE.
APPEND pre_week.
CLEAR : START_DATE,END_DATE.
endcase.
Regards,
G S Ramanjaneyulu. -
Create an Activity Report for Current Week
I would like to create a activity report for the current week. The trick is that if the weekday is Wednesday or earlier (Sunday being the first day of the week), the report shows last week's activities; but if the weekday is Thursday or later (Saturday being the last day of the week), the report shows the current weeks activities.
I have a filter that works in Access but does not seem to work in Siebel. It does just what I explained above:
Between CDate(Int((IIf(Weekday(Now())<=4,Now()-(6+Weekday(Now())),Now()-(Weekday(Now())-1))))) And CDate(Int((IIf(Weekday(Now())<=4,Now()-Weekday(Now()),Now()+(7-Weekday(Now()))))))
Thank you,
David
Edited by: DavidE on Oct 7, 2008 4:17 PMDavid,
try this:
case DAYOFWEEK(CAST(Activity."Planned Start Time" AS date))when 1 then timestampadd(sql_tsi_day,1,CAST(Activity."Planned Start Time" AS date)) when 3 then timestampadd(sql_tsi_day,-1,CAST(Activity."Planned Start Time" AS date)) when 4 then timestampadd(sql_tsi_day,-2,CAST(Activity."Planned Start Time" AS date)) when 5 then timestampadd(sql_tsi_day,-3,CAST(Activity."Planned Start Time" AS date)) when 6 then timestampadd(sql_tsi_day,-4,CAST(Activity."Planned Start Time" AS date)) when 7 then timestampadd(sql_tsi_day,-5,CAST(Activity."Planned Start Time" AS date)) else CAST(Activity."Planned Start Time" AS date) end
This gave me the sunday of the week. You should be able to modify this format for your purposes.
cheers
Alex -
Limit values shown in Parameter based on current week
We have a requirement wherein a parameter can be chosen depending on the current week number.
For example, today is Feb 3, 2015 (WEEK NUMBER 6), the parameter dropdown should only show
Week 1
Week 2
Week 3
Week 4
Week 5
Upon choosing a specific week, i.e. Week 2, SSRS report will show data where Created By matches the dates in Week 2 which is from January 4, 2015 to January 10, 2015 (SUNDAY is the first day week)
----------------------- Sharepoint NewbieHi 120613,
Because you are using the sharepoint list as the datasource and have some limitation when using query in the dataset, so I recommend you to take reference of the alternative method below which will not effect the filter of the data, you can create an calculated
field which will use to create the week parameter, the values of the Week list are before the week number of the today's date and get based on the date field in the report.
Details information below for your reference:
Create an new dataset(DataSet2) to add the query which have the same structure as in the main dataset but only contain the field "Date".
Right click the DataSet2 to select the "Add Calculated field" and create an new calculatted fields: name : "Week" and using expression below to get the value(The value will be the week number before the current date's week
number):
=IIF(DatePart("ww",Fields!date.Value)<DatePart("ww",Today()),DatePart("ww",Fields!date.Value),Nothing)
Create the parameter week based on the Calculated field "Week", specify both the Available value and default value by "Get Values from a query"
Add the filter in the Dataset as below:
Expression:=DatePart("ww",Fields!Date.Value)
Operator:In
Value: [@Week]
Preview you will got the result as below:
If the parameter is Multiple and you got some duplicate values, please reference to the article
Visakh16 have provided.
If you still have any questions, please feel free to ask.
Regards
Vicky Liu
If you have any feedback on our support, please click
here.
Vicky Liu
TechNet Community Support -
How to get date range of Current week
Hi Gurus,
I need to create report of current(this) week manual bills created by one user. I have date Field called CREAT_DATE.Based on this date column i need to create report.
Could anybody help to get this query.
Example:
select .....
from ....
where
CREAT_DATE
Thank You
VikramIt kind of depends on your definition of "current week". If you mean something like the last 7 days, then
SELECT columns
FROM table
WHERE creat_date BETWEEN TRUNC(sysdate - 7) and TRUNC(sysdate +1)would do it.
If you mean Monday until today, then:
SELECT columns
FROM table
WHERE creat_date BETWEEN NEXT_DAY(TRUNC(sysdate - 7), 'MONDAY') and TRUNC(sysdate +1)Read up on the various date functions for other possibilities.
TTFN
John -
Week Number of the current week...URGENT
hi gurus,
I want to calculate the week number of the current week as per Fiscal year.
What variable or the Customer Exit code needs to be written for it?
regardsHi Venu,
Use the code below. I assume that the client is US based where the Fiscal Year starts 1st October every year. Just in case the fiscal year starts in some other month then adjust the code (if SY-DATUM+4(2) >= 10.) below. Hope this helps.
DATA: PFY(8) TYPE C.
DATA: CFY(4) TYPE C.
DATA: LFY TYPE I.
DATA: FYD TYPE I.
DATA: TWD TYPE I.
DATA: RES TYPE I.
if SY-DATUM+4(2) >= 10.
concatenate SY-DATUM+0(6)
'01'
into PFY.
else.
LFY = SY-DATUM+0(4).
LFY = LFY - 1.
CFY = LFY.
concatenate CFY
SY-DATUM+4(2)
'01'
into PFY.
endif.
FYD = P_FY.
TWD = SY-DATUM.
RES = ( TWD - FYD ) / 7.
Write: Res. -
How do I get the number of current week?
select to_char(sysdate,'W') AS "WEEK OF THE YEAR" from dual (wk of the month)
select to_char(sysdate,'WW') AS "WEEK OF THE YEAR" from dual (wk of the year) -
Current date, first day of month, last day of month, current week, current
Hi All,
may be the question will sounds basic for your guys, I am connecting via MDX a cognos reportnet on a BW 3.0B..due to loads of limitations on filtering via MDX on 'business date/time functions' , I would need to create in the infoqueries that are my data sources, the following additionnal objects:
- current date
- first day of current month
- last day of current month
- current week
- current year
I do not want prefiltered infoqueiries but object with these single values so that from reportnet I can have something like: OCALDAY between 'first day of current month' and 'last day of curent month'
Is there standard fonction for this under BW/BEX or if we need to developp functions has nayone some code examples.
thanks a lot for your great input
DavidHi,
In universe level if you want implement the requirede functions then you have to write custom sql and if you want to implement them in Reporting level then most of the functions are available to you. e.g. Quarter,Month, Year, Current Date....
Cheers,
Suresh A. -
How to calculate start date and last date for current week
Dear All.
i want to calculate the start of the current week as well as the last date of the current week, our week start from Saturday and ends of Friday i.e. Saturday is the first day of the week and Friday is the last day of the week.
How can i acheive this in universe Designer?.
Please help...Hi
the formulas in webi will be as follows
for startdate
=RelativeDate(LastDayOfWeek(CurrentDate());-8)
for enddate:
=RelativeDate(LastDayOfWeek(CurrentDate());-2)
Regards,
Ranganath -
How to get the current week from sysdate?
Hi sir,
i want to know how to get the current week from sysdate?
thanksHi Nicolas
It seems you like to check my post and also make commend ;) thanks for your attention
Have you ever read the posts above and given solutions ?Yes, I did
Have you read the docs ? Yes, I checked
What's the added value here ?Did youYou shared doc with solution(long one), I shared short one which point same solution(Check what Joel posted)..So what is benefit, As you can guess oracle docs are sometimes become so complicated as specialy for beginner...(At least it was like that for me and Belive me somedocs are still sooo complicated even for oracle coworkers ) But for you I dont know ;)
=> Why writting the PS in bold ?Why.. Let me think... Ohh Maybe I am looking some questions(many) and even user get answer they should not changed status so I am reading some posts and try to get problem and loosing time..
So I am putting that PS wiht BOLD because I dont wanna lose time my friend ;) Because While I am trying to help ppl here In same time I am trying to giving support to my customer prod systems. Which mean time is very important for me...
Hope my answer could satisfy you..
One important PS for you.. You may not like my posts (or someone) but my friend I become tired to read&answer and make commend to on your comment which is about my posts.
I am not newbie in forum(At least I fell like that) and I belive I know how I should make post..
Thank you
Regards
Helios -
Urgent : Bill Qty based on Fisrt day of Previous week to current week
Hi,
I have to create a Restricted Key figure.
Bill Qty is to be restricted on a day, which is first day of previous week.
(1) I have restricted KF, with Current Week SAP exit variable.
(2) Restricted KF, with Calendar Day (Variable ZDATE, customer exit type).
(3) I have written Customer Exit in CMOD...
data: LT_RANGE type RSR_S_RANGESID,
LS_VAR_RANGE like RRRANGEEXIT.
case i_vnam.
when 'ZDATE'.
if i_step = 2.
break-point.
loop at i_t_var_range into ls_var_range where vnam = '0CWEEK'.
data: var1(2) type c,
var2(4) type c,
var3 LIKE SCAL-WEEK,
date1 like scal-date,
DATE2(10) TYPE C,
MNTH(2) TYPE C,
DAY(2) TYPE C,
YEAR(4) TYPE C.
var1 = ls_var_range-low(2).
var2 = ls_var_range-low(4).
concatenate var2 var1 into var3.
CALL FUNCTION 'WEEK_GET_FIRST_DAY'
EXPORTING
WEEK = var3
IMPORTING
DATE = date1
EXCEPTIONS
WEEK_INVALID = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
MNTH = DATE1+4(2).
DAY = DATE1+6(2).
YEAR = DATE1+0(4).
CONCATENATE DAY '/' MNTH '/' YEAR INTO DATE2.
lt_range-low = date2.
lt_range-high = date2.
lt_range-sign = 'I'.
lt_range-opt = 'eq'.
append lt_range to e_t_range.
endloop.
endif.
<b>BUT I AM GETTING ERROR -</b>
00010004 AError for variable in customer enhancement ZDATE
Please suggest any idea..
Thanks
saurabhHi Saurabh,
Please try this dample code
WHEN 'ZDATE'.
DATA: Z_WEEK TYPE SCAL-WEEK.
*Determine current week from SY-DATUM
CALL FUNCTION 'DATE_GET_WEEK'
EXPORTING
DATE = SY-DATUM
IMPORTING
WEEK = Z_WEEK.
*Determine first day of current week
CALL FUNCTION 'WEEK_GET_FIRST_DAY'
EXPORTING
WEEK = Z_WEEK
IMPORTING
DATE = LT_RANGE-LOW.
LT_RANGE-SIGN = 'I'.
LT_RANGE-OPT = 'eq'.
APPEND LT_RANGE TO E_T_RANGE.
Regards
Joe
Maybe you are looking for
-
I have a backup from Time machine of my iPhoto and I get the above error when I try to restore them. Thae backup was done with Mountain Lion and I upgraded to Mavericks. The backup is on an external drive. Again this is the error: The Finder can't co
-
I have a Mac Pro w/ ATI Radeon X1900. I want to connect a HP briteview w2207 monitor to it . Has anyone had any problems with this? I want to check before I purchase the monitor.
-
Clusterware 10gR2 10.2.0 Solaris 10x86 11/06 u3
Hello all im trying to install clusterware on the above architecture & am receiving errors. tail -f -10 /oracle_cluster/product/10.2.0/crs/install/make.log make: Fatal error: Command failed for target `client_sharedlib' /usr/ccs/bin/make -f ins_net_c
-
I need to backup to TC from another wireless network
TC works fine when I am within range of the network, but I want to back up when I am connected to the internet but on another network. TC is always connected (ethernet), is this possible/how do I do it?
-
i have lion....i started my mac mail for the first time. it was great it like automaticly had my email address and i just had to do password. that was all the options i was given. after a few mintues i changed computers and i went to yahoo to check m