Calculate NWC (Average for last 4 Month)
Do someone know how to calculate NWC (Average for last 4 Month) using @AVG?FIX ("2002", Jan) "Net Working Capital (Average for last 4 Month)" = @AVG(SKIPMISSING, "Net Working Capital", "2001"->Oct,"2001"->Nov, "2001"->Dec, "2002"->Jan);ENDFIXIn my case, we split the Year and Month Dim in our outline.Can this script work in under our situation???Thanks
Try usingFIX ("2002", Jan) "Net Working Capital (Average for last 4 Month)" = @AVG(SKIPMISSING, "Net Working Capital"->"2001"->Oct,"Net Working Capital"->"2001"->Nov,"Net Working Capital"->"2001"->Dec,"Net Working Capital"->"2002"->Jan); ENDFIX
Similar Messages
-
hi,
i have a column amount. i need to find the avg of it for last 12 months excluding current month.
I have got a query to find it .but it is adding current month also with it.
AVG(SUM(amount)) OVER (ORDER BY ACCOUNT_MONTH_NO
ROWS BETWEEN 12 PRECEDING AND 0 FOLLOWING) rolling_avg,
please help me to write a query as i am a naive user of oracle.Like..
SQL> select * from test;
ACCOUNT_NU ACCOUNT_MONTH_NO AMOUNT
ACC1 1 100
ACC1 2 200
ACC1 3 300
ACC1 4 400
ACC1 5 500
ACC1 6 600
ACC1 7 700
ACC1 8 800
ACC1 9 900
ACC1 10 1000
ACC1 11 1100
ACC1 12 1200
12 rows selected.
SQL> select account_month_no,amount,
2 avg(amount) over(order by account_month_no rows
3 between 12 preceding and 1 preceding) avg
4 from test
5 where ACCOUNT_NUMBER = 'ACC1';
ACCOUNT_MONTH_NO AMOUNT AVG
1 100
2 200 100
3 300 150
4 400 200
5 500 250
6 600 300
7 700 350
8 800 400
9 900 450
10 1000 500
11 1100 550
12 1200 600
12 rows selected.Post sample data and expected output, so that we can help you better -
I am trying to calculate Deviation Measure for the Reports and the formula to calculate is –
(average(last 7 days count ) – today’s count/100 )*10
Problem here is to calculate average for last 7 days .
I am using moving average but if I apply a filter , Moving average is calculated for the number of rows displayed whereas I want it for the number of days.
Formula for Moving average is - MAVG(Row Count,n) where n is number of rows displayed and not number of days. Is there any possible way to do it.(average(last 7 days count ) – today’s count/100 )*10
Filter( avg(col1) using date > current_date-7)) --Average for last 7 days
Filter(count(col) using date = current_date) - today's value -
Hi experts,
i have requirement to write end routine to read a DSO for last 12 months sales quantity for each month and sum value pass to keyfigure
not interested using bex variable, while data loading from source to target dso in end routine i am trying to read another DSO which is same as my
target dso where information is stored by fiscal period, year material etc. finally there is a keyfigure in target whih needs to be filled with sum of 12
months sales quantity, for each record form sourc to target maximum of 12 records will be in read dso (for 12 months) my routine is like below.
i am not expert in abap please kindly gothrough and guide me in this
TYPES: BEGIN OF s_/BIC/AZOSLS00,
FISCPER type /BI0/OIFISCPER,
FISCVARNT type /BI0/OIFISCVARNT,
PLANT type /BI0/OIPLANT,
STOR_LOC type /BI0/OISTOR_LOC,
/BIC/MATERIAL type /BIC/OIMATERIAL,
VTYPE type /BI0/OIVTYPE,
BILL_QTY type /BI0/OIBILL_QTY,
END OF s_/BIC/AZOSLS00.
DATA: it_/BIC/AZOSLS00 TYPE TABLE OF s_/BIC/AZOSLS00,
wa_/BIC/AZOSLS00 TYPE s_/BIC/AZOSLS00.
SELECT
FISCPER
FISCVARNT
PLANT
STOR_LOC
/BIC/MATERIAL
VTYPE
BILL_QTY
FROM /BIC/AZOSLS00 INTO TABLE it_/BIC/AZOSLS00
FOR ALL
ENTRIES IN RESULT_PACKAGE
WHERE
below field is from value of fiscal period (which is fiscal period -999 ex: for 001.2014 this
value will be 002.2013 so 12 months including current period)
FISCPER >= RESULT_PACKAGE-/BIC/ZFISCPERF
below is result filed fiscal period (here i dont know which keyword or statement to be used to select
interval values this between statement giving syntax error that can not be used in where for for all entries
between RESULT_PACKAGE-FISCPER
AND
FISCVARNT = RESULT_PACKAGE-FISCVARNT AND
PLANT = RESULT_PACKAGE-PLANT AND
STOR_LOC = RESULT_PACKAGE-STOR_LOC and
/BIC/MATERIAL = RESULT_PACKAGE-/BIC/MATERIAL .
SORT it_/BIC/AZOSLS00 BY FISCPER FISCVARNT PLANT STOR_LOC
/BIC/MATERIAL .
LOOP AT RESULT_PACKAGE ASSIGNING <result_fields>.
READ TABLE it_/BIC/AZOSLS00 INTO wa_/BIC/AZOSLS00 WITH KEY
below dont know what statement i need to use in read statement for interval of fiscal periods
giving error that >= can not be used
FISCPER >= <result_fields>-/BIC/ZFISCPERF
FISCPER = <result_fields>-FISCPER
FISCVARNT = <result_fields>-FISCVARNT
PLANT = <result_fields>-PLANT
STOR_LOC = <result_fields>-STOR_LOC
/BIC/MATERIAL = <result_fields>-/BIC/MATERIAL
BINARY SEARCH.
BREAK-POINT.
IF sy-subrc = 0.
below for each record there will be 12 records in read so sume of 12 records quantity i need to pass to result again dont know what to say here
sum statement giving error
<result_fields>-/BIC/ZLSTSLS12 =
sum(wa_/BIC/AZOSLS00-BILL_QTY).
ENDIF.
ENDLOOP.
friends please help me in this.
Thanks
Chandra.Hiii,
If you only want to store last 12 months data in Target ODS .
Then Create filter in DTP and write routine in filter for calmonth or fiscal period.
Refer the below link to create filter routine :
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80b2db87-639b-2e10-a8b9-c1ac0a44a7a6?QuickLink=index&…
Regards,
Akshay -
Month doesn't appear in the axis for last 12 months
Hi !
I have created a graph which gives records for the last twelve months, my formula is:
if {Commande.DATE} >= dateadd('m',-12,currentdate) and {Commande.DATE} <=currentdate then {Commande.DATE}
At this point everything's fine ,
I have to create another formula to have Month name
from today which mean ,the order should be like this on my graph axis, 1st last month is febuary and last 12 months from today is March
March - April - May - June - July - August - September - October - November -December - January Febuary
here is that formula which I have called Month Sort order:
If month({@last12months})=01then
"Janv" else
if month({@last12months})=02 then
"Fév" else
If month({@last12months})=03then
"Mars" else
if month({@last12months})=04 then
"Avril" else
If month({@last12months})=05then
"Mai" else
if month({@last12months})=06 then
"Juin" else
If month({@last12months})=07then
"Juil" else
if month({@last12months})=08 then
"Août" else
If month({@last12months})=09then
"Sept" else
if month({@last12months})=10 then
"Oct" else
If month({@last12months})=11then
"Nov" else
if month({@last12months})=12 then
"Déc" else ""
in the Graph/Chart expert ,in the resulting dialog box I have set the following options:
On Change of: i have set the formula Month Sort order which will bring me the month name and for the order I have set in the Original order .
It works fine I retrieve records for last 12 months but on my axis ,the name for
the last 12 months doesn't appear in this case ( March) it is blank ,I have the records for March but not the month name March in my axis it show april to febuary but not March
Thank you for helping meThank you for your reply , but this doesn't solved my problem ,
I'm using a data from SQL2005 which is a stored procedure ,they have created a datefield named "DATE" and group the data the 1st of each month in this SQL stored procedure ,the only day for each month that I have in this data is the first of each month for each record found ,so I've changed the formula for this, to get records the 1st of each month for the last 12 months :
the new Formula for is:
if >= DateAdd("m",-12,CurrentDate) - day(CurrentDate)+1 and
<=DateAdd("m",-1,CurrentDate) - day(CurrentDate)+1 then
this condition formula bring me _Null datefield_ ,and this is why I see a null label axis at the bottom,do you have an idea how I can eliminate the null datefield , I need to have only the last 12 months data on this graph but I need all data for the past 3 years for 2 other grah on this same report
Thank you very much , -
Can any one tell me how to deactivate vendors in sap whom we have not done business for last 18 Month>
Hi Jahanzaib,
You can go to transaction FK05 and block the vendor if you want to deactivate the vendors.
Thanks,
Ameet -
cannot connect to Net, have done for last 12 months no problem, I have other apple products that are connecting to the same hub happily. The hub is seen and the signal is strong, it just doesn't connect. I have reset the network settings with no joy. Any help much appreciated?
Try restarting your WiFi router by removing power to it for 30 seconds.
-
while opening pdf files the menu bar, navigation bar cracks unobviously and also close and minimise buttons goes hidden..Facing the problem for last one month. Please help.
The latest Kaspersky software version is 15.0.1.415 or 15.0.1.415ab.
-
For last one month I am facing problem in watching online videos on my iPod touch. It is opening or can say loading the online videos. Earlier it used to be work absolutely fine. Any solution for my problem.
For last one month I am facing problem in watching online videos on my iPod touch. It is not opening or can say loading the online videos. Earlier it used to be work absolutely fine. Any solution for my problem.
-
How to calculate the measure for the next month using the AGO Function
Hi,
I need to calculate the measure for the current month and the next month.
Can anyone please let me know the syntax to use AGO function for the above requirement.
Regards,
Ambika Nanda.Hi.
You can also use Oracle analytic functions LAG and LEAD inside the EVALUATE obiee function. The second one will give you the next measure.
For example the report is:
TIMES.CALENDAR_MONTH_DESC
SALES.AMOUNT_SOLD
LAG column: EVALUATE('LAG(%1, 1) OVER (ORDER BY %2)' AS DOUBLE, SALES.AMOUNT_SOLD, TIMES.CALENDAR_MONTH_DESC)
LEAD column: EVALUATE('LEAD(%1, 1) OVER (ORDER BY %2)' AS DOUBLE, SALES.AMOUNT_SOLD, TIMES.CALENDAR_MONTH_DESC)
And the result is:
CALENDAR_MONTH_DESC--------AMOUNT_SOLD--------LAG--------------LEAD
2000-01----------------------------------8025513.84---------------------------8474475.88
2000-02----------------------------------8474475.88----- 8025513.84-----7439568.24
2000-03----------------------------------7439568.24------8474475.88-----7062040.48
2000-04----------------------------------7062040.48------7439568.24-----7497971.40
Regards
Goran
http://108obiee.blogspot.com -
How to find the incremental growth of index for last few months
Hi,
How to find the incremental growth of index for last few months.
Thanks,
Sathis.Hi,
Check the below link, it may help you!
http://www.rampant-books.com/t_tracking_oracle_database_tables_growth.htm
Thanks,
Sankar -
How to find top utilized query for last two months in oem
how to find top utilized query for last two months in oracle enterprise manager?
Can you mark the thread as Helpful and once marked the information can be reviewed by other customer for similar queries
Regards
Krishnan -
Counting date transactions for last six months
Post Author: crystalrook
CA Forum: Formula
Any help is greatly appreciated. I am running Crystal XI.
I have an order field (PurchaseOders.PODatePlaced) for each item. There can be multiple orders in the same month for each item of course. I would like to COUNT each PurchaseOders.PODatePlaced based on the month it was purchased for the last six months from a date parameter.
My table looks like this"
Item PODatePlaced
1234 11/12/2007
1234 11/20/2007
1234 10/15/2007
1234 9/30/2006
1234 12/5/2007
1234 12/6/2007
I am trying to get the results to read as follows (only for the last 6 months):
Items December November October
1234 2 2 1
Thanks for your helpPost Author: crystalrook
CA Forum: Formula
I am adding a cross tab to an existing report so many of the fields are already in the report. I would like to only add the month fields and a count of the transactions. Can this be done? In the group options how can I tell it to only use the last six months reguardless of activity for the month. Current results are giving every date as a column. Can I only get the months to be columns?
Any suggestions? -
Can't find data usage for last 6 months in Analyze My Plan
I have accounts with Spring and Verizon. On the Sprint account page, I can easily see my data usage for the last 12 months, both on system data and roaming data (I have been notified of exceeding the monthly roaming data cap).
On the My Verizon website, I can see the last 6-months of Overview billing, but when I click on the data usage, it says there is no data available.
Where can I see the last 12 months of my data usage for my MiFi device?Mooring10 wrote:
Only 90 day? that seems a mere pittance in the days of NSA data collection. My Sprint account shows me on system and roaming data for the last 12 months. I can't ascertain any seasonal trends to my data use with only 90 days. I'm sure you are collecting and saving more than 90 days--common, its just a programming change to show more data. Even my utilitiy bills show me that last 12 months of usage. Please consider revising your website to display the last 12 months of on system, roaming, and total data usage. Thank you.
Your bills which are available for 18 months show the total usage amount for the billing cycle of each bill. -
Thanks in Advance....
I have created the new report in OBIEE that's run finely and it display result (Pivot Table Format) as follow
Prompt Year=2009
Prompt Period=3
Result:
__________ 2009
____________3
Revenue___40000
GP_________200
but here i need same result for previous 4 months like below
Prompt Year = 2009
Prompt Period = 3
Result:
__________ 2009____2009_____2009____2008
____________3_______2________1_______12
Revenue___40000____3000_____1750____800
GP_________200______300______250____100
how could i achieve this..Go through this link.Hope it would be helpful
Rolling Months
You need to use the AGO function with TODATE i suppose which you can find in the edit formula and check out the functions and its example and by this you can achieve your requirement.
Hope it helps.
By,
Kranthi.
Edited by: Kranthi.K on Sep 1, 2009 5:05 AM
Maybe you are looking for
-
Navigational attribute data not visible in BEx Report
Hello All, I am facing following problem in one of my BEx reports: I am fetching data from an ODS. With other columns of ODS, I have also to show few navigational attributes( which are master data of some info-object) . In report the corresponding d
-
Preloader not preloading??
Hello! I have a preloader using this script: stop(); addEventListener(Event.ENTER_FRAME, preLoad) function preLoad(e:Event):void{ var bytestoLoad:Number = loaderInfo.bytesTotal; var numberLoaded:Number = loaderInfo.bytesLoaded; if (by
-
How to stop executing a piece of code after displaying the error message?
Hi All I'm new to ADF, I am doing validation in java class. Like when i click the button, the control goes to a particular method, where i have written the below statements public void fetchValues(ActionEvent actionEvent){ String firstName = getFirst
-
Oracle Applcation Server - Repors Server Hang or Lock
Hi All, Our Enterprise is using Oracle DB 10 g and For Frontend we are using Oracle Application Server - Forms and Reports Services When using the reports IN WEB, we get a default of SUBMIT QUERY AND RESET WHEN RUNNING THE RDF. OUR USERS WHEN THEY SU
-
I know how to watch a streaming movie. Is there a way to download a movie rental? I don't want to buy the movie but you cannot watch streaming video on a plane.