How to Create a new column from two different result sets

How to Create a new column from two different result sets, both the result set uses the different date dimensions.

i got solutions for this is apply filters in column formula it self, based on the requirement.

Similar Messages

  • How to create an new column from ordered pairs

    Hi,
    Wondering if anyone can help this problem. I am analyzing network traffic between a PC and a Server. I can easily get a count of packets in each direction, PC1 to Server1 and the return path, Server 1 to PC1. But want I really want is a count
    of PC1 to OR from Server1, basically a count of packets by IP conversation.
    Each row is a packet with fields like: Time, Source, Destination.
    For example
    2:01:01, PC1, Server1
    2:01:01, Server1,  PC1 
    I would like to create a new column that represents a conversation. So new have columns: Time, Source, Destination, Conv. To get something like this:
    2:01:01, PC1, Server1, Conv1
    2:01:01, Server1,  PC1, Conv1
    2:01:01, PC2, Server1, Conv2
    2:01:01, Server1,  PC2, Conv2
    Thanks,
    Wes

    Wes, I just got around to revisiting your problem. The solution I came up with is twofold. The first part is the creation of a custom function that generates a conversation ID in the form PC1_Server1, PC2_Server1 etc. The second part uses a lookup table
    for each unique combination of PC and server to return a conversation number (Conv1, Conv2...).
    First of all, the "NetTraffic" table (your original table) generates the following script
    let
        Source = Excel.CurrentWorkbook(){[Name="Table8"]}[Content],
        #"Changed Type" = Table.TransformColumnTypes(Source,{{"Time", type time}}),
    in
        #"Changed Type"
    In the above, the type of the timestamp column is changed to time, but you can alternatively fix it as text.
    I've called the custom function "ConversationIdentifier." It takes four parameters, as described by the parameter names.
    (sourceList as list, sourceValue as text, destinationList as list, destinationValue as text) as text=>
    let
        SourceConversationList = List.Sort(List.Select(sourceList,each (_ = sourceValue or _ = destinationValue))),
        DestinationConversationList = List.Sort(List.Select(destinationList,each (_ = sourceValue or _ = destinationValue)),Order.Descending),
        ConversationID = SourceConversationList{0}&"_"&DestinationConversationList{0}
    in
        ConversationID
    Usage:
    As an added custom column in Power Query, the formula, based on the "NetTraffic" table would be:
    =ConversationIdentifier(#"Changed Type"[Source],[Source],#"Changed Type"[Destination],[Destination])
    As previously mentioned, the custom function generates combinations of PC and server, such that each combination represents a conversation.
    Next, I created a two-column "ConversationLookup" table in a worksheet, with entries like PC1_Server1|Conv1, PC2_Server1|Conv2, and so on.
    In the NetTraffic table, I did a merge with the ConversationLookup table, ensuring that the "Only Include Matching Rows" option is left unchecked (left join).
    Finally, I removed unwanted columns. Note: You don't need to use the lookup step if PC1_Server1, PC2_Server1 etc. serves your need for identifying a conversation.

  • How to create a new connection from SAPGUI to Test drive?

    Hi,
    I have installed Sap Netweaver Test drive on a linux virtual machine (windows host). The installation was successful and I was able to start the instance (application server and the database), yet I don't know how to create a new connection from my SAPGUI client (7.20) to this server. The static IP address of the server is 192.168.1.160.
    I entered the following values for my new connection entry
    Description: SAP Netweaver
    Application server: 192.168.1.160
    Instance number: 01
    System ID: DB2
    SAProuter: /H/192.168.1.160/S/3201/H/
    But it does not work. Any idea about the values needed  for creating a new entry?
    Thanks in advance,
    Dariyoosh

    >
    Dibya R Das wrote:
    > Why are you entering a router string? Can't you reach a box directly from your machine?
    >
    > Doesn't a ping to that host & a "telnet <host/ip address> 3201" work from your machine to the SAP System.
    >
    > Remove the router string you wont need if the above works.
    >
    > - Regards, Dibya
    Hello there,
    Thank you very much for your answer which solved my problem. In fact there was no need of providing router string.
    Kind Regards,
    Dariyoosh

  • Concatenate columns from two different reports

    In OBIEE 11g report, I am looking for a method to concatenate columns from two different reports.
    My requirement is, if I show 'Units Produced' for customer A, I need to show another column 'Units Produced' for a related customer B.
    Every customer has one related customer.
    So my report shows all the data for customer A, but I need to add one column which is for custome B , so I am looking a way to concatenate columns or if some other way this can be done

    Customer A is dimension table. You mapped to fact to get Customer A details.
    Now you want for Customer B. Now create one more alias table for Customer and name it as customer B and join with Fact on Customer B keys and use it.
    Each customer has related customer.
    2 dimension tables one for customer and other for related customer.

  • Sum two different columns from two different tables

    Can you select and sum two different columns, from two different tables in the same sql statement?
    i.e.
    table1
    Item----OnHand_Qty
    A--------10
    A--------15
    B--------10
    B--------10
    C--------20
    table2
    Item----Trx_Qty
    A--------2
    A--------4
    A--------6
    B--------1
    B--------1
    C--------4
    I'm looking for the following results from a query
    Item----Sum(Onhand_Qty)---Sum(Trx_Qty)
    A--------25

    Like this?
    SQL> create table table1 (item,onhand_qty)
      2  as
      3  select 'A', 10 from dual union all
      4  select 'A', 15 from dual union all
      5  select 'B', 10 from dual union all
      6  select 'B', 10 from dual union all
      7  select 'C', 20 from dual union all
      8  select 'D', 30 from dual
      9  /
    Tabel is aangemaakt.
    SQL> create table table2 (item, trx_qty)
      2  as
      3  select 'A', 2 from dual union all
      4  select 'A', 4 from dual union all
      5  select 'A', 6 from dual union all
      6  select 'B', 1 from dual union all
      7  select 'B', 1 from dual union all
      8  select 'C', 4 from dual union all
      9  select 'E', 3 from dual
    10  /
    Tabel is aangemaakt.
    SQL> select nvl(t1.item,t2.item) item
      2       , t1.sum_onhand_qty
      3       , t2.sum_trx_qty
      4    from ( select item, sum(onhand_qty) sum_onhand_qty
      5             from table1
      6            group by item
      7         ) t1
      8         full outer join
      9         ( select item, sum(trx_qty) sum_trx_qty
    10             from table2
    11            group by item
    12         ) t2
    13         on (t1.item = t2.item)
    14  /
    I SUM_ONHAND_QTY SUM_TRX_QTY
    A             25          12
    B             20           2
    C             20           4
    E                          3
    D             30
    5 rijen zijn geselecteerd.Regards,
    Rob.

  • Discoverer columns from two different sheets

    Hi,
    Is it possible in discoverer to bring columns from a different sheet into another sheet? I have a few columns on sheet2, which have a different condition and sheet1 has different conditions. The sheets 1 and 2 can be linked on their emplid. Is there a way to combine the columns??
    Any help is greatly appreciated.
    Thanks!

    Hi,
    I am using decode to try and get the column with the condition into the first sheet.
    For example:
    In my first sheet, I select emplid, empl_no, area_cde, avg_eqty from table a.
    I also want the following from table a:
    1) count rec_id where a_cde in (1,2,3)
    2) count rec_id where a_cde in (1,2,3) and product_cde = 1 and discnt = 1
    When I use decode, and select the columns, I say,
    calc1:
    decode(a_cde,1,1,2,1,3,1) --> seperating a codes 1,2,3 and the rest of them.
    calc2:
    and then I calculate another item --> case when calc1 = 1 then count(rec_id) else NULL end
    When I do the above, I get one row as expected.
    However, when I try to incorporate 2), I created another calculation:
    calc3:
    case when calc1 = 1 and product_cde = 1 and discnt = 1 then count(rec_id)
    As soon as I add this calc to my report, I get 2 rows returned, because, the Avg_discnt column (just the col selected from the table, not a calc), has a discnt = 1 associated with it, and I get two rows instead of one row.
    Please let me know if posting the SQL generated by discoverer would be more clearer.
    Thanks for your inputs!
    Edited by: spriya on Apr 6, 2010 2:16 PM

  • How to receive mail on iPad from two different addresses

    how to receive e mail on iPad from two different addresses and using these same two addresses receive e mail on computer

    Go to mail in settings and add the new account
    User guides
    http://manuals.info.apple.com/MANUALS/1000/MA1595/en_US/ipad_user_guide.pdf

  • Setting Up a New Mac From Two Different Time Machine Back-ups?

    Greetings Apple People,
    I am planning on getting a new iMac. Right now my wife I are still using our separate MacBooks from college. Both of them have Time Machine back-ups. We would like to setup our new iMac to have two different users. Is it possible to setup each of the users on the new iMac from our respective Time Machine back-ups?
    I know you can do this seamlessly with one Time Machine back-up, but can you do it from two different back-ups, essentially merging the two, while keeping the separate user profiles?
    Thanks!

    Follow the steps in Pondini's Setup New Mac guide using one computer as the source on first boot. Then, hook up the second computer and use the Migration Assistant to transfer the second user account and nothing else. Don't use the TM backup because it's much slower doing it that way than directly from each machine.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • How to create a new column in BEx Analyzer

    Hello,
    I have 12 characteristics and 7 Key figures in my Query. This includes RKF and CKF.
    I'm executing the query in BEx Analyzer.
    Now I want to include a new column which will be a replica of another Key figure column.
    How to do this?
    Regards,
    Arif

    Hello Arif,
    You can do the setting in BEx QD and view it in Analyzer.
    You can create a new formula and include the keyfigure in that formula.
    This will be displayed as a new column on execution.
    Regards,
    Bharath

  • How to create an new array from dynamically discovered type

        public static Object toAdjustedArray(Object source, Object addition,
                                             int colindex, int adjust) {
            int newsize = 0;
            Class componentType = null;
            if (source.getClass().isArray()) {
                Object[] arrayIn= (Object[])source;
                componentType = arrayIn[0].getClass();
                newsize = arrayIn.length + adjust;
            else {
                System.out.println("error in ArrayUtil");
            Object[] newarray = new Object[newsize];
            copyAdjustArray(source, newarray, addition, colindex, adjust);
            return newarray;
        }This methods take an array as an input an append new value(s) to it.
    I can get the component type of the array (i.e. the class of the array's member). But how can I create a new array of this component type (i.e doing something like componentType[] newarray = new componentType[newsize])?
    CU Jerome

    I fanally found a walkaround trick for my problem.
    Their is no way to create an array of a certain type (dynamically dsicovered) in CLDC. But what you can do is to use the instanceof method to determine the type of your array and in a big if statement create the right array.
    Here is the final code:
        public static Object toAdjustedArray(Object source, Object addition,
                                             int colindex, int adjust) {
            int newsize = 0;
            if (source.getClass().isArray()){
                Object[] arrayIn= (Object[])source;
                newsize = arrayIn.length + adjust;
            Object arrayElement = null;
            if (addition.getClass().isArray()){
                Object[] temp = (Object[])addition;
                arrayElement = temp[0];
            else{
                arrayElement = addition;
            Object newarray = null;
            if (arrayElement == null){
                newarray = new Object[newsize];
            if (arrayElement instanceof org.hsqldb.Index){
                newarray = new org.hsqldb.Index[newsize];
            else {
                newarray = new Object[newsize];
            copyAdjustArray(source, newarray, addition, colindex, adjust);
            return newarray;
        }

  • How to create a new Template from an Excisting Template

    Dear Sir,
    We already have one Template defined for creating the new Projects .  We need to create a New Template and for this we want to used the existing Template and will incorporate the required changes into it only .
    Kindly guide us as what procedure need to be followed to create a New Template by using an existing base Template .
    With Thanks and Rgds
    Sonia

    Hi,
    In your new template you have copied only standard WBS. For the activities to be copied, you need to assign that created Std. WBS in Std. Network using CN02.
    Input the Std.WBS in the Std. Network in CN02 and check if activities are also created in the network. In the Std. Network change screen press F6, and input Std. WBS in the header data details.
    Else, you can create a new std. Network using CN01 and create the activties also in the same and follow the above.
    Then try creating new project in CJ20N.
    Regards,
    Kabir

  • How to add a new plant from a different R3 into the existing new GL design

    Hi Experts,
    We have a scenario where we have a BI system already functional and the the FI reports like balance sheet is already available on the Portal.
    This flow is based on standard business content for new GL concept
    Now a new plant has been acquired and that plant already has R/3 and it's own G/L accounts.
    Now we have to build 2 reports:
    1 - The balance sheet for the new plant.
    2 - Consolidated balance sheet for the complete organization including the new plant G/.L accounts.
    DS: Leading Ledger Balances (0FI_GL_10)
    0FI_GL_10 --> 0FIGL_O10 --> 0FIGL_C10 (for Totals)- 0FIGL_V10
    0FI_GL_10 --> 0FIGL_R10 (Remote cube) --> 0FIGL_V11
    How best can we merge this new plant?

    Hi,
    SEM-BCS or BI-BPC NW 7.0N is meant for similar kind of requirements. You'll probably need to get a functional guy involved for mapping the GL accounts from the new company to your existing one and have journal entries for inter-company transactions. After doing the same you can then consolidate both the data and have a common output.
    search about BPC or BCS and you'll find out more. If you still need to do it in existing BI setup then get someone from FI and set the mappings of GL Accounts from both set the business rules and create a new cube to load the consolidated data.
    Hope this helps
    Regards
    Raj

  • How can I transfer new music from a different iTunes onto my iPod without erasing the music already on it?

    I have music on my iPhone and iPod nano from my old computer back home, and am now at college 2 hours away with my new laptop and a different repertoire. Just to be safe I tried syncing my old iPod nano with my new iTunes and rather than adding the music to my iPod it replaced all the music already on it. Is there some way I can stop this from happening with my iPod nano and my iPhone, or am I just going to have to copy everything onto CD's and do things the hard way? If anybody can help me they'll have my undying gratitude.
    Much appreciated,
    Demitra

     
    http://support.apple.com/kb/HT1329 How to use your iPod to move your music to a new computer
    http://support.apple.com/kb/HT4527 iTunes: How to move your music to a new computer

  • How do I fill a column from a different table

    I am using numbers V3.5 on Yosemite V10.10 and have a question about filling table columns.  I want the new table to ignore some values in the original column.  The first table is a has a matrix of values for multiple stocks and accounts.
    I would like to create a new table for a specific account with only the stocks listed that have a value > $0.  The table would appear something like this.
    I have looked at other posts but could not apply what I have found to this problem.  TIA for any suggestions

    Hi Marty,
    I would suggest you use a filter on your account column- >0 after your bring your data over.
    quinn

  • How do I enable opening firefox from two different computers sharing the same home directory without having to delete a lock file (linux).

    I just don't want to have to delete a lock file - which has a purpose - in order to use firefox simultaneously from two locations on the network - where the home directory, i.e. .mozilla directory - is located

    You need to use two separate profiles if you want to have two Firefox instances open at the same time.
    See also http://www.mozilla.org/unix/remote.html

Maybe you are looking for

  • How do I make a photo black and white but leave the color of her dress and flowers?

    I am trying to make one of my granddaughters prom pictures black and white but leave the color of her dress and flowers. Can someone tell me how this is done?

  • Nothing is working for ipad wifi with uverse

    Hello, I have tried numerous fixes in order to get my wi-fi to stay connected on my ipad and have also exhausted my searches on here for potential solutions. I have AT&T Uverse with the NVG589 modem.  My PS4 and laptop are also connected to the wi-fi

  • Accelerators, JTextField, and focus

    I created a JMenuItem for Save. I also created an accelerator for the Save menu item. JMenuItem saveItem; JMenu fileMenu = new JMenu ("File"); fileMenu.add (saveItem = new JMenuItem ("Save")); saveItem.setMnemonic ('S'); KeyStroke cntrlS = KeyStroke.

  • Converting symbols to grayscale

    I'm using the leaf symbol from the "nature" palette in the symbols library. Does anyone know of a way to convert this to grayscale, (picking filters/colors/convert to grayscale does not work) and/or to make it editable? thanks

  • Got email saying my subscription has expired?

    Just paid my membership, got an email stating it had been paid for, and then got an email today saying it's expired? Don't know what's going on. Please help.