Creating measure using set operators in BO Xi 3.0

Hi All,
I am trying to create a measure like this in BO XI 3.0 Designer.
Select count(*) from
select id from table1 where Name=<Prompt Value>
INTERSECT
select id from table1 where Name=<Prompt Value>
But I don't know how to use set operators in Designer.
Can someone please help or any pointer would help.
Thanks,
Kuldeep
Edited by: Kuldeep Chitrakar on Apr 2, 2009 4:06 PM

Create a derived table with same SQL and drag the table into universe pane to create object.

Similar Messages

  • Creating variables using set()

    Does the set() function for dynamically creating variables
    have a substitute in AS3?
    This is a generic example written in AS2:

    You're welcome. Until your posting, I didn't know there was
    such a thing as set, so as often happens, I learn new things here.
    My approach normally would have been along the lines of the = one.
    If you're ever wondering about other changes, in the AS3 help
    docs you can search on "Migration" and one of the few choices there
    is titled as such wrt AS2. It tabulates the status of most of the
    AS2 code elements and identifies alternatives for AS3 when
    applicable.
    Also, there's this offering you might find useful...
    http://www.actionscriptcheatsheet.com/downloads/as3cs_migration.pdf

  • Display Job ID and Department ID using set operators

    I am trying to produce a list with the following output from table employees. This query will produce a list of jobs for departments 20, 60, and 25 in that order.
    JOB_ID DEPARTMENT_ID
    ASST 20
    CLERK 60
    MAN 60
    MAN_B 25
    So far I have the query to give the output but I can't figure out the order by part...please help.
    SELECT job_id, department_id FROM employees
    INTERSECT
    SELECT job_id, department_id FROM employees WHERE department_id IN (20,60,25)
    ORDER BY ???
    ;

    The SQL Developer forum is meant for discussions about the tool with the same name.
    What you want is help on the SQL And PL/SQL forum...
    K.
    PS: Hint: ORDER BY Decode(...)
    Message was edited by: K.

  • What is use of set operators in OBIEE

    Hi Guys,
    Colud you please tell me what is main use of Set Operators (Intersection,Union,Union all)in OBIEE.
    Is it mandatory to use them in reports?
    Pls tell me.
    Regards,
    siva

    Hi,
    What scenario we are using set operators.
    For Eg.
    Col 1 is having values:
    A
    B
    C
    Col 2 is having values:
    1
    2
    3
    I have to create a new column in answers having values
    A
    B
    C
    1
    2
    3
    solution:
    You can use SET operators in OBIEE and it's really easy to set it in answers section. So create one request and then add other similar request to it by using UNION operator.
    or
    we can use case statement also.
    2. Is it mandatory to use them in reports?
    Normal reports not mandatory.
    Hope it helps.
    Thanks,
    satya

  • Set operators in PLSQL

    Hi All,
    Can we use set operators in PLSQL. I hope we can not use it in PLSQL. But just wanted to check with you all.
    Begin
    select 1 into n from dual
    union
    select 2 into n from dual;
    end;
    Thanks

    Not using that syntax you won't in PL/SQL as it's just wrong.
    As you're querying multiple rows you'd have to either loop or collect it in to a collection e.g.
    SQL> declare
      2    type aNums is table of number;
      3    vNums aNums;
      4  Begin
      5    select n
      6      bulk collect into vNums
      7    from
      8      (
      9      select 1 as n from dual
    10      union
    11      select 2 from dual
    12      );
    13  end;
    14  /
    PL/SQL procedure successfully completed.
    But yes, you can use any SQL statements in SQL that you use in PL/SQL.

  • Set Operators - Clarification needed

    This is my query. I am executing this in HR Schema Oracle 11g.
    SELECT HIRE_DATE, EMPLOYEE_ID, to_char(null) FROM EMPLOYEES WHERE LAST_NAME='Taylor'
    UNION ALL
    SELECT SYSDATE, TO_CHAR(NULL), 1+1 FROM DUALIt gives ORA-01790: expression must have same datatype as corresponding expression error. What data type is mismatching here? I don't seem to understand. HIRE_DATE and SYSDATE - DATE data type. Is something wring with my other two columns? I read that TO_CHAR(NULL) can be used for filling missing values. That's why I tried this way.
    Any guidance, please?

    Hi,
    whenever you use set operators there has to be ont to one datatype correspondance of the columns you define in all the select statements.
    Here the first select statement's employee_id number is conflicting with to_char(null) and to_char(null) is conflicting with 1+1.
    Hence try out this
    SELECT HIREDATE, Empno, to_char(null) FROM EMP WHERE ename='Taylor'
    UNION ALL
    SELECT SYSDATE, 1+1,TO_CHAR(NULL) FROM DUAL
    or use
    SELECT HIRE_DATE, EMPLOYEE_ID, to_NUMBER(null) FROM EMPLOYEE WHERE LAST_NAME='Taylor'
    UNION ALL
    SELECT SYSDATE, TO_NUMBER(NULL), 1+1 FROM DUAL

  • [Forum FAQ] How do I create calculated measure using AMO in SQL Server Analysis Services?

    Introduction
    In SQL Server Analysis Services (SSAS), you can create a calculated measure in SQL Server Data Tool (SSDT)/Boniness Integrated Development Studio (BIDS). Sometimes you may need to create calculated measure by using AMO in a C# or VB project.
    In this article, I will demonstrate so how to create calculated measure using AMO in SSAS?
    Prerequisites
    Before create calculated measure using AMO, you need to ensure that the following components were installed in your server.
    The multidimensional database AdventureWorks Multidimensional Model 2012
    A SQL Server with SSIS and SSAS installed
    The AMO libraries installed:
    X86 Package (SQL_AS_AMO.msi)
    X64 Package (SQL_AS_AMO.msi)
    Solution
    Here is the detail steps to create calculated measure using AMO in SSAS.
    Open SSDT and create a new SSIS project.
    Drag Script Task to the design surface.
    Click SSIS-> Variables to open the Variables window and add two variables that used to connect to the server and database.
    Create a connection to connect to SSAS server.
    Rename the connection name to ssas.
    Double click the Script Task to open Script Task Editor.
    Add Connection and Database variables to ReadWriteVariables textbox and then click Edit Script button.
    Add AMO reference in the Solution Explore window.
    Copy the script below and paste it into the script.
    Dim objServer As Server
    Dim objDatabase As Database
    Dim strDataBaseID As String
    Dim objCube As Cube
    Dim objMdxScript As MdxScript
    Dim objCommand As Command
    Dim strCommand As String
    objServer = New Server
    objServer.Connect("localhost")
    objDatabase = objServer.Databases("AdventureWorksDW2012Multidimensional-EE2")
    strDataBaseID = objDatabase.ID
    If objDatabase.Cubes.Count > 0 Then
    objCube = objDatabase.Cubes("Adventure Works")
    If objCube.MdxScripts.Count > 0 Then
    objMdxScript = objCube.MdxScripts("MdxScript")
    objMdxScript = objCube.MdxScripts(0)
    Else
    objCube.MdxScripts.Add("MdxScript", "MdxScript")
    objMdxScript = objCube.MdxScripts("MdxScript")
    End If
    objCommand = New Command
    strCommand = "CREATE MEMBER CURRENTCUBE.[Measures].[Multipy Measures By 3]"
    strCommand = strCommand & " AS [Measures].[Internet Sales Amount] * 3, "
    strCommand = strCommand & " VISIBLE = 1 ; "
    objCommand.Text = strCommand
    objMdxScript.Commands.Add(objCommand)
    objMdxScript.Update()
    objCube.Update()
    End If
    objServer.Disconnect()
    Then you can run this SSIS package to create the calculated measure.
    Applies to
    Microsoft SQL Server 2005
    Microsoft SQL Server 2008
    Microsoft SQL Server 2008 R2
    Microsoft SQL Server 2012
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

  • How to create a Document Set in SharePoint 2013 using JavaScript Client Side Object Model (JSOM)?

    Hi,
    The requirement is to create ""Document Sets in Bulk" using JSOM. I am using the following posts:-
    http://blogs.msdn.com/b/mittals/archive/2013/04/03/how-to-create-a-document-set-in-sharepoint-2013-using-javascript-client-side-object-model-jsom.aspx
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/1904cddb-850c-4425-8205-998bfaad07d7/create-document-set-using-ecma-script
    But, when I am executing the code, I am getting error "Cannot read property 'DocumentSet' of undefined "..Please find
    below my code. I am using Content editor web part and attached my JS file with that :-
    <div>
    <label>Enter the DocumentSet Name <input type="text" id="txtGetDocumentSetName" name="DocumentSetname"/> </label> </br>
    <input type="button" id="btncreate" name="bcreateDocumentSet" value="Create Document Set" onclick="javascript:CreateDocumentSet()"/>
    </div>
    <script type="text/javascript" src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js"> </script>
    <script type="text/javascript">
       SP.SOD.executeFunc('sp.js','SP.ClientContext','SP.DocumentSet','SP.DocumentManagement.js',CreateDocumentSet);
    // This function is called on click of the “Create Document Set” button. 
    var ctx;
    var parentFolder;
    var newDocSetName;
    var docsetContentType;
    function CreateDocumentSet() {
        alert("In ClientContext");
        var ctx = SP.ClientContext.get_current(); 
        newDocSetName = $('#txtGetDocumentSetName').val(); 
        var docSetContentTypeID = "0x0120D520";
        alert("docSetContentTypeID:=" + docSetContentTypeID);
        var web = ctx.get_web(); 
        var list = web.get_lists().getByTitle('Current Documents'); 
        ctx.load(list);
        alert("List Loaded !!");
        parentFolder = list.get_rootFolder(); 
        ctx.load(parentFolder);
        docsetContentType = web.get_contentTypes().getById(docSetContentTypeID); 
        ctx.load(docsetContentType);
        alert("docsetContentType Loaded !!");
        ctx.executeQueryAsync(onRequestSuccess, onRequestFail);
    function onRequestSuccess() {       
        alert("In Success");
        SP.DocumentSet.DocumentSet.create(ctx, parentFolder, newDocSetName, docsetContentType.get_id());
        alert('Document Set creation successful');
    // This function runs if the executeQueryAsync call fails.
    function onRequestFail(sender, args) {
        alert("Document Set creation failed" + + args.get_message());
    Please help !!
    Vipul Jain

    Hello,
    I have already tried your solution, however in that case I get the error - "UncaughtSys.ArgumentNullException: Sys.ArgumentNullException:
    Value cannot be null.Parameter name: context"...
    Also, I tried removing SP.SOD.executeFunc
    from my code, but no success :(
    Kindly suggest !!!
    Vipul Jain

  • Is it possible to create an EQ setting (manual) in iTunes that can be stored on an iPod nano as an addition to the 22 EQ onpresets?  I want to use a manual setting for my headphones without applying the setting to each song.

    Hi.  Is it possible to create an EQ setting (manual) in iTunes that can be stored on an ipod nano as an addition to the 22 EQ presets?  I want to use a manual setting for my headphones without applying the EQ to all the individual songs.  I'd use a different EQ for my dock.
    Thanks.
    Paul St

    A quick look at the DM1 site shows that it works with Audiocopy.

  • Trying to create a VM using reserved IP but getting error "Must specify MediaLocation or set a current storage account using Set-AzureSubscription"

    I have created a reserved Ip and wanted to create a VM using the reserved IP. I had also created  aimage of existing Vm to create the new VM and I have used command on Windows Powershell as mentioned below.
    New-AzureVMConfig
    -Name
    "Amazon-10eBay-1" -InstanceSize
    “Small” -ImageName
    “Amazon-10-Image” | Add-AzureProvisioningConfig
    -Windows -AdminUsername
    “Akash” -Password “Stoneindia11” |
    New-AzureVM
    -ServiceName
    "Amazon-10eBay-1" -ReservedIPName
    "ResIPamazon10eBay1" -Location
    "West US"
    But its showing error "Must specify MediaLocation or set a current storage account using Set-AzureSubscription".
    I have been trying to create this Vm from many days but not able to create one. Please help

    Hello,
    Microsoft Azure forums are over here:
    https://social.msdn.microsoft.com/forums/azure/en-US/home
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Possibility to use self created CCMS monitor sets in DSWP

    For monitoring we have created a CCMS monitor set in RZ20. To use DSWP
    for monitoring, we need to recreate such a set in DSWP; Is it possible
    to use the self created CCMS monitor sets in DSWP? Is there f.e. a way
    to import sets from RZ20 to DSWP?

    Hello Thiago,
    There is no possibility of importing Monitoring Sets from RZ20 to DSWP.
    Both the transactions are designed in different way and cannot be synchronized via Import / Export.
    Infact the way DSWP would display and classify alerts is totally different from RZ20.
    I am sorry but there is no way you could acheive this in any Standard SAP Solution Manager System.
    Regards
    Amit

  • DAQ vi to perform digital write and read measurements using 32 bits binary data saved in a file

    Hi
    DAQ vi to perform digital write and read measurements using 32 bits binary data saved in a file
    Two main
    sections:
    1)     
    Perform
    write and read operations to and fro different spread sheet files, such that
    each file have a single row of 32bits different binary data (analogous to 1D
    array) where the left most bit is the MSB. I don’t want to manually enter the
    32 bits binary data, I want the data written or read just by opening a file
    name saves with the intended data.
          2)     
    And
    by using test patterns implemented using the digital pattern generator or  build digital data functions or otherwise, I need to
    ensure that the     
                binary data written to a spreadsheet file or any supported file type
    then through the NI-USB 6509 is same as the data read.
    I’m aware I can’t use the simulated
    device to read data written to any port but if the write part of the vi works I
    ‘m sure the read part will work on the physical device which I’ll buy later.
    My Plan
    of action
    I’ve
    created a basic write/read file task and a write/read DAQ task for NI USB 6509
    and both combine in a while loop to form a progress VI which I’m confuse of how
    to proceed with the implementation.
    My
    greatest problem is to link both together with the correct functions or operators
    such that there are no syntax/execution errors and thus achieve my intended
    result.
    This
    project is one of my many assignments for my master thesis, so please i’ll
    appreciate every help as I’m not really efficient with LabVIEW programming but
    I prefer it because is fun and interesting if I get to know it.
    Currently I’m
    practicing with LabVIEW 8.6/NI DAQmx 8.8 Demo versions and NI USB 6509
    simulated device.
    Please see
    the attached file for my novice progress, thanks in
    advance for the support
    Rgds
    Paul
    Attachments:
    DIO_write_read DAQ from file.vi ‏17 KB

    What does your file look like?  The DAQmx write is expecting a single U32 value, not an array of I64. 
    Message Edited by vt92 on 09-16-2009 02:42 PM
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal

  • SQL08 Need example of creating AND using a Fact (degenerate) dimension

    Can someone post a link to some examples of setting up and using a Fact (degenerate) dimension.  Ive got the SSAS 2008R2 Adventureworks DW project setup and I see a few Fact dimensions in there, but id like some descriptions to go along with this or
    something similar.
    My scenario:
    Orders - attributes include :  Order#, OrderStartDate, SalesPerson, BusinessType, MarketType
    OrderTransactions - attributes include:  OrderKey , TransactionAmount, TransactionType, TransactionDate, AccountKey
    Description:
    Its more or less the typical Order > Order Detail type scenario, with the addition of Orders have some additional attributes.
    So I want to be able to measure on for example:
    Order counts - broken down by BusinessType and MarketType , and then within a date range
    Revenue - which will be totals of transaction amounts, again grouped by BusinessType and MarketType, but also be able to drill down to see the related Order#

    Hi Shiftbit,
    According to your description, you need some examples about create and use degenerate dimensions, right?
    Degenerate dimensions, also called fact dimensions, are standard dimensions that are constructed from attribute columns in fact tables instead of from attribute columns in dimension tables. Here is document that describes how to create and use degenerate
    dimensions step by step, please refer to the links below.
    https://msdn.microsoft.com/en-us/library/ms167409(v=sql.100).aspx
    http://www.jamesserra.com/archive/2011/11/degenerate-dimensions/
    Regards,
    Charlie Liao
    TechNet Community Support

  • Logical column - Fact measure using Dimension value

    Hello all, I have a Fact table that has a metric (Value) where I have set the Aggregation rule to Sum. Now I'd like to create a metric based on the value of a Product Dimension that joins to this Fact table. So I create logical column that has the syntax - Case When Product_Desc = 'A' then Value else 0 End.
    The issue is in Answers when I bring this new metric in it doesn't bring in the correct value, are there steps I am missing with creating this metric?
    My assumption is if I just bring that new metric in by itself it would return one record - A sum of the Value where the Product = 'A'.
    Thank you

    Hi BRizzle,
    In your scenario, you creatre a calculated measure using the employee dimension, and then this measure show "#VALUE" on the pivot table, right? It seems that it's a limitation of using calculated measures in SQL Server Analysis. Calculated measures cannot
    be secured using Dimension Security in a straight forward manner, in fact they won't be listed at all in the Dimension tab of the role where we define the Dimension security. When such measures are browsed in client tools like Excel, the value that would be
    displayed is an error value like #VALUE. For the detail information about it, please see:
    Limitations / Disadvantages of using Calculated Measures / Calculated Members in SSAS
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Mass upload of Alternative unit of measure using MASS

    Hi All,
    Can some one guide me how to upload alternative unit of measure using MASS Transaction -  can you elaborate like fields to be considered also, as I am trying using MM17 but could not go further.
    Thanks,
    Vengal Rao.

    it is possible to create alternative units using MM17. But I would not use the word upload in that matter, as you cannot upload from an external file.
    start MM17-
    select table MARM and execute
    you see 2 tabs,
    you are at the Change record tab, please set indicator for do not change existing data, then go to the creation tab
    enter the material number and the alternative unit you want add .
    then execute
    Now you see your material number, the new unit and the material description
    click the icon for field selection and add the field nominator and denominator (and all other fields where you usually enter data) to your shown fields.
    enter the value of your choice and save.
    if you want add the same value for nominator and denominator  to all the materials listed, then enter the value  in the fields that are listed above the listed materials. then click the header title above all fields that shall be distributed followed by the mass change button. Finally press save button.

Maybe you are looking for

  • Where did my RAID go??

    Hi guys! After I flashed my bios from v3.5 to v3.6 I can't get my RAID up 'n runnin'... I even tried to flash the old bios-versions (3.5, 3.4 and even 3.3)  Luckily I wrote down all the settings concerning RAID before flashing, but it have not helped

  • I cannot see more than one recipient in the To or CC field

    My iPad is only showing one recipient on received emails despite being able to see multiple recipients on the same email when I view on my laptop. I've rebooted, deleted accounts and set them up again and done a restore but its the same. I have compa

  • N78 GPS/map issues

    I bought an N78 last year and since I got it the GPS lock-on speed has been extremely slow, usually averaging around 6-7 minutes for an accurate position from the startup of maps. After I've gotten an initial connection it only takes a couple of seco

  • Email temporary error.

    I keep getting the message below, fair enough but I am waiting for an important email regarding the completion date for a house sale. I have contacted BT "Help" who's answer was it should be sorted by next week. Great the house sale could fall to bit

  • Image map problem in Firefox 2.0.0.9

    I have created a page in Dreamweaver with an image that has an image map with six links. It works correctly in IE, Safari, and Opera, but Firefox 2.0.0.9 has an issue. When I click on the top link, I get the second url. When I click on the second, I