Maximum Cells in Query

Hello experts,
Does anyone know what the maximum number of cells in a structured report is?
I am not talking about the 65,536 rows in Excel, but actually how many rows and columns you can have in your query. 
I am getting a Brain 457 error:
<i>Query ZFI_M02_8Y0_Q977 is too large.
Message no. BRAIN457
Diagnosis
Query ZFI_M02_8Y0_Q977 contains 8192 differing selection cells. However, only 8191 selection cells can be processed in a query.
Procedure
Please simplify query definition ZFI_M02_8Y0_Q977.</i>
I have 95 defined columns and 145 defined rows, which would calculate out to 13585 cells.
Cheers

Hello James,
The problem is in the complexity of objects you use in this. The message comes from OLAP acceptance test and actually has nothing to do with the cells of data. Here it is the internal number of selection groups OLAP can handle.
Actually this number appears are a result of simplification of complex Restricted and Calculated KF inheriting each other in definitions. One complex KF represented as a structure members in your query may come to OLAP as 20-30 (or more) selection groups. That means the visible amount of members may be significantly less that the amount OLAP operates with.  There is no way to get this number in design time except use 'query check' function which should return the error when the limit is over.
In this case is necessary to remove one complex KF or replace it by local SEL/FML. In most cases this will help to get the same query definition with cheaper costs for OLAP.
Best regards

