How to add a column that shows the difference of two metrics columns?

I created a pivot table with two metrics columns. One metrics column has the aggregation rule of 'Min', the other has 'Max'. Now I want to add a column to show the difference of these two metrics for each row. Is this possible? How to do it? Thank you in advance.

Use TimeStampdiff:
TIMESTAMPDIFF(SQL_TSI_HOUR, MIN(xxxx), MAX(xxx))
It's in the help file if you need more help.
regards
Alex

Similar Messages

  • How to add a role description to the Role Library:Role Information Column

    Hi to all,
    I have an interesting question.I have a task to show a role description in the role sorting table information column.Is there any way to get this parameter ?
    I tried with waveset.roleinfos.info.description but nothing happened.I saw that in some forms is used waveset.availableRoleInfos[$(rolename)].info.description, but i can not understand what is this parameter actualy for and from where it comes (and i did not get anything from it either when i tried with it).
    So my question is is there any way i can add this description attribute to the Information role column ?

    Hi Mariana,
    one way is to use the role upload if you want to use existing BI roles in Portal:
    Here are more infos: http://help.sap.com/saphelp_nw04s/Helpdata/EN/9d/8c174082fe1961e10000000a155106/frameset.htm
    Regards,
    Adem

  • How to set a numeric field to the difference of two dates?

    hi,
    I need to create a table with a field containing a date (by def. current date) and another numeric field whose value is to be set to the difference (in days) between the current date and the date field. Something like this.
    CREATE TABLE Tabdate
    (fdate date default sysdate,
    difference number default (sysdate-fdate))
    I get this error:
    column not allowed here
    How can I do? please help me
    thanks
    Antonio

    You cannot set field values as defaults. Create a pre-insert/update-trigger instead.

  • Query to show the difference between two infoproviders

    Hi,
       I have two ods, one with X records and one with X+Y records. I want to show in a query just the Y records. Plz let me know how it can be done.
    Thanks.

    Hi ,
    I just want the difference records between the two ods.
    Thanks.

  • How to write a VI to measure the difference between two analog inputs (voltage)

    I'd like to measure the difference voltage between two analog inputs.
    Could someone write me a VI for it, please?
    I'm new with Labview....
    Thanks a lot!!!

    On the numeric palette, there is a function called subtract. As the
    help for it says, it 'Computes the difference of the inputs.'.
     Since
    this is such a simple process, you need to provide some details on why
    you can't do this. You can wire just about any data type into the
    inputs. Post your code if you need further help.
    Message Edited by Dennis Knutson on 04-05-2009 08:23 AM
    Attachments:
    Subtract.PNG ‏1 KB

  • How do i send attachments that show the display problems i have?

    i have 10 screen shots that i want to add so you guys can see what my problem appears to be.
    how do i attach these files to send to you?
    i have upgraded from 29.xx to 30.0 and both versions have the same symptoms
    one is through firefox, and the other is through google chrome
    any ideas as to whether it is a setting problem, or if it is a program problem?
    any help would be appreciated
    i have been unable to finish some assignments because of this display interaction that i am experiencing
    thanx much
    bruce furukawa

    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How to add/ remove elements/paragraphs into the include/don't include column in batches in PDF setup page bookmark tab?

    Pls see the title. There are hundreds of elements/paragraphs.

    Thanks for that information.
    I did not see that the “go to view link” could change documents. I thought it was only within a document.
    I manually added two “go to view links” and that seems to work on both mac and pc computers.
    That brings up two questions.
    For old files can a acrobat java script batch file be setup to read the hyperlinks in a pdf document  and replace them with a “go to view link” style?
    Can one place a “go to view link” style in a word document and then have the adobe convert to acrobat process it into the pdf format with the rest of the document? (or set up the converter to make word hyperlinks change to pdf “go to view links”?

  • How to find the difference between two timestamp column

    Dear All,
    please Solve my issue,
    I have Table name Record which has the following columns,
    Empid in number column, dat in timestamp
    which has the following values
    Expand|Select|Wrap|Line Numbers
    empid dat
    ====== ====
    101 4/9/2012 9:48:54 AM
    101 4/9/2012 9:36:28 AM
    101 4/9/2012 6:16:28 PM
    101 4/10/2012 9:33:48 AM
    101 4/10/2012 12:36:28 PM
    101 4/10/2012 8:36:12 PM
    101 4/11/2012 9:36:28 AM
    101 4/11/2012 4:36:22 PM
    Here I need to display the following columns,
    empid,min(dat) as start,max(dat) as end and difference(max(dat)-min(dat) for each day,
    for eg,
    Empid Strart end difference
    101 4/9/2012 9:48:54 AM 4/9/2012 6:16:28 PM 8.28
    like this.
    Here 3 different days are exists so It should return 3 records with the above mentioned columns,
    Please Help me to get this.
    Thank you,
    Regards,
    Gurujothi
    Edited by: Gurujothi on Apr 25, 2012 4:45 AM

    >
    101 4/9/2012 9:48:54 AM 4/9/2012 6:16:28 PM 8.28
    >
    why 4/9/2012 9:48:54?
    why not 4/9/2012 9:36:28 AM ?
    SQL>
    SQL> with t as
      2  (select  101 empid, to_timestamp('4/9/2012 9:48:54 AM', 'dd/mm/yyyy hh:mi:ss AM') dat from dual union all
      3  select 101, to_timestamp('4/9/2012 9:36:28 AM', 'dd/mm/yyyy hh:mi:ss AM') dat from dual union all
      4  select 101, to_timestamp('4/9/2012 6:16:28 PM', 'dd/mm/yyyy hh:mi:ss PM') dat from dual union all
      5  select 101, to_timestamp('4/10/2012 9:33:48 AM', 'dd/mm/yyyy hh:mi:ss AM') dat from dual union all
      6  select 101, to_timestamp('4/10/2012 12:36:28 PM', 'dd/mm/yyyy hh:mi:ss PM') dat from dual union all
      7  select 101, to_timestamp('4/10/2012 8:36:12 PM', 'dd/mm/yyyy hh:mi:ss PM') dat from dual union all
      8  select 101, to_timestamp('4/11/2012 9:36:28 AM', 'dd/mm/yyyy hh:mi:ss AM') dat from dual union all
      9  select 101, to_timestamp('4/11/2012 4:36:22 PM', 'dd/mm/yyyy hh:mi:ss PM') dat from dual
    10  )
    11  select empid, min(dat) as start_dat
    12  , max(dat) as end_dat
    13  , max(dat)-min(dat) diff
    14  from t
    15  group by empid, trunc(dat)
    16  /
         EMPID START_DAT                                         END_DAT                                           DIFF
           101 04.09.12 09:36:28,000000000                       04.09.12 18:16:28,000000000                       +000000000 08:40:00
           101 04.11.12 09:36:28,000000000                       04.11.12 16:36:22,000000000                       +000000000 06:59:54
           101 04.10.12 09:33:48,000000000                       04.10.12 20:36:12,000000000                       +000000000 11:02:24
    SQL>

  • How can I use counters to read the difference between two external pulse signals?

    I generated a pulse signal and sent it to a sensor which in turn gives me a pulse signal back. I need to read the time from which the sent the signal goes high to the time that the signal is returned. How can I read this? the diagram is attached
    Attachments:
    Timing_Diagram1.doc ‏256 KB

    There is vi called "Two Edge Separation Mesurement (NI-TIO).vi". In LV6.1 it is in "c:\...\LabVIEW 6.1\Examples\DAQ\Counter\ni-tio.llb".
    Unfortunately this function has no timeout. This means that your program will hang on if there are no pulses. I have attached an improved version of this vi with a timeout(sorry for the french text in the description). There are also some other improvements like the calculation of the edge separation in seconds (not only clock counts).
    This function will only work with NI-TIO cards (like 660x).
    Attachments:
    Two_Edge_Separation_Measurement_with_Timeout_(NI-TIO).vi ‏103 KB

  • How can I use counters to read the difference between two expernal pulse signals?

    I generated a pulse signal and sent it to a sensor which in turn gives me a pulse signal back. I need to read the time from which the sent the signal goes high to the time that the signal is returned. How can I read this? the diagram is attached
    Attachments:
    Timing_Diagram1.doc ‏256 KB

    Hello;
    The way to accomplish that is by using one of the 660x boards, and configure the counter to do "Edge Separation Method".
    That method will increment the counter event count value every time a pulse comes into its source input. The counters only increments between the rising edge of the aux line and the rising edge of the gate. The current value of the counter is read when the counter is finished or an error occurs. You need to wire the out pulse to the AUX line, and the return pulse to the gate line of the counter.
    Hope this helps.
    Filipe A.
    Applications Engineer
    National Instruments

  • Find the difference in Two Tabels in two different schema?

    Hello Gurus,
    In DB which have millions of records -
    I have a Tabel A under Schema A and i have another Tabel B under Schema B and i have to pick the refrence from Tabel C under Schedma B altough my DB is same. Both of the tables (Table A and Table B) have exatly the same structure in both the schema and when i tried finding the difference like -
    Find the refrence from Table C and pick the values which are in Tabel A under Schema A but which are not present in the Tabel B under Schema B .
    I have to compare each and ever field value which is present under all of the columns under Table A to ever field value which is present under all of the columns under Table B.
    then wrote the following query-
    SELECT * FROM
    SchemaA.Table A t1,SchemaB.Table C t2
    WHERE t1.SV_ID = t2.SV_ID order by t1.SV_ID
    Minus
    Select * from SchemaB.TableB order by SV_ID
    Then this query is not working. And display the following error -
    "query block has incorrect number of result columns"
    Even both of the tables have the same column's and same structure.
    Kindly help me .
    Looking forward for some guidance -
    Thanks in advance.

    1-There are some 70 Columns in both of the tables so thats why i don't want to use the query based on columns as it will involve writing all of the columns.
    2- By using the query something like -
    select <column_name(s)> from table1
    minus
    select <column_name(s)> from table2, table1
    where <condition>
    It is throwing the error -ORA-01789: query block has incorrect number of result columns
    3- Using the query
    SELECT t1.*
    FROM SchemaA.TableA t1,SchemaB.TableC t2
    WHERE t1.SV_ID = t2.SV_ID
    MINUS
    SELECT t3.*
    FROM SchemaB.TableB t3
    order by SV_ID
    It gives me the reuslt but when i corss check them individually in both of the tables then there is no difference.
    4- SELECT t1.* FROM
    SchemaA.Table A t1,SchemaB.Table C t2
    WHERE t1.SV_ID = t2.SV_ID order by t1.SV_ID
    Minus
    Select * from SchemaB.TableB order by SV_ID
    Query is not working.
    Kindly help me to find the difference between two tables , column by column based on the condition both of the tables have the same SV_ID.

  • How can I add a column to show the website (web site) of an rss feed?

    I've got a lot of rss feeds coming into thunderbird. I organized some into folders, but also have a folder for several rss feeds as they adress the same topics and I prefer not to browse through 25 separate folders. However, the sender doesn't always make it clear which blog it's from, so I'd like to add a column which shows the website of the rss feed. (sender is often: [email protected], and there are different writers for a single blog who themselve have their own blog as well, so can't sort on sender name either).
    When opening an rss feed, it displays in the header: web site (with the space) and then the web adress. This is what I'd like to be able to see in my columns.
    I didn't see an option yet to customize columns, nor did I find an addon that does this.
    Does anyone know a solution?

    Thanks, that seems to work. I'm struggling to place the lightbox at the top of the page however - when I click the trigger I want the menu image to display anchored to the top of the page, but there's always a gap as it centers the image. Help is appreciated!

  • How do I create a header in the response table for a column I want to use that is not on the form it

    Example: My form has 10 fillable questions.  The Response table uses 10 columns to show the answers to those questions.  I would like to use 3 more columns to record internal information.  How do I insert the header titles?

    Hi,
    You can go to Responses view tab, focus on your last column header and then click menu Table->Add Column After. Or you click + button at the end of table - refer below image.
    I am not clear your question "How do I insert the header titles?" Do you mean you want to use your form title as data value in each cell in the column? If yes, you can set formula in the column following below steps.
    1. Click +Add a Row button
    2. Focus on the cell on column L (I assume you want to set your formular on this column).
    3. Input ="your form title" into the cell
    Then after you received a submission, the form title would display in the related cell in each row.
    Hope it will help you.
    Thanks,
    Ying

  • HT1351 I have a apple ipod touch but recently I restored all the settings, as well as the applications. But now I am not able to add songs to it. There is blank screen that shows the symbol like to connect to itunes first. I'm not able to use that... Plea

    I have a apple ipod touch but recently I restored all the settings, as well as the applications. But now I am not able to add songs to it. There is blank screen that shows the symbol like to connect to itunes first. I'm not able to use that... Please help

    The iPod's firmware is corrupt. You'll need to restore it again in iTunes. If necessary, place the iPod in recovery mode for iTunes to recognize the device. Use the instructions in this Apple support document to walk you through the process of placing the iPod Touch into recovery mode.
    iOS: Unable to update or restore
    B-rock

  • How do I reinstate the information bar that shows the prevention of opening a pop-up window?

    After Firefox opened the information bar telling me they blocked a pop-up window I inadvertently clicked the option link and deleted the information bar from coming up again.
    How do I reinstate the information bar that shows the prevention of opening a pop-up window?
    == This happened ==
    Just once or twice
    == I clicked the option link and selected the "do not show this again" option

    I set browser.popups.showPopupBlocker to false, and information bar still appears.
    When I also set privacy.popups.showBrowserMessage to false, it doesn't appear.
    To test, whether the information bar appears, I use
    [http://www.popuptest.com/popuptest3.html]
    So, set to true preferences
    privacy.popups.showBrowserMessage
    and
    browser.popups.showPopupBlocker
    Both of them!!!
    Does it help you?

Maybe you are looking for

  • Auto update a UDF in SAP B1

    Hi, I am new to SAP Business One. I need to update automatically the value of a UDF. The value will be calculated using data from related tables. Calculation includes -summation, divide and minus etc. Could you provide guide. For example a new UDF sh

  • How to install windows 8 on iMac computer

    hi there How do I "install" win 8 on my iMac? The options given are only "setup.exe" on the original disk.

  • How do I center text in a JTextArea?

    Easy question! how can I center text being fed into a JTextArea? Thank you!!!!!!!!!!!

  • How do I get my music from iPhone to iCloud?

    How do I get all of my songs from my iphone4 to iCloud. These are not iTunes purchased songs, just ones I synced from my laptop to my phone, about 600 songs. I would like to be able to access them from my iPad. I don't want to use the space on my iPa

  • Using PM for Desktop Icon Preservation

    Using ZCM 10.1.3 I have a user who very frequently has her carefully placed desktop icons all pushed over to the left and she has to resort and reposition. We have just failed trying to find why this happens, but it occurred to me that I could use PM