Average Calculation for the Dynamically Changing Columns

Hello Experts,
We have to design the following scenario in a query in the query designer.
Variable Selection = 0CALMONTH Range Value
The Report Data should be as below
For Example: 0CALMONTH = MONTH1 to MONTH3
MONTH1--MONTH2--
MONTH3
Statistical Forecast %-- A%B%--
C%
MAPE--(A%B%C%)/3(A%B%C%)/3--
(A%B%C%)/3
For Example: 0CALMONTH = MONTH1 to MONTH5
MONTH1--MONTH2MONTH3MONTH4--
MONTH5
Statistical Forecast %--A%B%C%D%--
E%
MAPE--(A%B%C%D%E%)/5(A%B%C%D%E%)/5----(A%B%C%D%E%)/5   .............
In this report the number of columns will be dynamically changing depending on the 0CALMONTH range value and we need to calculate the MAPE value which is equal to the average value of Statistical Forecast %.
Can someone please provide me the inputs on how to calculate the MAPE value for the dynamically changing columns.
Regards,
AVS Reddy

Victor,
I have this code here
AVG(DESCENDANTS(COSTCENTER.H1.Currentmember,1))
Working for me right now, without using the second parameter on the AVG function, and 1 for te descendants, and the first decendants of the current acount are not the base level of the hierarchy.
And if you need to specify the lowest leves to get it to work something is wrong.
Use the formula above and try optimizing you application.
Best
Leandro

