Using functions from Combo Box 'Others:'

I am trying to use function DENSE_RANK in OWB 9.0.3.33.0. Unfortunately I can not find properly aropriate object form tool box palette. I tried to use JOIN, FILTER, EXPRESSION. Mostly I get error: PL/SQL: ORA-30483: window functions are not properly here.
I am trying to numerate my records in a set. In SQL I can write clause:
SELECT ID,DATE_VAL, OPERATE,
DENSE_RANK() OVER (PARTITION BY ID ORDER BY ID, DAT_VAL DESC) "MY_LEVEL"
FROM (
SELECT ID, DATE_FROM DATE_VAL, 'U' "OPERATE"
FROM SCH.P1
WHERE DATA_FROM = (SELECT MAX(DATA_FROM)
FROM SCH.P1)
UNION                                        
SELECT ID, DATE_VAL,'I' "OPERATE"
FROM [email protected] )
ORDER BY ID,DATE_VAL DESC
Does anybody can tell me how properly I can to use DENSE_RANK() funcion in OWB and get "MY_LEVEL" pseudo column?
Thank very much for any advice.
Peter.
-Poland-

Thank You for replay.
I looked at documentation and I saw that DENSE_RANK is in the list aggregate functions. I mean You want to tell me that version of DENSE_RANK what I use is wrong but my question is about OWB.
In window "Expression Builder" You can use some of functions. If You add to mapping JOIN object in Expression Builder window You can write join condition. In combo box list called "Others", there is DENSE_RANK in the list. After You select this and paste to window OWB generate code like:
DENSE_RANK() OVER (
[PARTITION BY <value expression1> [, ...]]
ORDER BY <value expression2> [collate clause] ASC
[NULLS FIRST|NULLS LAST] [, ...] )
I am confused.
I still do not know what OWB object I can use to get "My level" pseudo column.
Regards
Peter