Similar Messages

  • Maximum Cells exceeded Error

    Hi Guys,
    guide me pls//
    i am getting an error while opening a report..
    like Maximum cells exceeded error...
    how i can i over come this??

    Hi Srini,
    thanks for ur reply..
    I am using pivot table view to display the report.
    and i checked my instanceconfig.xml file.. in that i didnt find <Maxcells> tag in pivot table view section/
    can i add that <Maxcells> tag in that section now?

  • Can we see value of CKF in exception cell in query designer-please reply

    Hello all,
    I am defining a query in query designer in which i am using the exception cells, I am having two structures in this query. Now at the intersection of these two structure on one particular line I am trying to define the properties of that cell. I selected new selection and after that I added the calculated key figure that I had created. So should that cell show me the value of the calculated key figure (that is what I thought, that if I can put my CKF in that cell it will show me the value for that CKF). I am seeing different results.
    Is there any way you can actually show the value of calculated key figure in that particular cell.
    Thanks in advance,
    Raj

    Hi Raj,
    You can add Calculated key figure,RKF and even single key figures .The cells are independent of each other and that should not be an issue.
    Whatever the key figure is in the cell it should show that value.
    Just check again whether you have put any key figure into the selections of the structures
    There should be no key fgures into selctions.
    Hope it helps
    Thanks

  • Maximum length of query string for functions return a SELECT

    Hi all,
    I have a report that gets it's SELECT statement from a function, instead of being coded into the region. All was well but I suspect now I'm blowing some kind of limit as I'm getting an error :
         ORA-06502: PL/SQL: numeric or value error
         Error      ERR-1101 Unable to process function body returning query.
    However if I run the procedure out of ApEx and grab the SELECT statement then it works fine. The length of the query is 8636 bytes (yup, it's a beauty!).
    Does anyone know if there is a hard limit to the size of the string that can be returned?
    I'm using ApEx 3.1.
    Thanks,
    Steve H

    I do have a similar painfull scenario - Although my query length is very less i.e 618 bytes only.
    I have defined a stored function, which returns an SQL query string, this return SQL string executes fantastic but when I tried to to call this function from a APEX report it gives error. the details are as follows. Please help.......
    The function code:
    CREATE OR REPLACE function PROD."TEST_C_QRY"
    return VARCHAR2
    is
    msql VARCHAR2(32767);
    Begin
    msql:='Select null,statusname,AgeInd, ';
    For m_stat in (select statusname from a02_status)
    loop
    msql:= msql || q'[decode(statusname,']';
    msql:= msql || m_stat.statusname;
    msql:= msql || q'[',count(id),0) ]';
    msql:= msql || m_stat.statusname|| ',';
    end loop;
    msql:=rtrim(msql,',');
    msql:= msql||' from ';
    msql:= msql||'( ';
    msql:= msql||'select a.id, round(sysdate-a.registeredon) TimeSpan,';
    msql:= msql||'case ';
    msql:= msql||q'[when round(sysdate-a.registeredon)<=7 then 'Week' ]';
    msql:= msql||q'[when round(sysdate-a.registeredon)>7 and round(sysdate-a.registeredon)<14 then 'Fortnight' ]';
    msql:= msql||q'[when round(sysdate-a.registeredon)>14 and round(sysdate-a.registeredon)<30 then 'Month' ]';
    msql:= msql||q'[else 'More...'  end ageind,]';
    msql:= msql||'a.status_id,b.statusname ';
    msql:= msql||'from a02_task a,a02_status b ';
    msql:= msql||'where b.id=a.status_id) ';
    msql:= msql||'group by statusname,AgeInd;';
    return msql;
    end TEST_C_QRY;
    The Output SQL comes from this is
    SQL> Select null,statusname,AgeInd, decode(statusname,'Scheduled',count(id),0) Scheduled,decode(statusname,'Executing',count(id),0) Executing,decode(statusname,
    'Completed',count(id),0) Completed from ( select a.id, round(sysdate-a.registeredon) TimeSpan, case when round(sysdate-a.registeredon)<=7 then 'Week' when round
    (sysdate-a.registeredon)>7 and round(sysdate-a.registeredon)<14 then 'Fortnight' when round(sysdate-a.registeredon)>14 and round(sysdate-a.registeredon)<30 then
    'Month' else 'More...' end ageind, a.status_id,b.statusname from a02_task a,a02_status b where b.id=a.status_id) group by statusname,AgeInd;
    The result that comes when I execute the above resultant SQL is as follows.
    N STATUSNAME AGEIND SCHEDULED EXECUTING COMPLETED
    Completed More... 0 0 4
    Completed Week 0 0 1
    Scheduled Week 1 0 0
    Completed Month 0 0 3
    Executing More... 0 1 0
    Executing Month 0 6 0
    Scheduled More... 1 0 0
    7 rows selected.
    But the surprising error that comes from Oracle XE when I use the following code for stacked bar chart
    Code:
    begin
    return TEST_D_QRY;
    end;
    Error thrown by XE report builder is as follows:
    1 error has occurred
    Failed to parse SQL query!
    Select null,statusname,AgeInd, decode(statusname,'Scheduled',count(id),0) Scheduled,decode(statusname,'Executing',count(id),0) Executing,decode(statusname,'Completed',count(id),0) Completed from ( select a.id, round(sysdate-a.registeredon) TimeSpan, case when round(sysdate-a.registeredon)<=7 then 'Week' when round(sysdate-a.registeredon)>7 and round(sysdate-a.registeredon)<14 then 'Fortnight' when round(sysdate-a.registeredon)>14 and round(sysdate-a.registeredon)<30 then 'Month' else 'More...' end ageind, a.status_id,b.statusname from a02_task a,a02_status b where b.id=a.status_id) group by statusname,AgeInd;
    Certain queries can only be executed when running your application, if your query appears syntactically correct, you can save your query without validation (see options below query source).
    Regards,
    Soumen

  • Maximum Length of Query String

    Hello all,
    I am getting the (in)famous null pointer exception inside my Webaction. I am appending certain parameters to my Action object in Javascript, so that they are avaialble in my webaction. Here there is no way that a certain value can come null [i am setting the value to true while declaring the var]. The possible problem could be the maximum length of the querystring. I am doubting that the maximum allowed length of Querystring is exceeded and thus I am not getting the last appended parameter upon submitting the form, thus giving me null value.
    Can someone please let me know what is the maximum allowed length of querystring inside a JSP

    The maximum URL length allowed by Internet Explorer is ~2,048
    characters. This includes the host name, directory, page, and all
    parameters.
    may be this is limiting ur parameter........

  • Query designing problem while applying cell properties

    Hello Experts,
    I have a problem while designing query. Problem is as follow:
    I have a calculated field on key figure column. This key figure calculates variance between 2 columns.
    for E.g I have 2 columns Budget and Actual and third column is %Variance which should be          
    1. ((Actual - Budget)/Budget) *100 or
    2. ((Budget -Actual)/Budget)*100, depening on some values on the row i should use any of these 2 formulas but the result should be dispalyed in single column % Variance.
    how can i change the formula in key figures depending on these conditions. I can achieve this by applying cells but i dont want to do so as it is very complex way to desing these queries.
    also let me know applying cells on query affects its performance or not?
    Regards,
    Nirav

    Hi Nitin,
    Your reply may help me.
    But my exact requirement is not that. Requirement is as follow:
    I have created Char. Structure in row which contains few rows as revenue and few rows as expense.
    I created them by creating selections. Now in case of expense the variance should be                (Budget-Actual)/Budget *100.
    In case of revenue variance should be (Actual-Budget)/Budget *100.
    So, here i have to find out revenue & expense char. iresspective of which one is greater.
    Regards,
    Nirav

  • Report and ready for input Query, with similar shadings are confusing

    Some customers mix report and planning queries in their templates.
    usually the shades for PLAN Queries are
    o white - ready vor input
    o blue- display data (e.g. LY, calc KPI)
    In a Query with NO INPUT ready Cells the query has a zebra shading, blue and white, row by row.
    That is confusion for users if they believe every Number on a white background can be changed.
    Is it possible to change the shading for reporting queries to blue only?
    Best Regards,
    Georg

    Hi.
    You can cancel zebra by setting off for ALTERNATE_STYLES in properties if analysis item in WAD, BUT it sets all cells as WHITE and not blue.
    I dont know how it will be usefull, but you may try ...
    Regards.

  • In Query mode, date items does not accepts more than 10 characters..Why?

    Dear All,
    In my form, While querying my date items, it does not accepts more than 10 Characters. Could it be changeable.
    Actually i want to search like greater than specified date( >01/01/2007 ).
    But i can specify like >01/01/07. After tabbing out from that item, it displays like >01/01/200.
    How to overcome this issue.
    Please help.
    Regards,
    Balaji

    You are absoletely correct Francois!
    Previously i have made a mistake that both of my maximum length and query length property to 20. That time it was not worked. Now i changed my maximum length to the old one like 11 and i changed only the query length to 20.
    Now it is working. I understood the concept wrongly.
    Thanks Francois!

  • Query time limit in OBIEE

    Hi experts,
    When any report/query run above 10 minutes it terminate automatically.
    But I need to run some reports/query in OBIEE more then 10 minutes.(This only for some reports.)
    Any sugg.
    Thanks.

    Hi User,
    Follow below steps..
    To limit queries by maximum run time or to time periods for a user or group
    1. From the Administration Tool menu bar, choose Manage > Security.
    2. In the Security Manager dialog box, in the tree pane, select Users or Groups.
    3. In the right pane, right-click the name that you want to change and select Properties.
    4. In the User or Group dialog box, click the Permissions tab.
    5. In the User/Group Permissions dialog box, click the Query Limits tab and expand the dialog box to see all columns.
    6. To specify the maximum time a query can run on a database, in the Query Limits tab, perform the following steps:
    1. In the Max Time column, select the number of minutes.
    2. From the Status Max Time drop-down list, select a status using Table 36 as a guide.
    7. To restrict access to a database during particular time periods, in the Restrict column, click the ellipsis button.
    8. In the Restrictions dialog box, perform the following steps:
    1. To select a time period, click the start time and drag to the end time.
    2. To explicitly allow access, click Allow.
    3. To explicitly disallow access, click Disallow.
    9. Click OK twice to return to the Security Manager dialog box.
    Thanks
    Aravind

  • Pivot Query with Top N

    Oracle 10g
    I have formed the following query;
    select cell
         , plot_number
         , max(decode(drnk, '1', tree_height*100)) ht_1
         , max(decode(drnk, '2', tree_height*100)) ht_2
         , max(decode(drnk, '3', tree_height*100)) ht_3
      from (select cell
                 , plot_number
                 , tree_height
                 , drnk
              from (select cell
                         , plot_number
                         , tree_height
                         , dense_rank() over (partition by plot_number order by tree_height desc)drnk
                      from jip_recovery
             where drnk <= 3
               and tree_height is not null
             order by tree_height desc
    group by cell, plot_number
    order by cell, plot_numberThis query is supposed to take data like this and pivot it for the three tallest trees;
    select cell, plot_number, tree_height from jip_recovery where cell = 'C01' and plot_number = 10151;
    CELL PLOT_NUMBER            TREE_HEIGHT           
    C01  10151                  14.01                 
    C01  10151                  21.33                 
    C01  10151                  16.06                 
    C01  10151                  16.88                 
    C01  10151                  18.29                 
    C01  10151                  12.27                 
    6 rows selected When I include a filter for CELL and PLOT NUMBER like this;
    select cell
         , plot_number
         , max(decode(drnk, '1', tree_height*100)) ht_1
         , max(decode(drnk, '2', tree_height*100)) ht_2
         , max(decode(drnk, '3', tree_height*100)) ht_3
      from (select cell
                 , plot_number
                 , tree_height
                 , drnk
              from (select cell
                         , plot_number
                         , tree_height
                         , dense_rank() over (partition by plot_number order by tree_height desc)drnk
                      from jip_recovery
                     where cell in ('C01')
                       and plot_number in (10151)
             where drnk <= 3
               and tree_height is not null
             order by tree_height desc)
    group by cell, plot_number
    order by cell, plot_numberIt returns the correct values in the three columns
    CELL PLOT_NUMBER            HT_1                   HT_2                   HT_3                  
    C01  10151                  2133                   1829                   1688                   But when I remove the filter to run it on the complete dataset some 546000 records it returns nulls for some of the HT_% columns. Of special interest in this example is the record for plot number 10151 and 10153.;
    CELL PLOT_NUMBER            HT_1                   HT_2                   HT_3                  
    C01  8198                   2652                   2105                   2075                  
    C01  8199                   2338                   2107                   2012                  
    C01  10151                                         2133                                         
    C01  10153                                         1993                   1628                  
    C01  10154                  2151                   2135                   1976
    ...Can anyone see what I am doing wrong?
    Ben

    Yes, you missed cell from the partition.

  • To HIDE only Value not the Infobject at Query Execution?

    Hello All
    <b>Case1.</b>I have
    Infobject-----TOTAL
    VALUE1----
    100
    VALUE2----
    100
    VALUE3----
    100
    Now at runtime I want to hide VALUE2 only,but the scenario is VALUE2 infobject should display in report without TOTAL i.e.,only the TOTAL value should'nt display?
    <b>OUTPUT should come like this</b>
    Infobject-----TOTAL
    VALUE1----
    100
    VALUE2----
    VALUE3----
    100
    <b>Case2</b>
    Since the TOTAL of VALUE1,VALUE2,VALUE3 are same in down TOT_VAL should display as 100 only,how to do this?
    Example
    <b>OUTPUT should come like this</b>
    Infobject-----TOTAL
    VALUE1----
    100
    VALUE2----
    VALUE3----
    100
    TOT_VAL----
    100
    Pl let me know in this regard
    Many Thanks
    balaji

    Hi balaji,
    u can achieve CASE1 be defining cells.for this u should have two structures.
    1.create a structure in rows with VALUE1,2 and VALUE3.
    2.create one more structure with u r keyfigures and total.
    3.now go to 'define cells' in Query designer.
    4.double click at the intersection point of TOTAL and VALUE2.u will se like 'TOTAL/VALUE2' in that cell.bow rght click on that cell>properties...here set hide property as "always hide"...-->ok...now save u r Query...
    execute the query and u will see blank for VALUE2 in TOTAL Column.
    hope its clear.
    regards

  • Value input for screen and to apply it to formula in Query Designer

    Hi Gurus !
    How could i input an value for screen in BEx and soon to apply it to formulas resident in cells in Query Designer, the result must be appear for each cell in the report.
    Thank You for your helps.

    create a variable with Manual/user input option.
    use its value to populate the calculated field.

  • Jump to Query

    Hi
    There are two queries:
    Query 1
    Query 2
    The requirement is like this:
    If one clicks on any cell in Query 1, Query 2 will be displayed.
    How to work out this. Please suggest.
    Regards

    Hi,
    You can use Report To Report Interface(RRI) for this. But using RRI you can go to the next query by rightclick->query name only.If you want to to goto the query on a left double-click, in the toolbox, select the option 'goto'. you will have an option ' Repeat jump on double click'. check that option and also check your second query name above that option.Now when you double click on any cell , the next query will be displayed. Save these settings in the query as a workbook / global view.
    Regards,
    Krishna.

  • Embedded query not saved after change

    Microsoft Office Professional Plus 2010 
    Excel macro spreadsheet  ie .xlsm 
    Embedded query is in a sheet. 
    MsgBox (QuerySheet.QueryTables(1).Connection) returns the following ( albeit i've hidden some info) 
    URL;http://database.company.com/r=si01,si02,si03
    I right click in cell, edit query, query window comes up. I change si01 to be si33.  Query occurs, I select data block I want, data is refreshed on tab. Everything is good :-) 
    Recheck querytable..  
    MsgBox (QuerySheet.QueryTables(1).Connection) returns the following now
    URL;http://database.company.com/r=si33,si02,si03
    Save the file, doesn't matter if save or save as. 
    Reopening this file, my embedded query has REVERTED to the original, showing si01 rather than si33. 
    Any suggestions on how to resolve? Thanks!

    Hi Kneelh,
    Base on my test in office Professional Plus 2010, it works fine, I can’t reproduce that issue.
    Please share the sample file that could reproduce that issue on the OneDrive, we will check it.
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to remove Cross Marks in the Report Column.of Cell..!!

    Hi Experts,
    I am facing an issue. I have included a Formula in the Cell  at Query Level.
    When i run the report in the Bex Analyzer.
    for that Formula column in the report there is some Cross Marks with Red Colour is displaying.
    But the Formula is added in the Cell area at Query designer level.
    Here user requirement is if there is no values calculated in the Formula column there should be no values has to be displayed.
    But unfortunately, here i am getting Cross Marks or Mulitply Symbol is displaying.
    My Question is Pls advice, How to remove those Red Cross Marks in the report of that Column.
    Thanks,
    SN.

    Hi,
    Whenever there is no value, by default, and SAP standard, it shows X mark.
    At reporting level you cannot do changes, as this change has to be done at global level. Hence make sure that if this has to be changes this will affect other reports too.
    If you still feel that X mark has to be displayed as blank, then you can do this in SPRO settings.
    SPRO->Display IMG->SAP Netweaver->Business Intelligence->Settings for Reporting and Analysis->and execute Presenting the numeric value in the Bex.
    Change the value:
    Does not exist : Remove X.
    Hope this solves your issue.
    Regards
    Jeeth

Maybe you are looking for