BW Report-Cell Definition

Hi,
   I have a issue with BEX Reporting...
          I need to create some Fields as selection under a structure.For each Field I have a Hidden column with the same name and with all the filters for that particular hidden column.Now in the Cell definition I give the filters and define the hidden column as Cell Reference. Now for the visible fields i need to do cell calculation using something like this--
IF Cell_Reference > 0 THEN Cell_Reference ELSE NULL.
I cannot find a function to carry out such a calculation.
Can anyone please suggest as to how do i do it..?
Thanks a lot..
Jeev

Hi,
Try to create Restricted Key figures for those characteristics based on the key figure for which you want to calculate and create condition based on the created RKF to check for > 0.
Hope this helps
AP

Similar Messages

  • Cell definition in Report Painter

    Dear All,
    I am looking for some documentation or any other sort of help regarding the cell definition in Report Painter reports.
    Regards
    Shirazi

    <a href="http://help.sap.com/saphelp_47x200/helpdata/en/46/1a1c3ac9fb1d75e10000000a114084/content.htm">SAP documentation</a>

  • What is Cell  Definition  (BW 3.5)

    Hi Experts,
    Could any of you explain what is the Cell definition and how that is useful in reporting (SAP BW 3.5)
    Please explain with a good example as Iam struggling to understand teh exact use of this.
    Points guaranteed.
    Thanks & Regards,
    Sunny

    Hi ,
    Cell definition is used in order to avoid formula collision. for example in a table in one row you has used one formula and in column you have used another formula then at certain cell the system is unable to identify that it should apply which formula .
    So for that cell we explicitly define a formula that should be used by the system.
    Check the below thread for more:
    Cell Definition in the query
    Hope this helps,
    Regards,
    Supriya

  • Cell Definition in Query Designer

    Hi,,
    Can anyone will tell me the real time use of cell definition option in query designer.
    Thanks and Regards.
    Anjali

    Anjali,
    You can use cell definitions when you want to overwrite the value of a particular cell.
    For this you need to have an identification of where the cell intersection takes place. So for defining cell definitions its mandatory to have two structures in the report.
    Now coming to the scenario,
    You have GL accounts in the rows structure and the key figures amount, deductions and some others.
    Rows-----Amount--
    Deductions
    1001--20000--
    100
    1002--15456--
    4363
    1007--64334--
    252
    1005--36643--
    34
    1111--43436--
    343
    This is what the report displays for a particular year the user enters e.g 2007.
    But for a GL account 1005 the user wants to display the amount for the last fours years.
    The out put for amount for the GL account 1005 displays only 2007. The requirement is that it should display the summed up values of 2007,2006,2005,2004.
    To get this out put we go for cell definitions and in the intersection of the 1005 GL account and amount we define a cell definition. Based upon the requirement we define the cell definition...
    Hope this helps you.......

  • Use of hierarchy with cell definition

    Hi all,
    I have an issue with a query that is using cell definition in order to have different selection criteria in 2 columns.
    In the cell definition, it has being defined a new selection using a hierarchy ( 0costcenter hierarchy) to filter and select the desired values, but the query result is not taking into consideration the filter with the hierarchy.
    I have tested the same selection out of the cell definition and the right values are selected...
    Is there any constrain in the use of hierarchies to filter values within the "cell definition"?
    Many thanks in advance,
    Elena

    Hi Elena,
    I too face the same problem for cell definition with hierarchy.
    As per my knowledge cell definitions are purely valid for that cell only (like MS Excel formula in a cell).
    So cell definitions are possible with static reports only (with out hierarchy drill downs).
    If you got any solution please let me know.
    Thanks = Reward Points
    Ram
    Message was edited by:
            Ram Yaganti

  • Cell definition not available in Webi

    Hi Gurus,
    I have defined cell definition in a bex report, but unable to get it in te webi report. We have  around 20 rows & 7 columns. Out of the 2 structures used only the row structure(characteristic structure ) is visible in webi. the keyfigure structure in not visible in webi.How can I see the cell definitions in te webi report??
    we are using the latest version.
    Rgds,
    Vandana.

    Hi,
    KeyFigure Structure is never visible in WebI, you will just have a flat list of Measures corresponding to all visible members of your KeyFigure Structure. For Structure based on Characteristics you will have a Dimension in Univers which will contain same hierarchy of members (visible ones) defined in Structure.
    Any KeyFigure with unsupported configuration (like cumulation, local calculation ...) will not be leveraged in Universe, so it's possible to have no KeyFigure in QueryPanel outline if you have only unsupported KeyFigures in your Bex Query.
    You should first try to create a BEx Query with very simple double Structure design, to make sure you get correct behavior in this case, and then create your DataCell definitions and Calculated/Restricted KeyFigures.
    Regards,
    Loic
    PS : any unsupported DataCell will give a warning output in SemanticLayer logs, to help BOE administrator understand why BOE Universe has not same exact design as BEx Query.

  • Cell Definition and Reverse sign Issue after upgrade

    Hi ,
    we are having a issue here after upgrade to BI 7 from 3.1c .
    There is a Collision between Cell Definition and Reverse sign in the query designer.
    Issue is . We have Key Figure "Net Days AR" which has Reverse Sign Checked under properties. In 3.1c when we ran the report the Net Days AR would get value like  for example    -40 . but now after upgrade to BI 7 SP 16 we are getting value 40. the negative sign is missing. The formula is correct.
    I went and checkd if we have any cell definitions defined on this and found the cell definitions onthis keyfigure.
    values are comming correct if there are  no cell definitions.
    Thanks in Advance and Points will be awarded.
    Thanks,
    Reddy

    we have the same problem. In BI 2004s with BEx 3.x when the cell reference is defined, the reverse sign flag is ignored.
    I opened a message to SAP. Until now no solution and I think we'll never receive solution. Here are the answers we received:
    SAP
    I have to say this is the limitation of front end 3.5.
    In designer 3.5, it works this way:
    When you define a cell referance, this cell is blocked from change of the column property change. No matter how you change the column key fig proerty, it keeps the original status when you define it.
    If you want the defined cell property, you need to delete the cell
    referance, change property, then redefine the referance.
    I agree this is very inconvinience, that's why I would recommend you to use query designer 7.0 if possible. With 7.0 front end, you can define separately the property for defined cells. It is more flexible.
    ME
    At the moment it is not possible to migrate to 7.0 frontend.
    I tried to delete the cell reference, change properties and redefine the reference. I tried to create new columns, define cell properties, save and define the cell reference. I tried several different combinations...
    No way, as soon as I define the cell reference, column properties are ignored.
    1) How can we restore the correct behavour of a query in frontend 3.5?
    2) If we found a way to restore it, we need a smart procedure to modify all our existing queries (including how to identify those affected by this inconvenience).
    SAP
    For front end 3.5, you need do following:
    1. delete cell referance
    2. change the column property (such as tick on or off the sign reversal)
    3. re-define the cell (this cell will with the new sign status)
    4. define formular base on cell
    After step 3, you can't change cell property whatever you do in
    column property. This is the designed behavior.
    If you want to change property after step 3, you need to start
    all over from step 1.
    ME
    I did it.
    Don't work. When I define the cell reference, column properties are ignored.
    SAP
    It seems there is some issue in front end.
    Do you use the front end 3.5 with latest patch?
    Could you please check front end installation as per sapbexc.xla (described in note 197460). If there are problems shown within this check do the following:
    - Remove your frontend via 'START' - 'PROGRAMS' - 'SAP FRONTEND' -'REMOVE SAP FRONTEND'
    - Install the lastest frontend and GUI patch (according to note 496977or 496989 again and check the installation).
    ME
    I don't think so. I am using:
    Sapgui 7.10 Patch 8
    Bex 3.50 Patch 3
    Bex 7.x Patch 5
    to be continued...

  • Using Bex Query with cell definition with WEBI

    Hi,
    Currently I am using a Bex query as a datasource for a webi, normally this works ok but I am having trouble with one particular query.
    This query has cell definitions defined in the query. When i import the query into WEBI I get an MDX error.
    Any suggestions?
    Thanks
    Flash

    Hi,
    We do not see all elements of the BW query in the universe, just those not using cell definitions.
    We are currently on Business objects XI 3.1
    Using BW 3.5
    And the query runs fine using RSRT, it does show some asterix for some of the values but this can be removed by filtering on currency type in BW report
    Thank You,

  • Cell Definition, Cell Help, Currency Translation

    We are currently using a help cell within cell definition that calculates a key figure.  We have adjusted the query to be able to show the key figures in both Canadian and US currency.
    The Help cells within the query do not pick up this translation and so the currency in the cells that reference these help cells is incorrect.
    We are using a variable on the variable screen to change the currency as needed within the report.  Is there any way we can get these help cells to pick up the currency translation or do we need to create the formula within each cell in the cell definitiion?
    Thank you.
    Caroline

    Caroline,
    You should be able to add the same currency variable the report uses within the help cell for your calculations. 
    My assumption is your report is using an infoobject restriction (like 0DOC_CURRCY) with your key figures to determine currency values.   If you bring this object in as a restriction in your help cell, you can then add the variable. This should correct your translation issues.
    Good luck!
    -Andy

  • Cell definition / Cell exception

    Hi,
    Can you please explain me What are the situations we are using Cell definition and Cell exception in BEx Query??
    Regs
    Kuttan

    Hi,
    in exception reporting you select and highlight objects that are in some way different or critical. Results that fall outside a set of predetermined threshold values (exceptions) are highlighted in color or designated with symbols. This enables you to identify immediately any results that deviate from the expected results.
    Exception reporting allows you to determine the objects that are critical for a query, both online, and in background processing.
    http://help.sap.com/saphelp_nw04s/helpdata/en/1a/615f64816311d38b170000e8284689/frameset.htm
    You can define threshold values (exceptions) for a query. Data that varies from these thresholds is highlighted in color or marked with icons. You can use these exceptions to identify deviations from expected results at a glance.
    http://help.sap.com/saphelp_nw04s/helpdata/en/9d/76563cc368b60fe10000000a114084/frameset.htm
    Regards
    Andreas

  • Copying Cell Definitions

    Hi all,
         I would like to know if there is any method to copy a cell definition to another cell. Basically I have cell definitions on Month and few keyfigures. I have to select these keyfigures and restrict current Month. I have to do this for all 12 months. The only things that differs for all the cell defs is current month restriction. I would like to know if I can copy the first cell def and paste it to the remaining months and later edit the restriction.
    I do not see any option in cell definitionsv to do this. Any help would be greatly appreciated.
    Thanks in advance.
    Prabhu.

    Hi Prabhu,
    If you have two structures in your report you can do it by defining exception cells.
    Check this service.sap.com/bi
    https://websmp102.sap-ag.de/~sapidb/011000358700001149282005
    Also Check this
    http://help.sap.com/saphelp_bw33/helpdata/en/cb/89fa3a0376a51fe10000000a114084/content.htm
    Vijay.

  • Details about cell definition

    hi,
       Can anybody give me the complete details about cell definition, where, why and how we are going to use.
    Regards

    Hi,
    You can use the cell Editor tool when you have a structure in the rows and one in the columns.
    For each cell you can define a custom selection, a custom formula, or a custom cell definition.
    I find the Cell Editor very useful when different logic is needed for each cell in your report.
    Hope it helps,
    Gili

  • Issue with SSRS Loading Report from Definition From Assembly

    I am using SharePoint 2010. I created web-part where there is report viewer control. On the page load of the control. I am writing below codes to load report from definition. Web part is not giving any error but also not lading report. I tried to make physical
    report file from my stream and I found that report is correct.
    But I don't know what is missing.
    protected void Page_Load(object sender, EventArgs e)
    if (!IsPostBack)
    Assembly assembly = Assembly.Load("Reports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f51c855eec632536");
    Stream stream = assembly.GetManifestResourceStream("Reports.Reports.rdlc");
    MemoryStream rdl = new MemoryStream();
    CopyTo(stream, rdl);
    rptInspectorPlan.Reset();
    rptInspectorPlan.LocalReport.LoadReportDefinition(rdl);
    rptInspectorPlan.LocalReport.DataSources.Clear();
    rptInspectorPlan.LocalReport.DataSources.Add(new ReportDataSource("MyData", finalData(getInspectionPlan())));
    rptInspectorPlan.LocalReport.Refresh();
    protected DataTable getInspectionPlan()
    DataTable dt = new DataTable();
    DataTable dtCurrentUser = getCurrentUser();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("InspectionPlan");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='Title'/><Value Type='Text'>" + dtCurrentUser.Rows[0]["ID"].ToString() + "</Value></Eq></Where>";//getCurrentUserID()
    oQuery.Query = query;
    dt = list.GetItems(oQuery).GetDataTable();
    return dt;
    protected string getMarketSurveillanceURL()
    string URL = ConfigurationManager.AppSettings["MarketSurveillanceURL"].ToString();
    return URL;
    protected string getMainSiteURL()
    string URL = ConfigurationManager.AppSettings["MainSiteURL"].ToString();
    return URL;
    protected DataTable getCurrentUser()
    SPUser user = SPContext.Current.Web.CurrentUser;
    DataTable currentUser = new DataTable();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("Inspector");
    SPQuery oQuery = new SPQuery();
    string query = "<Query><Where><Eq><FieldRef Name='LoginID'/><Value Type='Text'>" + user.LoginName + "</Value></Eq></Where></Query>";
    oQuery.ViewFields = "<FieldRef Name='ID'/><FieldRef Name='Title'/>";
    oQuery.Query = query;
    currentUser = list.GetItems(oQuery).GetDataTable();
    return currentUser;
    protected DataTable finalData(DataTable inspectionPlan)
    DataTable dt = inspectionPlan;
    DataTable dtCurrentUser = getCurrentUser();
    dt.Columns.Add("InspectorName");
    dt.Columns.Add("ProductName");
    dt.Columns.Add("CategoryName");
    dt.Columns.Add("InspectionTypeName");
    foreach (DataRow dr in dt.Rows)
    if (dr["Title"].ToString() == dtCurrentUser.Rows[0]["ID"].ToString()) dr["InspectorName"] = dtCurrentUser.Rows[0]["Title"].ToString();
    dr["ProductName"] = getProductName(dr["ProductID"].ToString());
    dr["CategoryName"] = getCategoryName(dr["ProductID"].ToString());
    switch (dr["InspectionType"].ToString())
    case "0":
    dr["InspectionTypeName"] = "Periodic";
    break;
    case "1":
    dr["InspectionTypeName"] = "ComplainFollowup";
    break;
    dt.AcceptChanges();
    return dt;
    protected string getProductName(string id)
    string productName = "";
    DataTable dt = new DataTable();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("Product");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='ID'/><Value Type='Text'>" + id + "</Value></Eq></Where>";//getCurrentUserID()
    oQuery.ViewFields = "<FieldRef Name='ProductEN'/><FieldRef Name='ProductAr'/>";
    oQuery.Query = query;
    dt = list.GetItems(oQuery).GetDataTable();
    foreach (DataRow dr in dt.Rows)
    productName = dr["ProductEN"].ToString();
    return productName;
    protected string getCategoryName(string productID)
    string categoryName = "", CategoryID = "";
    DataTable dtCategory = new DataTable();
    DataTable dtProduct = new DataTable();
    using (SPSite site = new SPSite(getMarketSurveillanceURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("Product");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='ID'/><Value Type='Counter'>" + productID + "</Value></Eq></Where>";
    oQuery.ViewFields = "<FieldRef Name='CategoryID'/>";
    oQuery.Query = query;
    dtProduct = list.GetItems(oQuery).GetDataTable();
    foreach (DataRow dr in dtProduct.Rows)
    CategoryID = dr["CategoryID"].ToString();
    using (SPSite site = new SPSite(getMainSiteURL()))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists.TryGetList("SAS_Categories");
    SPQuery oQuery = new SPQuery();
    string query = "<Where><Eq><FieldRef Name='ID'/><Value Type='Text'>" + CategoryID + "</Value></Eq></Where>";
    oQuery.ViewFields = "<FieldRef Name='Category_Title_EN'/><FieldRef Name='Category_Title_Ar'/>";
    oQuery.Query = query;
    dtCategory = list.GetItems(oQuery).GetDataTable();
    foreach (DataRow dr in dtCategory.Rows)
    categoryName = dr["Category_Title_EN"].ToString();
    return categoryName;
    public static void CopyTo(Stream input, MemoryStream output)
    byte[] buffer = new byte[16 * 1024]; // Fairly arbitrary size
    int bytesRead;
    while ((bytesRead = input.Read(buffer, 0, buffer.Length)) > 0)
    output.Write(buffer, 0, bytesRead);

    Have you found a solution to this issue? I am searching for the same.

  • Customer Exit Variable in cell definition in BEx

    Hi,
    I have defined a query with a Structure in Row and Key Figures in column.
    The result of query should look like this:
    Fiscal/Year Period | Quantity per month | Quantity cumulative
    011.2010 (Variable Offset Value -3) | 5 | 5
    012.2010 (Variable Offset Value -2) | 6 | 11
    001.2011 (Variable Offset Value -1) | 7 | 7
    002.2011 (Variable Single Value, Manual Input) | 8 | 15
    "Quantity cumulative" is defined as follows:
    Quantity cumulative (002.2011) = Quantity 001.2011 + Quantity 002.2011
    Quantity cumulative (001.2011) = Quantity 001.2011
    Quantity cumulative (012.2010) = Quantity 011.2010 + Quantity 012.2010
    Quantity cumulative (011.2010) = Quantity 011.2010
    "Fiscal/Year Period" and "Quantity per month" are OK. But I have problem to define the key figrue "Quantity cumulative".
    I have defined a Customer Exit Variable on Reference Characteristic "Fiscal/Year Period". Moreover I have also defined cell definition to define each individual cell for key figrue "Quantity cumulative" restricted by Customer Exit Variable.
    The Quantity cumulative (002.2011) and Quantity cumulative (001.2011) are calculated correct. But it doesn't work for 012.2010 and 011.2010 (because of previous year).
    I would be helpful if you can give some hints.
    Thanks

    Hi,
    try to use this trick with an IF condition in you customer exit. Calling 'var1' the manual input of:
    data: month_difference TYPE N.
    month_difference = 'var1'+4(3) - 4.
    IF month_difference >= 0.
    DO the classic code which you have already used.
    ELSE month_difference < 0.
    DO the replace concatenating manually 'var1'(4) and the single month.
    ENDIF.
    Hope it helps.
    Best regards.
    Simone.

  • Sub report linking definition based on result, not on parameter value

    Dear all,
    I have created a report with CR 2008 SP6. The parameters from the referring BI query are period and customer. After the user enter parameter values, the report provides then Customer and product information.
    I have add a sub report with additional information for product. I can transfer the parameter value (user input) for Customer to the sub report, but not for product, due to the fact that in the main report Product is not selected as parameter, but is a result set after the report is executed.
    Is there a way to define in the Sub report linking exactly these result values of Product as new parameter for the sub report.
    In the sub report linking definition I only see the possibility of defining the parameter as linking object, but not the report result set. See also the screenshot.
    Any idea would be great. Best regards,
    Stefanos from Munich/Germany

    Hi Stefanos,
    Where is the Subreport placed on the report?
    Do you have a prompt in the Subreport for 'product'?
    If yes, then here's open the 'Change Subreport Links' window > Move the Product field to the Pane on the right > From the drop down at the bottom left that says 'Subreport parameter field to use', choose the Product prompt.
    If you don't have a prompt for product in the Subreport, then just move the Product field to the Pane on the right > From the drop down at the bottom right that says 'Select data in Subreport based on field', choose the Product field from the drop-down.
    -Abhilash

Maybe you are looking for

  • Itunes/external hard drive issue - i cant find the answer anywhere

    okay so here it is: i am currently using an imac g5 (v. 10.4.8) and i just got a g-drive to store my music onto. i am using a 400 firewire cable and i have tried a few different methods to copy my music files to the drive (methods are listed here) bu

  • Computer Crashes on Mail Minimize

    I have a new twist on the mail crashes. I seem to have an intermittent problem. When I click the yellow button to minimize the Mail screen (send to Doc), the minimize animation freezes, mouse freezes and system completely crashes (remaining on frozen

  • Difference between Report screens vs Dynpros

    Hi All:     Could someone please tell me what is the difference between report selection screens and dynpros? Thanks. Mithun

  • Usage of BPM

    Hello Experts, Could you please advise what is the usage BPM? Is it a tool that is faciliating building workflow? If so, what is the added value of using it with respect to standard workflow in SAP? Thanks!!

  • Background job with download

    Hi Is it possible to set a program , that contains the download , in background? If so, how? Thank U Narendra