Similar Messages

  • While selecting value from combo box in one frame, based on the selection..

    Hi friends,
    can someone help me out on a issue as it follows:-
    iam developing an application where Iam using xsl,html,javascript and xml.
    There is no existense of Database at all. data is read from xml.
    now,
    In a window there are 3 frames. In the 1st frame combo box is there.
    Based on the selection in the combo box data will be displayed in the 2nd frame.
    now onchange or onselect methods not giving the expected result.
    actually,in the the xsl which is having 3 frames,the 1st and 3rd frame
    calling src="abc.xml" and src="abc.xml"which are static.
    but in the 2nd frame the data need to be changed dynamically.
    I have given frame name="frame_ExchangeDetails2" rows="3%" src="cc_marketWatch_02.xml"/>
    usually data dynamically comes from database.but here i have to refer xml file
    something like [window.href.location="abc.xml"]
    but the problem is when you refer supose:-
    <frame name="frame_ExchangeDetails2" rows="3%" src="cc_marketWatch_02.xml"/>
    the frame is having static page,though there are functions in javascript which are called in onload and onchange.which are not working.
    I have tried putting if condition like:-
    if(document.abc.fieldname.value=='6'
    {   window.location.href = "cc_custLookUpData-mobileno.xml";   
    so that it could go to the repective page.
    but it is not working.
    so what should i do if I select from combo box in one frame and based on the selection xml/html page will be displayed in the 2nd frame.
    if anybody has google account i can forward the zip file so it will be easier to understand.
    Regards
    Message was edited by:
    Postqueries
    Message was edited by:
    Postqueries

    If you have rights to modify tabular model then, you can create a measure in your Tabular model which returns previous week and then use this measure in Pivot Table.
    Thanks,
    Sagar K 
    (Blog: http://datamazik.blogspot.in/)

  • ODSI service using function from oracle database

    Hi ,
    I need to create a ODSI service using function from oracle database.
    I am not sure how to create a Physical Layer and Logical Layer using the function fron db.
    Kindly provide a sample . I need It ASAP. Thanks in advance.
    Regards,
    Tara

    Here's what you do.
    Create New Physical Data Service -> Relational -> MyDataSource -> Table -> SomeTable ... finish the wizard.
    So now you have a Physical Data Service that represents a database table.
    Create New Physcial Data Service -> Relational -> MyDataSource (the same one as above) -> Database Function -> Enter UPPER for the Function name, enter MyUpper fro the XQuery Function. Finish the Wizard (use something like MyUpperDs for the ds name).
    Open MyUpperDs. Right-click -> Edit Signature on MyUpper. Change the ReturnType to string, change the Occurrence to Zero or One.
    Add a parameter, change the Type to string, change the Occurrence to Zero or One.
    Save.
    Now, open the first ds you made SomeTable.ds (whatever). Run it in the test view.
    Go to the Overview tab. Create New Operation. Give it the name SOMETABLE_UPPER. Save it.
    Go to the Query Map tab, open SOMETABLE_UPPER. Drag and drop SOMETABLE (the system-generated function into the mapper. It will show a dotted line from SOMETABLE to the Return. Now drag-and-drop the SOMETABLE to the top-level element of the return type, it will show solid lines from each element in SOMETABLE to each element in the return type.
    Now, drag-and-drop MyUpperDs.MyUpper into the Query Mapper. Edit the source, find where it added the line "for $x in myd:MyUpper()" and delete that line.
    Change a line that simply returns a value to use your function, for example, change
    <FIRST_NAME>{fn:data($CUSTOMER/FIRST_NAME)}</FIRST_NAME>
    to
    <FIRST_NAME>{myd:MyUpper(fn:data($CUSTOMER/FIRST_NAME))}</FIRST_NAME>
    Click on the Plan tab and Show Query Plan. You will see that in the query plan, it is using the database UPPER function where you specified MyUpper.
    Go to the Test View and run it.
    I used the RTLCUSTOMER table in cgDataSource
    xquery version "1.0" encoding "UTF-8";
    (::pragma xds <x:xds xmlns:x="urn:annotations.ld.bea.com" targetType="t:CUSTOMER" xmlns:t="ld:physical/CUSTOMER">
    <creationDate>2010-10-14T13:09:54</creationDate>
    <relationalDB name="cgDataSource" providerId="Pointbase"/>
    <field xpath="CUSTOMER_ID" type="xs:string">
    <extension nativeXpath="CUSTOMER_ID" nativeTypeCode="12" nativeType="VARCHAR" nativeSize="32" nativeFractionalDigits="0" nativeKey="true"/>
    <properties nullable="false"/>
    </field>
    <field xpath="FIRST_NAME" type="xs:string">
    <extension nativeXpath="FIRST_NAME" nativeTypeCode="12" nativeType="VARCHAR" nativeSize="64" nativeFractionalDigits="0"/>
    <properties nullable="false"/>
    </field>
    <field xpath="LAST_NAME" type="xs:string">
    <extension nativeXpath="LAST_NAME" nativeTypeCode="12" nativeType="VARCHAR" nativeSize="64" nativeFractionalDigits="0"/>
    <properties nullable="false"/>
    </field>
    <field xpath="CUSTOMER_SINCE" type="xs:date">
    <extension nativeXpath="CUSTOMER_SINCE" nativeTypeCode="91" nativeType="DATE" nativeSize="10" nativeFractionalDigits="0"/>
    <properties nullable="false"/>
    </field>
    <field xpath="EMAIL_ADDRESS" type="xs:string">
    <extension nativeXpath="EMAIL_ADDRESS" nativeTypeCode="12" nativeType="VARCHAR" nativeSize="32" nativeFractionalDigits="0"/>
    <properties nullable="false"/>
    </field>
    <field xpath="TELEPHONE_NUMBER" type="xs:string">
    <extension nativeXpath="TELEPHONE_NUMBER" nativeTypeCode="12" nativeType="VARCHAR" nativeSize="32" nativeFractionalDigits="0"/>
    <properties nullable="false"/>
    </field>
    <field xpath="SSN" type="xs:string">
    <extension nativeXpath="SSN" nativeTypeCode="12" nativeType="VARCHAR" nativeSize="16" nativeFractionalDigits="0"/>
    <properties nullable="true"/>
    </field>
    <field xpath="BIRTH_DAY" type="xs:date">
    <extension nativeXpath="BIRTH_DAY" nativeTypeCode="91" nativeType="DATE" nativeSize="10" nativeFractionalDigits="0"/>
    <properties nullable="true"/>
    </field>
    <field xpath="DEFAULT_SHIP_METHOD" type="xs:string">
    <extension nativeXpath="DEFAULT_SHIP_METHOD" nativeTypeCode="12" nativeType="VARCHAR" nativeSize="16" nativeFractionalDigits="0"/>
    <properties nullable="true"/>
    </field>
    <field xpath="EMAIL_NOTIFICATION" type="xs:short">
    <extension nativeXpath="EMAIL_NOTIFICATION" nativeTypeCode="5" nativeType="SMALLINT" nativeSize="5" nativeFractionalDigits="0"/>
    <properties nullable="true"/>
    </field>
    <field xpath="NEWS_LETTTER" type="xs:short">
    <extension nativeXpath="NEWS_LETTTER" nativeTypeCode="5" nativeType="SMALLINT" nativeSize="5" nativeFractionalDigits="0"/>
    <properties nullable="true"/>
    </field>
    <field xpath="ONLINE_STATEMENT" type="xs:short">
    <extension nativeXpath="ONLINE_STATEMENT" nativeTypeCode="5" nativeType="SMALLINT" nativeSize="5" nativeFractionalDigits="0"/>
    <properties nullable="true"/>
    </field>
    <field xpath="LOGIN_ID" type="xs:string">
    <extension nativeXpath="LOGIN_ID" nativeTypeCode="12" nativeType="VARCHAR" nativeSize="50" nativeFractionalDigits="0"/>
    <properties nullable="true"/>
    </field>
    <key name="CUSTOMER_0_SYSTEMNAMEDCONSTRAINT__PRIMARYKEY" type="cus:CUSTOMER_KEY" inferredSchema="true" xmlns:cus="ld:physical/CUSTOMER"/>
    </x:xds>::)
    declare namespace myd= "ld:physical/MyDs";
    declare namespace f1 = "ld:physical/CUSTOMER";
    import schema namespace t1 = "ld:physical/CUSTOMER" at "ld:physical/schemas/CUSTOMER.xsd";
    import schema "ld:physical/CUSTOMER" at "ld:physical/schemas/CUSTOMER_KEY.xsd";
    (::pragma function <f:function xmlns:f="urn:annotations.ld.bea.com" visibility="public" kind="read" isPrimary="false" nativeName="CUSTOMER" nativeLevel2Container="RTLCUSTOMER" style="table">
    <nonCacheable/> </f:function>::)
    declare function f1:CUSTOMER() as schema-element(t1:CUSTOMER)* external;
    (::pragma function <f:function xmlns:f="urn:annotations.ld.bea.com" visibility="public" kind="create" isPrimary="true" nativeName="CUSTOMER" nativeLevel2Container="RTLCUSTOMER" style="table">
    <nonCacheable/> </f:function>::)
    declare procedure f1:createCUSTOMER($p as element(t1:CUSTOMER)*)as schema-element(t1:CUSTOMER_KEY)* external;
    (::pragma function <f:function xmlns:f="urn:annotations.ld.bea.com" visibility="public" kind="update" isPrimary="true" nativeName="CUSTOMER" nativeLevel2Container="RTLCUSTOMER" style="table">
    <nonCacheable/> </f:function>::)
    declare procedure f1:updateCUSTOMER($p as changed-element(t1:CUSTOMER)*) as empty() external;
    (::pragma function <f:function xmlns:f="urn:annotations.ld.bea.com" visibility="public" kind="delete" isPrimary="true" nativeName="CUSTOMER" nativeLevel2Container="RTLCUSTOMER" style="table">
    <nonCacheable/> </f:function>::)
    declare procedure f1:deleteCUSTOMER($p as element(t1:CUSTOMER)*) as empty() external;
    (::pragma function <f:function kind="read" visibility="public" isPrimary="false" xmlns:f="urn:annotations.ld.bea.com"/>::)
    declare function f1:CUSTOMER_UPPER() as element(f1:CUSTOMER)*{
    for $CUSTOMER in f1:CUSTOMER()
    return
    <t1:CUSTOMER>
    <CUSTOMER_ID>{fn:data($CUSTOMER/CUSTOMER_ID)}</CUSTOMER_ID>
    <FIRST_NAME>{myd:MyUpper(fn:data($CUSTOMER/FIRST_NAME))}</FIRST_NAME>
    <LAST_NAME>{fn:data($CUSTOMER/LAST_NAME)}</LAST_NAME>
    <CUSTOMER_SINCE>{fn:data($CUSTOMER/CUSTOMER_SINCE)}</CUSTOMER_SINCE>
    <EMAIL_ADDRESS>{fn:data($CUSTOMER/EMAIL_ADDRESS)}</EMAIL_ADDRESS>
    <TELEPHONE_NUMBER>{fn:data($CUSTOMER/TELEPHONE_NUMBER)}</TELEPHONE_NUMBER>
    <SSN?>{fn:data($CUSTOMER/SSN)}</SSN>
    <BIRTH_DAY?>{fn:data($CUSTOMER/BIRTH_DAY)}</BIRTH_DAY>
    <DEFAULT_SHIP_METHOD?>{fn:data($CUSTOMER/DEFAULT_SHIP_METHOD)}</DEFAULT_SHIP_METHOD>
    <EMAIL_NOTIFICATION?>{fn:data($CUSTOMER/EMAIL_NOTIFICATION)}</EMAIL_NOTIFICATION>
    <NEWS_LETTTER?>{fn:data($CUSTOMER/NEWS_LETTTER)}</NEWS_LETTTER>
    <ONLINE_STATEMENT?>{fn:data($CUSTOMER/ONLINE_STATEMENT)}</ONLINE_STATEMENT>
    <LOGIN_ID?>{fn:data($CUSTOMER/LOGIN_ID)}</LOGIN_ID>
    </t1:CUSTOMER>
    xquery version "1.0" encoding "UTF-8";
    (::pragma xfl <x:xfl xmlns:x="urn:annotations.ld.bea.com">
    <creationDate>2010-10-14T13:10:45</creationDate>
    <customNativeFunctions>
    <relational>
    <dataSource>cgDataSource</dataSource>
    </relational>
    </customNativeFunctions>
    </x:xfl>::)
    declare namespace f1 = "ld:physical/MyDs";
    (::pragma function <f:function visibility="protected" kind="library" isPrimary="false" nativeName="UPPER" xmlns:f="urn:annotations.ld.bea.com">
    <nonCacheable/>
    </f:function>::)
    declare function f1:MyUpper($arg0 as xs:string?) as xs:string? external;
    <cus:CUSTOMER xmlns:cus="ld:physical/CUSTOMER">
    <CUSTOMER_ID>CUSTOMER1</CUSTOMER_ID>
    <FIRST_NAME>JACK</FIRST_NAME>
    <LAST_NAME>Black</LAST_NAME>
    <CUSTOMER_SINCE>2001-10-01</CUSTOMER_SINCE>
    <EMAIL_ADDRESS>[email protected]</EMAIL_ADDRESS>
    <TELEPHONE_NUMBER>2145134119</TELEPHONE_NUMBER>
    <SSN>295-13-4119</SSN>
    <BIRTH_DAY>1970-01-01</BIRTH_DAY>
    <DEFAULT_SHIP_METHOD>AIR</DEFAULT_SHIP_METHOD>
    <EMAIL_NOTIFICATION>1</EMAIL_NOTIFICATION>
    <NEWS_LETTTER>0</NEWS_LETTTER>
    <ONLINE_STATEMENT>1</ONLINE_STATEMENT>
    </cus:CUSTOMER>
    .

  • Use function from external Javascript file

    Hi All,
    Is it possible to use function from other javascript file. If possible then please post some example.
    Shonky

    As Harbs mentioned, you can use doScript().
    Maybe you can do something like this:
    First I created simple function in separate file and exported it JSXBIN
    function myAlert(myString){
        alert(myString);
    Then, I copied contents of that JSXBIN and put it into variable
    var securedFUNCTION = app.doScript("@JSXBIN@ES@[email protected]AffABC40BhAB0AzHjNjZiBjMjFjSjUDAC0EzAEByB");
    or
    var securedFUNC = eval("@JSXBIN@ES@[email protected]AffABC40BhAB0AzHjNjZiBjMjFjSjUDAC0EzAEByB");
    And simply called function
    myAlert('My test String');
    Also, you can use include external script with #include to call JSXBIN, but you need to wrap contents of JSXBIN file into doScript or eval().
    tomaxxi
    http://indisnip.wordpress.com/

  • Is there a way to make a video call from my iPhone 4 to a non apple phone? Also is it possible to transfer pics using bluetooth from iPhone to other company mobiles? Its a great phone but sometimes I feel struck inside it.

    Is there a way to make a video call from my iPhone 4 to a non apple phone? Also is it possible to transfer pics using bluetooth from iPhone to other company mobiles? Its a great phone but sometimes I feel struck inside it.

    You'd need an app like Skype to video call with other phones.
    Data transfer is not supported via bluetooth and iphone to iphone is not supported at all.

  • How to display data in a grid after selecting topic from combo box?

    could someone help me out? i'm displaying a combo box (about
    20 items) vertically. when user selects one of these items, i'd
    like for information regarding that choice to be displayed in my
    data grid. thanks - Karl from Kansas

    If you have the following:
    <mx:ComboBox id="combo_box" dataProvider="{users}"
    labelField="user_name" change="show_details(event)"
    ></mx:ComboBox>
    <mx:DataGrid id="data_grid" >
    <mx:columns>
    <mx:DataGridColumn headerText="Name"
    dataField="user_name"/>
    <mx:DataGridColumn headerText="email"
    dataField="email"/>
    </mx:columns>
    </mx:DataGrid>
    private function show_details(evt:Event):void {
    data_grid.dataProvider = evt.currentTarget.selectedItem
    This assumes that your combo box data has a user_name and
    email property value. Substitute your property values where needed.
    Vygo

  • Using wildcards in combo box list

    Is it possible to key in the first letter of a member and retrieve all matches? For example, key in the letter A in the combo box and the drop down list is all of the members starting with the letter A. If so, how?This is for a product dimension that is sorted by sku number. Therefore the aliases are not sorted. Just trying to make it easier to scroll and make a choice.Is another way better? I am trying to use the "AddItem" method.Thanks!

    Hi Cletis,You can query the VB API using the EsbOtlQueryMembers function to get member that start with a specified member.. You will do an ESB_WILDSEARCH query type and will specify the string to search for in the pszString1 field of the ESB_PREDICATE_T argument to the function.Alternatively (or additionally), download the free source code for the EssQuery component that we give away on our website (www.appliedolap.com - technology downloads section). You should be able to use this code directly in your Excel code.. Note you may need to change the essbase api declarations to fit your version of Essbase (a pain I know.. This is the reason we created a entire web-service-based API for our ActiveOLAP product and eliminated the need for the Essbase client).Good Luck.. It was good seeing last week at the Nashville User Group meeting.TimTim TowApplied OLAP, Inc

  • VBA Userforms – Getting errors when item from combo box is not selected

    Hi there
    Thank you in advance for taking the time to check this out.
    Objective:
    I have 2 combo boxes, one is dependent on what has been selected in the first combo box (dynamic named range), they work fine except for an irritating error when the user accidentally clicks in the empty
    Cmbox_IncCategory and it won’t allow the user to go back to the
    cmbx_Category_Type box if the user forgot he had to make a selection from that first before selecting the
    Cmbox_IncCategory.
    The error that pops up is “Invalid property value”.
    I tried having text in there to say “please select from Cmbox_IncCategory first, but that didn’t fix it.
    I tried to ‘If error resume next’ but that didn’t like it either. Now I am stumped.
    Main combo box= cmbx_Category_Type
    2nd combo box (displaying a list dependent on what was selected in Main combo box)= Cmbox_IncCategory
    I know there must be a way to fix it so that if a user clicks on the combo box, but doesn’t make a selection it won’t lock up the form.
    Yes, it is a mandatory field, and I was considering using a message box to advise the user that this must be completed, but I am not sure how to do it (and avoid the errors
    Here’s the current code I have for the combo boxes.
    Me.Cmbox_IncCategory = "" 'Clears the contents of the 2nd combobox when another category is chosen
    On Error Resume Next
    'I can't seem to have the Incident Category combobox to be empty when the form is open _
    I have tried Cmbox_IncCategory.Value = "", but I get an error. I then tried Cmbox_IncCategory.text = "" _
    but also get the error. I don't know how else to get it to work .. I tried both codes in the _
    form_initialize, but get an error ... I'm stumped !
    Select Case Me.cmbx_Category_Type
    Case "Crime"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_CRIME"
    Case "Property Damage - Minor - NS"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_PROPRTY_NS"
    Case "Property Damage - Significant - S"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_Proprty_S"
    Case "Safety"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_SAFETY"
    Case "Security Breach"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_BREACH_S"
    Case "Support"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_SUPPORT"
    Case "Vehicle"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_VEHICLE_S"
    End Select
    End Sub
    I’d be really grateful if someone could help me out, or perhaps direct me to where I might find some coding that will achieve the result I am seeking.
    This links to
    My Sample form
    With much gratitude,
    TheShyButterfly
    Hope you have a terrific day, theShyButterfly

    Hi Peter,
    Thank you for your quick response :) Brave man! :)
    Both combo boxes are blank to start with (because nothing has been selected). If I click on the first combo box (cmbx_Category_Type) which lists the main events/category types, but I don't select any thing, and I click in the secondary box
    (Cmbox_IncCategory) and then click on any other control, I get an “Invalid property value” error. When I click OK on the error (a few times) and I return to the code window, it gives no indication where/what is breaking
    the code/causing the error. I have no choice but to exit the form by stopping in the code window.
    If I click on the first textbox, (cmbx_Category_Type), and then do the right thing and make a selection, then I have no problems with the secondary textbox (Cmbox_IncCategory).
    As I am not that up on VBA I am trying to follow your instructions... I have changed the code as follows, removed and replaced the rowsource name, but I encounter the very same problem.
    When I changed my code from Me.Cmbox_IncCategory="" to yours myCombo.ListIndex = -1  (changing the combo box name to reflect my combo box name) and adding the second line of code ...
    Me.Cmbox_IncCategory.ListIndex = 0 I still got the same behaviour and error.
    I even tried moving each row of the named rows down one row (so that there would be a 'blank' row which could be selected to get out of trouble, but it wasn't very successful either.
    Have you opened my form to see what happens, I included the link so whoever was looking at my problem (and yes, I have many I know), could see for themselves what it is doing/not doing.
    The code now reads as below (is this what you meant?) - the results were as I mentioned above.
    Me.Cmbox_IncCategory.ListIndex = -1 'Clears the contents of the 2nd combobox when another category is chosen
    Me.Cmbox_IncCategory.ListIndex = 0
    ' On Error Resume Next
    'I can't seem to have the Incident Category combobox to be empty when the form is open _
    I have tried Cmbox_IncCategory.Value = "", but I get an error. I then tried Cmbox_IncCategory.text = "" _
    but also get the error. I don't know how else to get it to work .. I tried both codes in the _
    form_initialize, but get an error ... I'm stumped !
    Select Case Me.cmbx_Category_Type
    Case "Crime"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_CRIME"
    Case "Property Damage - Minor - NS"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_PROPRTY_NS"
    Case "Property Damage - Significant - S"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_Proprty_S"
    Case "Safety"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_SAFETY"
    Case "Security Breach"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_BREACH_S"
    Case "Support"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_SUPPORT"
    Case "Vehicle"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_VEHICLE_S"
    End Select
    End Sub
    I appreciate your patience :) I am growing in knowledge, but its a slow process. Please let me know if there is anything else I can help clarify for you :)
    This links to
    My Sample form
    Thanking you again
    TheShyButterfly
    Hope you have a terrific day, theShyButterfly

  • How to Use a single combo box to generate two graphs

    Hi All,
    I have my data as below
    Company      Group           Week            Qty
    CP01     16     40/2010     200
    CP01     16     41/2010     210
    CP01     16     42/2010     220
    CP01     16     43/2010     230
    CP01     16     44/2010     240
    CP01     16     45/2010     250
    CP01     16     46/2010     140
    CP01     8     40/2010     300
    CP01     8     41/2010     310
    CP01     8     42/2010     320
    CP01     8     43/2010     330
    CP01     8     44/2010     340
    CP01     8     45/2010     350
    CP01     8     46/2010     140
    CH13     16     40/2010     100
    CH13     16     41/2010     210
    CH13     16     42/2010     220
    CH13     16     43/2010     230
    CH13     16     44/2010     240
    CH13     16     45/2010     250
    CH13     16     46/2010     260
    CH13     8     40/2010     100
    CH13     8     41/2010     310
    CH13     8     42/2010     320
    CH13     8     43/2010     330
    CH13     8     44/2010     340
    CH13     8     45/2010     350
    CH13     8     46/2010     360
    I have to display the company level qty for each week against the Group data. I have a combo box for the company and on selection my destination will have all rows with that company, and on the destination rows as a source for the second combo box to choose a smaller set of data for the group and I draw a line graph.
    But the user wants a baseline Graph, for example If they choose CP01, all the groups 16 & 8 qty will be summed up by the company. So I will have CP01 for 40/2010 I will have 500 Qty (300+200) so the base column graph will be 500 and depending on the Group selection it will be either 300 or 200.
    I am able to the Group within the Company, but unable to do the company baseline. I think it should be done within excel using it's functions, any idea would help.
    Thanks,
    Arthur.

    Hi Alex,
    I have some work around for your issue with excel fucntion please go through the folowing logic and let me know if u hv any issues.
    (ComGrpWeek)
    Concatenate     Company      Group      Week     Qty
    =G8&H8&I8     CP01      16     40/2010      200
    =G9&H9&I9     CP01      16     41/2010      210
    =G10&H10&I10     CP01      16     42/2010      220
    =G11&H11&I11     CP01      16     43/2010      230
    =G12&H12&I12     CP01      16     44/2010      240
    =G13&H13&I13     CP01      16     45/2010      250
    =G14&H14&I14     CP01      16     46/2010      140
    =G15&H15&I15     CP01      8     40/2010      300
    =G16&H16&I16     CP01      8     41/2010      310
    =G17&H17&I17     CP01      8     42/2010      320
    =G18&H18&I18     CP01      8     43/2010      330
    =G19&H19&I19     CP01      8     44/2010      340
    =G20&H20&I20     CP01      8     45/2010      350
    =G21&H21&I21     CP01      8     46/2010      140
    =G22&H22&I22     CH13      16     40/2010      100
    =G23&H23&I23     CH13      16     41/2010      210
    =G24&H24&I24     CH13      16     42/2010      220
    =G25&H25&I25     CH13      16     43/2010      230
    =G26&H26&I26     CH13      16     44/2010      240
    =G27&H27&I27     CH13      16     45/2010      250
    =G28&H28&I28     CH13      16     46/2010      260
    =G29&H29&I29     CH13      8     40/2010      100
    =G30&H30&I30     CH13      8     41/2010      310
    =G31&H31&I31     CH13      8     42/2010      320
    =G32&H32&I32     CH13      8     43/2010      330
    =G33&H33&I33     CH13      8     44/2010      340
    =G34&H34&I34     CH13      8     45/2010      350
    =G35&H35&I35     CH13      8     46/2010      360
    Solution:
    Company     Group     Week     Qty (Formaule)     Actual values
    CP01      16     40/2010      =SUMIF($F$8:$F$35,$M$9&$N$9&O9,$J$8:$J$35)     200
              41/2010      =SUMIF($F$8:$F$35,$M$9&$N$9&O10,$J$8:$J$35)     210
              42/2010      =SUMIF($F$8:$F$35,$M$9&$N$9&O11,$J$8:$J$35)     220
              43/2010      =SUMIF($F$8:$F$35,$M$9&$N$9&O12,$J$8:$J$35)     230
              44/2010      =SUMIF($F$8:$F$35,$M$9&$N$9&O13,$J$8:$J$35)     240
              45/2010      =SUMIF($F$8:$F$35,$M$9&$N$9&O14,$J$8:$J$35)     250
              46/2010      =SUMIF($F$8:$F$35,$M$9&$N$9&O15,$J$8:$J$35)     140
              40/2010      =SUMIF($F$8:$F$35,$M$9&$N$9&O16,$J$8:$J$35)     200
         8     40/2010      =SUMIF($F$8:$F$35,$M$9&$N$17&O17,$J$8:$J$35)     300
              41/2010      =SUMIF($F$8:$F$35,$M$9&$N$17&O18,$J$8:$J$35)     310
              42/2010      =SUMIF($F$8:$F$35,$M$9&$N$17&O19,$J$8:$J$35)     320
              43/2010      =SUMIF($F$8:$F$35,$M$9&$N$17&O20,$J$8:$J$35)     330
              44/2010      =SUMIF($F$8:$F$35,$M$9&$N$17&O21,$J$8:$J$35)     340
              45/2010      =SUMIF($F$8:$F$35,$M$9&$N$17&O22,$J$8:$J$35)     350
              46/2010      =SUMIF($F$8:$F$35,$M$9&$N$17&O23,$J$8:$J$35)     140
              40/2010      =SUMIF($F$8:$F$35,$M$9&$N$17&O24,$J$8:$J$35)     300
    Simple funda here is jst concatenate the Company code + group + Week
    Now at solution write a sumif function the range will be the concatenated values and sum range will be the Qty.
    Let me know if you have any issues in implementing thsi logic.
    Regards,
    Anjanikumar C.A.

  • Trying to get export value from combo box

    Using the "Custom Keystroke Script" for a combo box:
    // This works but gives the current face value
    if( event.willCommit )
        app.alert(event.value);
    // This works but gives the previous export value
    if( event.willCommit )
        app.alert(event.target.value);
    What I need is the clicked items' current export value as soon as it is clicked.
    What am I doing wrong?

    Sorry about that. I posted the question and then realized I should have just used the same thread.
    Any way, I tried your code and it does not show the current export value. It shows the previously selected value.
    Example:
    When I click item 2 it shows item 0
    Then I click item 4 and it shows item 2
    Then I click item 7 and it shows item 4.. etc.. (see the pattern)
    What I need is the value from the item I'm currently clicking on.
    If I click item 2, I expect to see item 2. etc..
    Thank you for your patience in answering this!

  • How do I retrieve data from combo boxes?

    The past weekend I spent my whole weekend trying to find this
    out and gone through the top 10 pages on google trying all sorts of
    things. I would be grateful for anyone who can help me.
    I have 6 combo boxes in a booking form and I need to retrieve
    the data when someone click submits which gets forwarded on to php
    then my mailbox. They are called box1_cb, box2_cb.....box6_cb All
    in the instance of: ComboBox - which I don't understand what that
    does.
    it does not seem to be retrieving any of the data. For each
    combo box:
    I have the the options people can choose form in "Labels" box
    under "Paramaters", nothing for "Data", Row Count is 8 and nothing
    for "Change Handler" which I don't know what it does.
    Can anyone please provide some help with telling me what
    "change handler" does, do I need the data for each combo box in the
    "Labels" parameter as well as the "Data" box, what an instance does
    (for combo boxes) and what I need to put in the actionscript for
    the submit button as well as do i need to put code in the
    actionscript for each combo box?
    The options people can choose from in the combo boxes are
    there when someone views the site.
    Can anyone please help me..I would greatly appriciate it.
    Thanks.

    If your hard drive can be detected and shows up as a drive letter in my computer but you can't access your files,then you can recover your data off it with data recovery software easily.This way is the easiest and the most inexpensive way to recover your data.If you bring it to a computer repair shop that is available for data recovery servise,they will cost you $500-1000 or more.Hmm, a lot of money.
    I managed to recover data from crashed hard drive with Tenorshare Data Recovery.If needed,you can download it and scan your hard drive for free to preview whether your data can be recovered.It will show you thumbnails for recoverable pictures.

  • Using function from windows dll in abap program

    Hi
    How can i use a function from a standard  DLL that in c:\winnt\system32.?.
    Ami

    Hello ami,
    here is the solution to your question - I know, a little bit late, but I hope not to late.
    Cheers
    Stefan
    "-Begin-----------------------------------------------------------------
      Report  ZLOGON.
      "-Variables-----------------------------------------------------------
        Data Win32 Type OLE2_OBJECT.
        Data Token Type String Value '0000'.
        Data hToken Type Integer.
        Data phToken Type Integer.
        Data ret Type Integer.
      "-Main----------------------------------------------------------------
        Create Object Win32 'DynamicWrapperX'.
        If Win32-Handle > 0.
          "-Define external functions---------------------------------------
            Call Method Of Win32 'Register' Exporting
              #1 = 'advapi32.dll' #2 = 'LogonUserA'
              #3 = 'i=sssuup' #4 = 'r=l'.
            Call Method Of Win32 'Register' Exporting
              #1 = 'kernel32.dll' #2 = 'CloseHandle'
              #3 = 'i=h' #4 = 'r=l'.
            Call Method Of Win32 'Register' Exporting
              #1 = 'kernel32.dll' #2 = 'GetLastError'
              #3 = 'r=u'.
          Call Method Of Win32 'StrPtr' = phToken Exporting
            #1 = Token #2 = 's'.
          Call Method Of Win32 'LogonUserA' = ret Exporting
            #1 = 'bambi' #2 = '.' #3 = 'hugo' #4 = 2 #5 = 0 #6 = phToken.
          If ret <> 0.
            "-Logon successful----------------------------------------------
              Write: 'Logon as bambi user'.
            Call Method Of Win32 'NumGet' = hToken Exporting
              #1 = phToken.
            Call Method Of Win32 'CloseHandle' = ret Exporting
              #1 = hToken.
            If ret = 0.
              Call Method Of Win32 'GetLastError' = ret.
              Write: / ret.
            EndIf.
          Else.
            Call Method Of Win32 'GetLastError' = ret.
            Write: / ret.
          EndIf.
          Free Object Win32.
        EndIf.
    "-End-------------------------------------------------------------------
    Edited by: Stefan Schnell on Sep 6, 2011 7:07 AM

  • How can i use function from microsoft DLL in an ABAP program?

    Hi
    Is there a way to use a function from a standard DLL file in an ABAP progrm ????
    The dll is stored in c:\winnt\sttem32.
    Do i need to upload the dirver to the ECC server? do i need to put it some Tcode before i use it in my program?
    i tried to fined some clear exaple but without any success .
    Hope to get some help here ,
    thanks ,
    E.

    this is not really possible, a dll cannot be uploaded, eg. sap could run in a non windows-environment so this won't work
    Why not?  You can query the local operating system for type/version, you can detect the presence of a file if you have the access, and you can run local executables using GUI_EXECUTE.  However, if you've got any level of decent security in place, you're not going to be allowed to run a DLL in that location...

  • Using serial from product box, but serial number invalid after installation?

    Ok, so.  I have a copy of Photoshop 5, a physical copy, in the original box.  I tried to install it on my computer, and actually did so successfully--it recognized the serial number from the box as correct and did a full install.  However, when I actually opened Photoshop for the first time, a message came up saying that the serial number was invalid, and my options were to enter a new one or wait until next time, when I'd have to enter a new one for Photoshop to run.
    I haven't closed it yet because I need it for work and don't want to risk it not running.  Why would my definitely valid serial number not work?  I double and triple checked what I typed in, and it initially accepted it, only rejecting it after installation.
    I'm on Windows 7.

    Welcome to the forum.
    Did you purchase this copy of Ps 5 (Assume CS5, but please correct me, if it is the very old Ps version 5) from Adobe, or a 3rd party?
    If from Adobe, log into Adobe.com with your Adobe ID and go to My Products. Verify the S/N there.
    If from a 3rd party, it could well be that the S/N provided has been "used up."
    Good luck,
    Hunt

  • Cant access msmdpump.dll setup in IIS from a box other than localhost

    I configured access to SQL Analysis Services via IIS on one of my machines, as per the following instructions:
    http://mglaser.bloggingabout.net/2008/08/15/configuring-http-access-to-sql-server-2008-analysis-services-on-microsoft-windows-server-2008/
    I tested using Excel on the same machine and it works fine. I access using the following url (I can access without using localhost on that machine):
    http://10.3.29.79/OLAP/msmdpump.dll
    But when I try it from any other machine on the same network using Excel it does not work. Now I know you cant use IE for testing but I just watned to see if I could resolve to even the error you normally get in IE.  Something along the lines of:
    - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    - <soap:Body>
    - <soap:Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/">
    <faultcode>XMLAnalysisError.0xc10e0002</faultcode>
    <faultstring>Parser: The syntax for 'GET' is incorrect.</faultstring>
    - <detail>
    <Warning WarningCode="1090584599" Description="The 'Invariant Language' locale for UI is not supported." Source="Unknown" HelpFile="" />
    <Error ErrorCode="3238920194" Description="Parser: The syntax for 'GET' is incorrect." Source="Unknown" HelpFile="" />
    </detail>
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>
    But all I get when I access from other machines is an error 500, internal server error.  I'm not worried about it not working in IE as I know it cant, but I do think there's an issue accessing from any box except the host. 
    Thanks for any advice!

    Hi Rmccabe,
    Try Turning off the Friendly errors in IE and then launch this URL to find the exact error.
    Try  changing the Authentication Mode in IIS XMLA Virtual Directory to Anonymous Aurthentication and try launching the URl.
    you can even try connecting the Analysis Server With SSMS by giving the XMLA URL  "http://10.3.29.79/OLAP/msmdpump.dll"
    in the Server Name Text box.
    Try Disabling Firewall- It it works then Add the Proper port no to get rid of this issue.
    Since you are able to access the cube with the Local Server (Localhost). These are the common reasons for these error.
    Please vote as helpful or mark as answer, if it helps Regards, Anand

Maybe you are looking for

  • What do i do if my music's are not working?

    I need help with it?

  • I'm new and confused

    I don't want to annoy anyone but if someone could help me I would appreciate it greatly. What I'm trying to do is bring up a window that is used to get the player names for a game and when they click the button that window goes away and another game

  • Lync does not appear in notification center

    I have the latest version of Lync installed (4.2.6609.0000). When installing the app (I have tried deleting and reinstalling several times) the app does not ask me if I wish to receive push notifications. Therefore I assume this is the reason it does

  • BDC For VK11

    Hi All, I got a requirement to upload Condition records through trnx VK11 , but I have one doubt , how can we handle the radio buttons  ( Table ) dyamically for every Condition type??? Ex : for condition type 'X' it has choose the table '111' and for

  • HT201485 I forget my security answer and rescue email address

    I Forget my security questions and rescue email address... mine one is IOS 8.1.2 i wan to buy iTunes buy it need me to enter security answer but I forget it and i try to reset my security answer but I forget the email address. So how I reset the secu