Similar Messages

  • Dynamically change column heading without Dashboard Prompt

    Hi All,
    My requirement is change the column heading dynamically in a report. I have achieved this through setting the presentation variable to the dashboard prompt.
    I have 5 columns in the dashboard prompt. Out of these 5 columns, I want to use only 1 column as dashboard prompt.
    But still I want to dynamically change the column heading of the other 4 columns based on the only 1 column selected in the dashboard prompt.
    Is there anyway to achieve this?

    You need to have some logic to change other 4 columns based on 1 selected column.. where you want put that logic?
    BTW: Check these
    http://total-bi.com/2011/03/obiee-dynamic-column-headings/
    http://rampradeeppakalapati.blogspot.com/2012/02/dynamically-change-column-names-in.html
    If helps mark or also update back if you are thru with this.

  • Fix for the Identity change with Siri

    After trying all different ways to sync my phone and my wife's Iphone through the cloud sharing contacts and calenders, I think I have the fix for the identity change that Siri does.  I turned off the contact sync on iCloud and it stopped swapping identities.  I think that sharing contacts makes the iCloud think there is only one user.  Downside of the cloud but not worth the hassle factor.  I will sync contacts through iTunes.

    gmiller0 wrote:
    My mac has 10.7.3 and will not connect to wifi after it wakes up. Have contacted AppleCare but the problem cannot seem to be resolved.. I guess this is a major issue with Lion:(
    What model of Mac?  I have a MBP running 10.7.3 and do not have that issue.  From the other couple of posts I've seen about it, it seems to be maybe an issue with some iMacs?  Have your tried searching the Lion or iMac forums for similar issues, just to see if anyone has hit on why it is happening?

  • [svn] 4764: Fixes to flex4tests to [finally] account for the API changes in effects in yesterday's commit.

    Revision: 4764
    Author: [email protected]
    Date: 2009-01-30 11:47:42 -0800 (Fri, 30 Jan 2009)
    Log Message:
    Fixes to flex4tests to [finally] account for the API changes in effects in yesterday's commit. Tests now compile and run...
    QE Notes: None
    Doc Notes: None
    Bugs: None
    Reviewer: Ryan
    Modified Paths:
    flex/sdk/trunk/development/eclipse/flex/flex4test/src/EffectsProperties.mxml
    flex/sdk/trunk/development/eclipse/flex/flex4test/src/components/AnimationPropertiesForm. mxml
    flex/sdk/trunk/development/eclipse/flex/flex4test/src/layouts/NumberInterpolatorWrapping. as
    flex/sdk/trunk/development/eclipse/flex/flex4test/src/testWheel.mxml

    It happens on
    darkchronicles.net
    thedreamkeep.com
    atittercompany.com
    codexdemagicus.com
    So far, it is happening to 4 sites that I work with.  Yes, they all use the same server, and the server company swears it is not their end.  I don't quite understand what you mean "is it coming from a web page?"  I edit and upload pages in Dreamweaver and then when I try to check the edited pages in Chrome, Firefox, Opera or Safari on 3 different computers that I have to work on, I get the error.  If I edit in Dreamweaver and then use Core FTP LE to upload, then check the pages, I do not get the error.

  • What is the average speed for the fans? Mine seem really slow.

    What is the average speed for the fans in a MacBook Pro? When my computer is fairly idle, like right now, the fans are at roughly 1000 rpm each. Is that normal? I have seen posts where the fans are 2500-5000 rpm, so mine seem a bit low. That may explain why my computer has been getting hotter more quickly lately - this started happening after Apple replaced my logic board a few days ago.

    I installed smcFanControl2 and according to that program, Apple's defaults are 2,000RPMs and the program will not let you set it any lower than that because of the increased risk of damage.
    My fans are always at 2,000RPMs during normal usage, and then once I fire up a DVD or Photoshop it usually goes up to the 3,000s or so.

  • Dynamically changing column display type

    Hi,
    I have a report that gets generated every day with different column names. The report contains a decode statement that uses a row value to return using pictures. The problem I am running into is the column is being displayed as text and the value of the row is showing up as some html text instead of the picture. The default Column report in APEX 4.1 is for the report to be displayed as "Display as Text". I know the APEX team did this for security reasons. Is there any other way to display the column as "Standard Report Column".
    I want the report to be displayed as a "Standard Report Column" instead of me going in and changing it manually to "Standard Report Column".
    Any help in the right direction is appreciated.
    -Abe

    I have been trying to find the same solution... the ability to either default all my columns to "Standard Report Column" instead of "Display as Text" or to dynamically change them from code. Or it would even be great if the "Display As" value on report columns (both Classic Reports and Interactive, mine is Classic) was a column in the "Column Attributes" table on the "Report Attributes" page so that I could just change them all and hit "Apply" from that one page instead of having to go into each column's properties individually. (It's time consuming and tedious and easy to miss columns because I can't tell what I've changed.)
    If anyone has any thoughts, I'd love to hear them...

  • Due date calculation for the credit memo with invoice reference.

    Hi,
    When we create the credit memo with reference to invoice, the due date for the credit memo is getting copied from Invoice. In this case if the invoice is due on 31.12.2008 and the credit memo is created on 10.09.2009, then the credit memo due date is appearing as 31.12.2008. It should be 10.09.2009 as per the setting in VOFA billing type customisation in "Credit Memo w/vldt".
    I would like to know how to customise the below requirement.
    If the reference invoice is due after the credit memo creation, the the credit memo should due as per the invoice date.
    If the invoice due is past & then the credit memo due date should be Immediate i.e. Due Immediately.
    Thanks in advance for help.
    Regards,
    Nithin

    I doubt there is such option. From the past projects I do remember that we made a change in the form to print the document date as 'Due Date' for credit memos. Credit memos were paid at once when they were processed and I think that payment term was copied from the original invoice, which made their due date far in future.

  • Error in MIRO - Moving Average price for the Material is negative?

    Hi,
    While doing Invoicing, the following error is coming:
    Moving average price for material is negative: 13070106001 1000 NEW
    Message no. M8783
    Please note that all the Material Qty has been sold out
    Please help.
    Regards,

    Hi,
    Still, I am not able to get the Solution.
    The actual problem is that at the time of PO creation, we entered ADC value as 106.350,70 USD (which was actually 106.350,70 INR).
    MIGO - FI Document
    Local Tradeable Good     94.000,00
    GR/IR-clearing - ext     54.000,00-
    ADC Clearing     106.350,70-
    ADC recoverable     106.350,70
    Clearing Charges A/C     40.000,00-
    FI Document on simulation
    SILINK HOLDINGS LIMITED /      106.351,00-
    ADC Clearing     5.237.771,98
    Additional Duty     2.252.693,81-
    Price dif. Gain - Trading     2.878.727,17-
    Now we are doing MIRO for 106.350,70 INR and the System is giving the following error:
    Moving average price for material is negative: 13070106001 1000 NEW
    Message no. M8783
    Current Stock Status:
    Total Stock          4.390
    Total Value          929.695,90
    Moving price         211,78
    Price Control        V
    Please help!
    Regards,

  • [Extend DBI] specify the drill-down report for the custom report column

    Hi,
    I realized two custom reports by using the extend DBI tools:
    1st report displays the sum of invoices amounts grouped by Operating Units.
    2nd report display the details of invoices for all Operating Units
    In the 1st report I specified a link on the column Operating Units to drill-down at 2nd report.
    The problem is how specified the drill-down link so that the 2nd report display only the detail of invoices for the selected Operating Unit?
    Thanks.

    Adding the time dimenstions like Year, Quarter, Period, Week is quite possible.
    Steps would be:
    1. make sure your data source (Table/View has these columns). If you don't have them you can generate them by joining the date of the data table with FIII_TIME_DAY.
    2. Map these new columns to appropriate Dimesnions. (Lile Enterprise Year, Enterprise Quarter etc.)
    Once you have done these two your report will work for the Time Dimensions.
    I dont think its possible to get the Prior Period functionality unless you use a generated datasource.
    Regards,
    Sudeep

  • Will my phone automatically go one hour ahead tonight for the time change? Also, if I set my alarm will it go off at the time it's supposed to, or an hour later?

    I live in ny and was wondering if tonight with the time change, will my iPhone automatically change the time? Also, if my alarm is set to go off in the morning, will it go off an hour later, or at the time that its supposed to?

    On your iPhone, go to Settings > General > Date & Time.
    If you have Set Automatically selected, the date and time for your iPhone is set automtically based on the tower your iPhone is connected to with your cell phone carrier.
    The date and time will be changed automatically on your iPhone based on your carrier changing the date and time at the tower your iPhone is connected with.
    If the date and time is changed automatically on your iPhone, the alarm wiil go off at the selected time for the alarm. If you need to ensure you don't miss waking up at the designated time, I would use a backup alarm that is not based on the date and time being changed by your cell phone carrier.

  • How to display a Column Header for the characteristic Text column

    Hi All
    Our users want me to provide for a column header for the characteristic text.
    Here is what I mean
    I am reporting 0plant in the rows as key and Text. In the column on Plant Key the column header says Plant but there is no column header for the plant text.
    Eq:
    Plant                                                        Amount
    IE00         Initiator Plant                               244
    IE01         Initiator Plant NJ                          890
    Our users in the plant text column want a dummy column header to be displayed. SInce they download the data from the BW report to Excel and use pivot reporting. How can I introduce a column header for the texts.
    Thanks
    Karen

    Hi Karen,
    I am not sure if this is possible, although Users can ask anything :).
    In Planning we used to predefine cell headings via Macros and creating dummy cells in between.  I am not sure if a similar scenario can work here.
    By default this is not possible in Reports.  In BEx workbooks, you could probably try with Macros.
    Another easy option is to bring the data in the Cube as another field or create a nav. attribute in the master for text and use it as a nav. attr. in the Cube and put it in your Query row alongside.
    -Aby

  • Moving average price for the material is negative

    Dear ALL,
    While doing the MIRO (invoice posting), one of the user getting this error "Moving average price for material is negative :CWM006070c73 CHE1"
    Any one help on this,
    It is stop the production .
    Regards,
    Murthy.

    Hello,
    please check your PO whether net price is in negative or not and also check ur matyerial master
    Thanks,

  • Sales Order Revenue Calculation for the opening balance

    Hi
    Using SLA tables I wrote the following function to calculate the opening balance for the given period for gieven sales order. The problem is that is is very slow. How do I achieve the same result using the AR Interface Tables?
    CREATE OR REPLACE FUNCTION APPS.REV_OPENING_BAL(period_in varchar2,so_number_in varchar2)
    RETURN NUMBER IS
    rev_open_bal NUMBER:=0;
    BEGIN
    rev_open_bal:= 0;
    SELECT nvl(sum(xdl.UNROUNDED_ACCOUNTED_dr),0) - nvl(sum(xdl.UNROUNDED_ACCOUNTED_cr),0) into rev_open_bal
    FROM gl_code_Combinations c, xla_events xe, xla.xla_transaction_entities xte,
    xla_distribution_links xdl, XLA_AE_LINES xal, xla_ae_headers xah
    WHERE xah.AE_HEADER_ID = xal.AE_HEADER_ID
    AND xal.AE_HEADER_ID = xdl.ae_header_id
    AND xal.AE_LINE_NUM = xdl.ae_line_num
    AND xdl.event_id = xe.event_id
    AND xe.entity_id = xte.entity_id
    AND xe.application_id = xte.application_id
    AND xte.source_application_id = 222
    AND c.code_combination_id = xal.code_combination_id
    AND to_date( period_name, 'MON-RR' ) <= to_date( period_in, 'MON-RR' )
    AND accounting_class_Code in ('REVENUE','UNEARNED_REVENUE')
    and (SELECT interface_header_attribute1
    FROM ra_customer_trx_all
    WHERE customer_trx_id = source_id_int_1) = so_number_in;
    RETURN rev_open_bal;
    EXCEPTION WHEN NO_DATA_FOUND THEN
    rev_open_bal := 0;
    RETURN rev_open_bal;
    END APPS.REV_OPENING_BAL;
    /

    Did you figure this out?
    I am trying to write a report to reconcile the sub-ledgers to GL as part of a conversion from 11 to R12 and would like to be able to dynamically go against the various sub-ledger tables without writing a new script for each sub-ledger.
    Or some easier way.
    Any thoughts on this?
    Thanks,

  • User roles were deleted for the mass change in CUA system.

    Dear Team,
    I have assigned a role to a set of users in CUA via SU10 to a specific child system, as like I have executed the task 3 to 4 times for the assignment of the different roles to a set of users and some users may repeated in each execution .
    And when I check in child system after few hours the old roles were deleted and contains the role which I have assigned in the mass change.
    It was happened only to few users not more than 20 users, then I expected that may be the users who get repeated in SU10 more than one time for the different role assignment it get impacted.
    But that is not a problem, because I verified some of the users who repeated more than one time in child system and they didnu2019t get deleted  the old roles and it was appended with the new role to the existing rights of the user.
    Still some of the IDOC were showing in SCUL transaction with Yellow signal triangle shape
    So please help me out what would be the issue.
    Kindly let me know if need more information....
    SV

    Hi,
    It is a problem related to IDOC issue. Please contact Basis Team regarding pushing of the Idocs. I am giving an over view of the steps that needs to be executed for idoc push. Please contact Basis with the same.
    Run RBDAGAIN report (se38)
    Give Idocs and save as variant.
    Now go to sm36 specify a job name and start.
    This will change the Idoc status from 02 to 30. For 03 to 30 it needs a different report. Please check and let me know if any issue. As long as idocs are not pushed properly it will give an error. At times also check the CUA user is ok or not. It gets locked at times. To know which one is the CUA user->Login to child system->su01->See the change executed by the user->Get the user name.
    Let me know if any issue.
    Regards
    Aveek.

  • Depreciation is not calculating for the first month after go-live

    Hi gurus
    I am trying to calculate depreciation for the first month after going live of the project.
    But system is not posting anything
    I am using AFAB
    Test tun
    But no details
    Even no error messages
    Pls help me to proceed further.
    Reply will be appreciated with full points
    Thanks in advance
    Sneha

    Hi
    Thanks for info
    I tried even with Repeat run and other modes also but vain
    Am able to see the planned amount in Aw01n asset explorer.
    But even now it is not posting But there is no error
    Pls help me
    Thanks in advance
    Sneha

Maybe you are looking for

  • ORA-20011: Approximate NDV failed:

    Following errors written to the Alert log file. can anybody tell u what is the reason & how we can resolve ORA-20011: Approximate NDV failed: ORA-29913: error in executing ODCIEXTTABLEOPEN callout ORA-29400: data cartridge error Thanks in advance..

  • Explain plan changes by result size from contains clause

    I use 10.2.0.3 Std Edition and have a query like this select t1.id from table1 t1 where t1.col99 = 123 and t1.id in (select ttxt.id from fulltexttable ttxt where contains (ttxt.thetext, 'word1 & word2')); (note: for each row in table1 exists at least

  • How to implement user logoff with ABAP

    Hi NG, how do I implement a user logoff in ABAP? Kind regrads Stefan

  • Stacked canvas background color

    How on earth do I get the background color of my stacked canvas to be the same as the rest of my form (the default forms grey color)? I have both my main canvas and stacked canvas on the same visual attribute, all with background & foreground colors

  • Secured Gateway on iWeb?

    Hi, Does anyone know if it's possible to create a secured passworded area on an iWeb website? Or through iWeb itself? Thanks, Dave.