Simple Count using Analytic view and Odata

Hi Experts,
I have an analytic view based on one table and Odata services on top of it.
Now i want to include three measures just simple count with group by,
just for this i ddint want to go for calc view. Please help me how to achieve this using analytic view and Odata script.
Thanks,
Devi.

Hello George,
I don't have any personalization set on the info space. Also I am using mapped Account in BI to connect to HANA. The confusing part is that it is able to validate the infospace with the input parameters and index it. However query does not return any results. I even tried running the same query which explorer sends to HANA in the SQL editor and there too the same results,the query does not return anything. The model does return data when I do a data preview and if accessed from other tools like AAO.
Also when I use SSO connection to HANA, indexing of the infospace fails. Where can I see the error log?
Thanks,

Similar Messages

  • My keyboard on macbook pro (laptop) is acting weird. One key is not responding at all. Have verified using Keyboard viewer and some other keys are printing the unresponsive character at random.

    my keyboard on macbook pro (laptop) is acting weird. One key is not responding at all. Have verified using Keyboard viewer and some other keys are printing the unresponsive character at random. "z" is the unresponsive character.
    Is it a damaged keyboard ?
    The laptop is just 2 months old, will Apple replace it with a new one if its indeed a damaged keyboard or just repair, I use it for official purposes so being without a laptop is not much of an option.

    No one here works for Apple, so we don't know what Apple might or might not do.  If it's a genuine defect, they will of course repair it under warranty.  It is not their responsibility if it effects your ability to work or not, so that's on you.
    If, however, they determine that the key is problematic as a result of your misuse of the laptop, then everything is on you.  And trust me, if they find a glob of dried up beer or coffee there, they will charge you.
    Your only choice is to take it in for repair.

  • How to change the parameter 'Default Servers To Use For Viewing And Modification' using java api dynamically.

    Hi,
    I need to change the Crystal Reports setting 'Default Servers To Use For Viewing And Modification' to a particular server.this i need to do using java api.
    could you pls provide me the sample code for this.
    Regards
    Srinivas

    The IReport interface extends IViewingServerGroupInfo interface, that allows you to specify the server group. 
    The choice selection for that interface is as follows:  0 = first available, 1 = prefer the selected server group, and 2 =  only use the selected server group.
    The server group selection is by the SI_ID for that server group InfoObject.
    Sincerely,
    Ted Ueda - Developer Support

  • Performance issues when using Smart View and Excel 2010

    Hello, we are experiencing very slow retrieval times when using Smart View and Excel 2010. Currently on v.11.1.3.00 and moved over from Excel 2003 in the last quarter. The same spreadsheets in 2010 (recreated) are running much slower than they used to in 2003 and I was wondering if anyone else out there has experienced similar problems?
    It looks like there is some background caching going on as when you copy and paste the contents into a new file and retrieve it is better.....initially. The size of the files are generally less than 2mb and there aren't an expecially large number of subcubes requested so I am at a loss to explain or alleviate the issues.
    Any advice / tips on how to optimise the performance would be greatly appreciated.
    Thanks,
    Nick

    Hi Nick,
    Office 2010 (32 bit) only is supported.
    Also check these documents:
    Refresh in Smart View 11.1.2.1 is Slow with MS Office 2010. (Doc ID 1362557.1)
    Smart View Refresh Returns Zeros (Doc ID 758892.1)
    Internet Explorer (IE7, IE8 and IE9) Recommended Settings for Oracle Hyperion Products (Doc ID 820892.1)
    Thank you,
    Charles Babu J
    Edited by: CJX on Nov 15, 2011 12:21 PM

  • Bin fitting with a counter using both analytics and model clause.

    11.2.0.3
    This falls under 'just want to figure out how to do it'. Its not critical for work. I want to try to see if its possible to do this with both analytic function and with a model clause. Just to see if its possible. It has been stumping me.
    I got the idea to look at this from this article about bin fitting. I have been playing with the model clause and I think you would do something with the 'increment' clause, but I dont see a way to reset it to 1 at a certain point.
    http://www.oracle.com/technetwork/issue-archive/2012/12-mar/o22asktom-1518271.html
    The case I want to look at is, bin fitting based on a counter and a partition by. In theory this should be simpler than the example in the link.
    [code]
    create table myrooms (
    room_number number,
    person_id        number);
    create unique index myrooms_ind on myrooms(room_number,person_id);
    [/code]
    Person_id is not unique. So row_number is more appropriate than rank or dense_rank.
    Problem: Partition by room_number, assign up to 50 people to a specific group with in the same room. This seems like it could be handled with a row_number() and a window clause, but that is not supported.
    I need to basically translate the old procedural counter into sql:
    pseudo-code that does not compile that would have a reason to use this logic.
    [code]
    declare
      cursor curGetRoom
         select room_number,person_id
            from my rooms
          order by room_number;
    counter number := 1;
    vCurrentRoom myroom.room_number%type;
    begin
        for i in curGetRoom loop
            if vCurrentRoom is null then
               vCurrentRoom := i.room_number;
            elsif vCurrentRoom = i.room_number then
                  if counter < 51 then counter :=counter+1;
                  else counter := 1;
            else
                 vCurrentRoom := i.room_number;
                counter :=1;
            end if;
    end;
    [/code]
    simple partition query., but I dont see a way to limit this to 50 and then start over. Window functions are not supported with row_number()
    [code]
    select room_number,person_id,row_number() over (partition by room_number order by person_id) rn
    from myrooms
    [/code]

    11.2.0.3
    This falls under 'just want to figure out how to do it'. Its not critical for work. I want to try to see if its possible to do this with both analytic function and with a model clause. Just to see if its possible. It has been stumping me.
    I got the idea to look at this from this article about bin fitting. I have been playing with the model clause and I think you would do something with the 'increment' clause, but I dont see a way to reset it to 1 at a certain point.
    http://www.oracle.com/technetwork/issue-archive/2012/12-mar/o22asktom-1518271.html
    The case I want to look at is, bin fitting based on a counter and a partition by. In theory this should be simpler than the example in the link.
    [code]
    create table myrooms (
    room_number number,
    person_id        number);
    create unique index myrooms_ind on myrooms(room_number,person_id);
    [/code]
    Person_id is not unique. So row_number is more appropriate than rank or dense_rank.
    Problem: Partition by room_number, assign up to 50 people to a specific group with in the same room. This seems like it could be handled with a row_number() and a window clause, but that is not supported.
    I need to basically translate the old procedural counter into sql:
    pseudo-code that does not compile that would have a reason to use this logic.
    [code]
    declare
      cursor curGetRoom
         select room_number,person_id
            from my rooms
          order by room_number;
    counter number := 1;
    vCurrentRoom myroom.room_number%type;
    begin
        for i in curGetRoom loop
            if vCurrentRoom is null then
               vCurrentRoom := i.room_number;
            elsif vCurrentRoom = i.room_number then
                  if counter < 51 then counter :=counter+1;
                  else counter := 1;
            else
                 vCurrentRoom := i.room_number;
                counter :=1;
            end if;
    end;
    [/code]
    simple partition query., but I dont see a way to limit this to 50 and then start over. Window functions are not supported with row_number()
    [code]
    select room_number,person_id,row_number() over (partition by room_number order by person_id) rn
    from myrooms
    [/code]

  • Error when using Analytic view with Input Parameters

    Hi,
    I am trying to create an info space based on my Analytic view which has input parameters. The infospace is validated and indexed without any issue. However when I ran the view, I get an error (50011) as it is unable to fetch any results. I tried using an infospace based on Calculation view with input parameters and the explorer view works without any issue.
    Has anyone faced similar issues?
    We are using HANA SP 6 rev 67 and BI 4.0 SP 4.
    Also is there a way to enable input prompts for the users when they refresh the BO Explorer view? If not currently available is there any work around ?
    Thanks

    Hello George,
    I don't have any personalization set on the info space. Also I am using mapped Account in BI to connect to HANA. The confusing part is that it is able to validate the infospace with the input parameters and index it. However query does not return any results. I even tried running the same query which explorer sends to HANA in the SQL editor and there too the same results,the query does not return anything. The model does return data when I do a data preview and if accessed from other tools like AAO.
    Also when I use SSO connection to HANA, indexing of the infospace fails. Where can I see the error log?
    Thanks,

  • Error while using Analytic view with BO explorer

    Hi,
    I am trying to create an info space based on my Analytic view which has input parameters. The infospace is validated and indexed without any issue. However when I ran the view, I get an error (50011) as it is unable to fetch any results. I tried using an infospace based on Calculation view with input parameters and the explorer view works without any issue.
    Has anyone faced similar issues?
    We are using HANA SP 6 rev 67 and BI 4.0 SP 4.
    Also is there a way to enable input prompts for the users when they refresh the BO Explorer view? If not currently available is there any work around ?
    Thanks

    Hello George,
    I don't have any personalization set on the info space. Also I am using mapped Account in BI to connect to HANA. The confusing part is that it is able to validate the infospace with the input parameters and index it. However query does not return any results. I even tried running the same query which explorer sends to HANA in the SQL editor and there too the same results,the query does not return anything. The model does return data when I do a data preview and if accessed from other tools like AAO.
    Also when I use SSO connection to HANA, indexing of the infospace fails. Where can I see the error log?
    Thanks,

  • Error in Decision Table using Analytic View

    Dear experts,
    I am trying to create a Decision table on an Analytic view. As per the HANA document guidelines, the Analytic view has one Calc. Attribute, the Action is created from a Parameter and Conditions are created from Analytic View column.
    But no luck while activationg the Decision Table and facing below errors. Has anybody gone through such scenario. Please suggest if I am missing something.
    Message :
    XML Parser error: ; Decision Table XML Parser Error: attribute 'ce-id-refs' of element 'av' is missing
    XML Parser error: ; Decision Table XML Parser Error: actionVal is NULL
    XML Parser error: ; Decision Table XML Parser Error: actionNode is NULL
    HANA Version is 1.0 SPS8 Rev80
    Thanks in advance,
    ~Papil

    Hi,
    I have resolved this issue by performing following steps.
    1. Exported Decision Table Data into XL.
    2. Removed the action variable.
    3. Added again the same parameters as Action
    4. Imported XL file of Decision table.
    5. Validated and Activated. It worked.
    regards,
    Shweta

  • Linking two DCs using interface views and return the value

    Hi,
    I have two webdynpro DCs. DC1 & DC2, each contains one view.
    Point 1:  From the DC1-->DC1View1 ,when I click a button , It should call  DC2(This is happening).
    Point2: When the DC2 is executed it should return to DC1-->DC1View1, value from DC2 need to be passed to DC1 also.
    How to acheive  point2. How anyone help on this .
    Regards,
    Muhammed Nishad J.

    Hi,
    You would have created a inbound and outbound plug between DC1-->DC1View1 and DC2 ->View.
    Now you will have to create the same for DC2 ->View and DC1-->DC1View1
    1) create an inbound plug on DC1-->DC1View1 and outbound plug on DC2->view.
    2) Now create a link as you would have in the first case.
    3) create a parameter in DC2->view for outbound plug, and also the same in inbound plug of the DC1->view
    4) Now in the method that was created for the outbound(public void onPlug<name of plug> )pass the value into the parameter created
    5) in the inbound method(public void onPlug<name of inbound> get the value of the parameter in a variable.
    I hope this solves your problem.
    Thanks and Regards,
    Narayani

  • Simple clock using a frame and threads

    I'm having alot of difficulty getting this program to work correctly. There are actually 2 issues here. The first one is that when I am using a lable, showTime, on the frame it is only updated once though the thread has a while(true) statement. The second issue is that using the drawString method NOTHING is diaplayed. While I know that there are many other solutions to this problem, I would like to know what I'm doing wrong with this code. It's just to simple to not work. Any help would be greatly appreciated. Here's the code.
    Doug
    import java.awt.*;
    import java.util.*;
    import java.awt.event.*;
    class Clock extends Frame implements Runnable
         Calendar c;
         private Thread time = null;
         int hours=0;
         int minutes=0;
         int seconds=0;
         Label showTime=new Label("00:00:00");
         public Clock()
              c = Calendar.getInstance();
              add(showTime);
              addWindowListener(new CloseListener());
              time = new Thread(this);
              time.start();
         class CloseListener extends WindowAdapter{
              public void windowClosing(WindowEvent e){
                   System.exit(0);
         public void run(){
    while(true){     
                   hours = c.get(Calendar.HOUR);
                   minutes = c.get(Calendar.MINUTE);
                   seconds = c.get(Calendar.SECOND);
                   repaint();
                   try{
                        Thread.sleep(1000);
                   } catch(InterruptedException e){
                   return; }
    public static void main(String args[])
              Clock clockDisplay = new Clock();
              clockDisplay.setSize(400, 400);
              clockDisplay.setTitle("Clock");
              clockDisplay.setVisible(true);
    private String format(int input){
              if (input <10)
                   return ("0"+input);
              else
                   return(""+input);
         public void paint(Graphics g){
              showTime.setText(format(hours)+":"+format(minutes)+":"+format(seconds));
              g.drawString(format(hours)+":"+format(minutes)+":"+format(seconds),40,40);

    Hi,
    Your Calendar is not updated after each interval. When you add
    c.setTime(new Date());
    in your "run" method, after the line
    while(true){
    then it should work.
    Hope this helps,
    Kurt.

  • What program can I use to view and edit documents

    What program will edit and save me documents something like MS Office

    On what device?  (You profile says iPad.)
    If you're on a mac, there is Office, there is LibreOffice, there is NeoOffice, there is Pages. These you have to go get. Office and Pages cost money.  There is also TextEdit (included on the Mac).

  • Query using Materalized view in oracle 9i and 10g

    Hello
    There are snapshots (materialized view) used in my application. We have recently migrated from 9i to 10g release 2 database.
    After migration i have observed explain plan of query which is using materialized view and i found in 9i oracle treating materalized view as table. In 10g oracle is considerting it as MVIEW only (MAT_VIEW ACCESS BY INDEX ROWID). However in 10g cost of query which is using materialized view is much higher than 9i. And execution time is also random.
    Can anbody pls. expalin diff. of materalized view access in oracle 9i and 10g.
    Thanks

    can you post your query with explain plan for both 9i version and 10g version.
    Thanks,
    karthick.

  • Add a simple switch to PDF Reader to change between MY-VIEW and ORIGINAL-VIEW

    I would like to open pdf file with my same default viewing preference *every single time* that I open a PDF file, regardless of what the original document creator set as the default view.  It would be nice to have a SIMPLE switch between MY-VIEW and ORIGINAL-VIEW.  It's very frustrating to have to keep switching my view preferences every time I open a new file with a different default.

    Thank you Bernd, but that is only part of the solution.  For example, I do set the Page Layout to 1-page-continuous.  MOST of the time it keeps this setting, but some documents either override that setting, or perhaps it reverts back to a default (maybe with version upgrades?).  The other part is that I always want the menu-bar and toolbar to show up.  Some documents hide these when they open.  I realize that I can hit [F8] and/or [F9] to toggle these, but there are additional settings.  I also want to always have the selection tools available, etc.  Bottom Line: I just want a collection of settings that I can call up with a single, simple shortcut or button, so I don't have to perform multiple steps just to get the tool back to my standard configuration whenever something changes it.

  • Filter (variable) applied at analytical view is not reflected in Caculation view.

    Hello All,
    I am new to hana and would like to discuss one issue here.
    Model is something like this:
    Calculation  view  ---- >   has one Analytical View  --->  has one attribute view and a fact table.
    Now, in analytical view I have applied a filter using a variable on dimension attribute ( column of attribute view). When I do data preview on  analytical view I get a prompt (asking single value to put in - mandatory). However when I do a data preview for calculation view (which involves analytical view created earlier) ...I don't get a prompt this time.
    Calculation view is a 2 level only [ semantic --> projection/aggregation(analytical view) ].
    Please assist with it.
    Thanks
    Sumit

    Thanks for your reply Ravi.
    It seems like this approach is applicable for "Input Parameters" only and not for "Variable" ?
    I created a variable & an Input parameter in Analytical view, and created same variable & input parameter in calculation view...and then clicked on "Input parameter managed mapping" button under section "Variables/Input parameters" of semantics. I could see only Input parameters listed on both sides not the variables.
    1. I am curious now to understand ...when it is recommended that the data needs to be filtered out at the lowest level...however we still need to define parameters at calculation level ?
    2. The prompt based filters applied at analytical view is getting reflected in calculation view when it(calculation view) is refreshed for data preview ?
    3. Is it possible to expose analytical or attribute view directly into the business objects universe ?
    Yours, and other member's reply on it will be appreciated.
    Thanks
    Sumit

  • Data Modeling for controls using XML views(SAPUI5)

    Hello ,
    I am trying to create Table control using XML view and binding data to it through controller onInit method.
    XML View Code is as follows :
    <core:View xmlns="sap.m" xmlns:l="sap.ui.layout" xmlns:core="sap.ui.core">
        <l:VerticalLayout width="100%">
            <l:content>
                <Text id="description" class="marginAll" />
                <Table id="idProductsTable" items="{       
                    path:'/businessData'
                }">
                    <headerToolbar>
                        <Toolbar>
                            <Label text="Products"></Label>
                        </Toolbar>
                    </headerToolbar>
                    <columns>
                        <Column>
                            <Label text="Product" />
                        </Column>
                        <Column>
                            <Label text="Supplier" />
                        </Column>
                        <Column>
                            <Label text="Dimensions" />
                        </Column>
                    </columns>
                    <items>
                        <ColumnListItem>
                            <cells>
                                <ObjectIdentifier title="{COUNTRY}" text="{COUNTRY}" />
                            </cells>
                            <Text text="{REGION}"></Text>
                            <Text text="{CITY}"></Text>
                        </ColumnListItem>
                    </items>
                </Table>
            </l:content>
        </l:VerticalLayout>
    </core:View>
    Controller onInit method Code is as follows :
    var oData = {
                businessData : [ {
                    'COUNTRY' : "Canada",
                    'CITY' : "Toronto",
                    'REGION' : "US",
                    'LANGUAGE' : "English"
                    'COUNTRY' : "China",
                    'CITY' : "Bejeing",
                    'REGION' : "Ashia",
                    'LANGUAGE' : "Chinese"
            var demoJSONModel = new sap.ui.model.json.JSONModel();
            demoJSONModel.setData(oData);
            sap.ui.getCore().getElementById("idProductsTable").setModel(
                    demoJSONModel);
    Same thing when i tried with JS views , it worked however through XML view , I am getting empty table.
    Is the data modeling correct for XML views?
    Thanks,
    Mahesh.

    I've got it ! The reason for that is you bind items as below,
         <Table id="idProductsTable" items="{    
                    path:'/businessData'
                }">
    This pattern is followed if you wanna add a formatter/sorter/grouping.
    As you don't do any of those you can bind items as below &  it doesn't require  data-sap-ui-xx-bindingSyntax="complex".
    <Table id="idProductsTable" items="{/businessData}">

Maybe you are looking for

  • Printing Notes

    I was wondering how I can print a daily schedule with the notes. Is this possible? If not, how can I print the notes? I am not sure whether iCal is intended for more than remembering birthdays and appointments, but I want to make some detailed notes

  • Current Month condition for SSAS OLAP universe

    Hi, I am using XI 3.1 SP2 and SSAS 2008 OLAP cubes. My requirement is to create the following 3 conditions/dimensions in my BO universe on the OLAP cube to be used in the scheduled reports. 1. Current Fiscal Qtr 2. Current & Prev Fiscal Qtr 3. Curren

  • Any way to force order of changes applied?

    After more testing on my install program, I'm running into an issue where I get an exception due to a duplicate named report in a CMS folder.  This is because in the InfoObjects collection that I am trying to commit in a batch, I am deleting a prior

  • Adding the date/time stamp to videos already created

    We have someone using Elemets 8 They need to add in the date/time stamp to video's that are already created. The camcorder we have does record this information but doesn't allow that information to be put onto the screen its a Canon HD HF200 We were

  • Problem with Dataservice Control 9.2

    Hi, I am going thru the documentation to setup this control in Workshop 9.2. I get the following error in step 7-26 "Error occured while retrieving Metadata. Either the deployed DS is invalid or the wls90interop.jar is not the 8.x DSP server's classp