median as pivot format

Hello

I need to get the MEDIAN for the last 10 dlvry_wk as well as for the last 4 - but I need this in a pivot format. I know how to make a pivot, but I do not know how to add the median for the pivot.

The example data:
CREATE TABLE ORDERS (
FRUIT VARCHAR2(25),
DLVRY_WK NUMBER(6),
ORDERS NUMBER(5));

INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('PEACHES',201235,2);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('PEACHES',201231,1);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('PEACHES',201232,2);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('PEACHES',201237,2);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('PEACHES',201238,2);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('PEACHES',201242,5);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('PEACHES',201234,1);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('PEACHES',201236,2);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('PEACHES',201241,3);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('PEACHES',201243,3);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('PEACHES',201239,2);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('GRAPES',201232,1);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('GRAPES',201240,1);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('GRAPES',201237,2);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('GRAPES',201241,2);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('ORANGES',201240,4);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('ORANGES',201238,2);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('ORANGES',201239,1);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('ORANGES',201232,3);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('ORANGES',201231,1);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('ORANGES',201237,1);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('ORANGES',201235,1);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('ORANGES',201234,4);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('ORANGES',201242,3);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('APPLES',201236,7);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('APPLES',201240,4);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('APPLES',201241,11);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('APPLES',201237,2);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('APPLES',201234,6);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('APPLES',201232,7);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('APPLES',201238,1);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('APPLES',201243,3);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('APPLES',201239,4);
INSERT INTO ORDERS (FRUIT,DLVRY_WK, ORDERS) VALUES ('APPLES',201242,4);
The pivot query I have is:
select fruit
, NVL(wk34_atc,0) as wk34_atc
, NVL(wk35_atc,0) as wk35_atc
, NVL(wk36_atc,0) as wk36_atc
, NVL(wk37_atc,0) as wk37_atc
, NVL(wk38_atc,0) as wk38_atc
, NVL(wk39_atc,0) as wk39_atc
, NVL(wk40_atc,0) as wk40_atc
, NVL(wk41_atc,0) as wk41_atc
, NVL(wk42_atc,0) as wk42_atc
, NVL(wk43_atc,0) as wk43_atc
from orders
pivot  (max(orders) as atc
for dlvry_wk in (
   '201234' as wk34
,  '201235' as wk35
,  '201236' as wk36
,  '201237' as wk37
,  '201238' as wk38
,  '201239' as wk39
,  '201240' as wk40
,  '201241' as wk41
,  '201242' as wk42
,  '201243' as wk43));
And I want the results to look like this - where m10 is the median for the past 10 weeks and m4 is the median for the last 4:
     34     34  35  36     37     38     39     40     41     42     43     m10     m4     
ORANGES     4     1     0     1     2     1     4     0     3     0     1     1.5
PEACHES     1     2     2     2     2     2     0     3     5     3     2     3
GRAPES     0     0     0     2     0     0     1     2     0     0     0     0.5
APPLES     6     0     7     2     1     4     4     11     4     3     4     4

How you calculate the median, you change nulls to 0 before making the median. This means that you need to "densify" the data.

with dense_data as (
  select fruit, dlvry_wk,
  row_number() over(partition by fruit order by dlvry_wk desc) rn
  from (select distinct fruit from orders),
  (select distinct DLVRY_WK from orders)
), all_data as (
  select fruit, dlvry_wk,
  nvl(orders, 0) orders,
  median(case when rn <= 4 then nvl(orders, 0) end) over(partition by fruit) last_4,
  median(case when rn <= 10 then nvl(orders, 0) end) over(partition by fruit) last_10
  from dense_data
  left join orders using(fruit, dlvry_wk)
)
select * from all_data
pivot  (max(orders) as atc
for dlvry_wk in (
   '201234' as wk34
,  '201235' as wk35
,  '201236' as wk36
,  '201237' as wk37
,  '201238' as wk38
,  '201239' as wk39
,  '201240' as wk40
,  '201241' as wk41
,  '201242' as wk42
,  '201243' as wk43));

FRUIT    LAST_4 LAST_10 WK34_ATC WK35_ATC WK36_ATC WK37_ATC WK38_ATC WK39_ATC WK40_ATC WK41_ATC WK42_ATC WK43_ATC
-------- ------ ------- -------- -------- -------- -------- -------- -------- -------- -------- -------- --------
APPLES        4       4        6        0        7        2        1        4        4       11        4        3
ORANGES     1.5       1        4        1        0        1        2        1        4        0        3        0
PEACHES       3       2        1        2        2        2        2        2        0        3        5        3
GRAPES      0.5       0        0        0        0        2        0        0        1        2        0        0 

Tags: Database

Similar Questions

  • Query to retrieve the data in a sort of pivot format.

    Hello gurus of PL/SQL,.
    I need to extract the data in a format some tables using the join condition. When I extracted using simple join then it turn around individual records based on condition, but want it in a particular format only.

    When run the query-

    Select sf. JOIN_DT_KEY, sd. CLS, sd. CLS_STATUS, sf. CLS_QTY, sf. CLS_FEES,
    SF. TOTAL_AMT
    of stud_det_fact sf, sd, cd class_dim stud_tag_dim
    where sf.stud_dim_key = sd.stud_dim_key
    AND sf.alloc_cls_dim_key = d.alloc_cls_dim_key AND sd. CLS_STATUS IN
    ("BA", "BSC", "MA", "MBA", "SMC")
    AND af. JOIN_DT_KEY between 20120404 and 20120410 ORDER BY sd. CLS

    That the data is returned in the following format:

    JOIN_DT_KEY CC CLS_STATUS CLS_QTY CLS_FEES TOTAL_AMT
    1 20120404 BA 1050000 12 875 WORK
    2 20120404 BA 125 12 150000 CAPITAL
    3 20120404 BA 1050000 12 875 WORK
    4 20120404 BSC 4 10 4000 CAPITAL
    5 20120404 BSC 3 10 3000 CAPITAL
    6 20120404 MY 1050000 12 875 WORK
    7 20120404 MY 1000 12 1200000 WORK
    8 20120404 MBA 1200000 12 1000 ALGO
    9 20120404 MBA 1200000 12 1000 ALGO

    But I want to in the format after using query itself.

    JOIN_DT_KEY WORK of CLS (Qty) WORK (Amt) CAPITAL (Qty) CAPITAL (Amt) (Qty) ALGO ALGO (Amt) NATURAL (Qty) NATURAL (Amt) GrandTotal (Qty) GrandTotal (Amt)
    20120404 1750 2100000 125 150000 0 0 0 0 1875 2250000 BA
    0 0 7 7000 BSC 0 0 0
    0 7 7000
    MY 1875 2250000 0 0 0 0 0
    0 1875 2250000
    0 0 0 0 2000 2400000 MBA 0
    2400000 2000 0
    3625 total 4350000 132 157000 2000 2400000 0
    0 6907000 of 5757

    How to change the query to get the hinge of the sort of result, kindly help me. I appreciate all your help in advance.

    Thank you and I really apperciate your help.

    Note:-attached, this is the example of excel sheet.

    Published by: user555994 on April 26, 2012 03:43

    I suggest that to take advantage of the Oracle version you have.

    To start, I took your first message and created a few sample data. This is not your original tables, but it allows us to compare the results.

    drop table T;
    create table T(JOIN_DT_KEY, CLS, STATUS, QTY, FEES, AMT) as select
    TO_DATE('20120404', 'YYYYMMDD'), 'BA', 'WORKING', 875, 12, 1050000 from dual union all select
    TO_DATE('20120404', 'YYYYMMDD'), 'BA', 'CAPITAL', 125, 12, 150000 from DUAL union all select
    TO_DATE('20120404', 'YYYYMMDD'), 'BA', 'WORKING', 875, 12, 1050000 from dual union all select
    TO_DATE('20120404', 'YYYYMMDD'), 'BSC', 'CAPITAL', 4, 10, 4000 from DUAL union all select
    TO_DATE('20120404', 'YYYYMMDD'), 'BSC', 'CAPITAL', 3, 10, 3000 from dual union all select
    TO_DATE('20120404', 'YYYYMMDD'), 'MA', 'WORKING', 875, 12, 1050000 from DUAL union all select
    TO_DATE('20120404', 'YYYYMMDD'), 'MA', 'WORKING', 1000, 12, 1200000 from DUAL union all select
    TO_DATE('20120404', 'YYYYMMDD'), 'MBA', 'ALGO', 1000, 12, 1200000 from DUAL union all select
    TO_DATE('20120404', 'YYYYMMDD'), 'MBA', 'ALGO', 1000, 12, 1200000 from DUAL;
    

    To test the following against your data, is taken your SELECT in the right place or create a view and plug the display where I have the table "T".

    Now, here's how to get everything except the last line "Total":

    select *
    from (
      select JOIN_DT_KEY, CLS, STATUS, QTY, AMT from t
    )
    PIVOT(SUM(QTY) QTY, SUM(AMT) AMT
    for STATUS in('ALGO' as ALGO,'CAPITAL' as CAPITAL,'DMA' as DMA,'NATURAL' as natural,'WORKING' as WORKING));
    
    JOIN_DT_KEY        CLS ALGO_QTY ALGO_AMT CAPITAL_QTY CAPITAL_AMT DMA_QTY DMA_AMT NATURAL_QTY NATURAL_AMT WORKING_QTY WORKING_AMT
    ------------------ --- -------- -------- ----------- ----------- ------- ------- ----------- ----------- ----------- -----------
    2012/04/04 00:00   BSC                             7        7000
    2012/04/04 00:00   BA                            125      150000                                                1750     2100000
    2012/04/04 00:00   MBA     2000  2400000
    2012/04/04 00:00   MA                                                                                           1875     2250000
    

    To get the latest "Total" line, you need to do another GROUP after the pivot.

    select JOIN_DT_KEY, nvl(CLS, 'Total') cls,
    SUM(ALGO_QTY) ALGO_QTY,
    SUM(ALGO_AMT) ALGO_AMT,
    SUM(CAPITAL_QTY) CAPITAL_QTY,
    SUM(CAPITAL_AMT) CAPITAL_AMT,
    SUM(DMA_QTY) DMA_QTY,
    SUM(DMA_AMT) DMA_AMT,
    SUM(NATURAL_QTY) NATURAL_QTY,
    SUM(NATURAL_AMT) NATURAL_AMT,
    SUM(WORKING_QTY) WORKING_QTY,
    SUM(working_AMT) working_AMT
    from (
      select JOIN_DT_KEY, CLS, STATUS, QTY, AMT from t
    )
    PIVOT(SUM(QTY) QTY, SUM(AMT) AMT
    for STATUS in('ALGO' as ALGO,'CAPITAL' as CAPITAL,'DMA' as DMA,'NATURAL' as natural,'WORKING' as WORKING))
    group by grouping sets((join_dt_key, cls), join_dt_key);
    
    JOIN_DT_KEY        CLS   ALGO_QTY ALGO_AMT CAPITAL_QTY CAPITAL_AMT DMA_QTY DMA_AMT NATURAL_QTY NATURAL_AMT WORKING_QTY WORKING_AMT
    ------------------ ----- -------- -------- ----------- ----------- ------- ------- ----------- ----------- ----------- -----------
    2012/04/04 00:00   BA                              125      150000                                                1750     2100000
    2012/04/04 00:00   MA                                                                                             1875     2250000
    2012/04/04 00:00   BSC                               7        7000
    2012/04/04 00:00   MBA       2000  2400000
    2012/04/04 00:00   Total     2000  2400000         132      157000                                                3625     4350000
    

    Using "grouping sets", you group by join_dt_key and cls (which the PIVOT is already done, but you have to do it again) and then by join_dt_key to get the total line.

    Note: I suppose you want a total by date. If you want just a total general for all dates, then Group Rollup (join_dt_key, cls)).

    I hope it's accurate and useful.

  • Graphic Pivot format

    Hello

    Is it possible to change the color of the bar and line graphs in pivot charts? Is there a graphics option to do this?

    Thank you

    Hello
    After clicking table rotated results you get chart and PivotTable. Below you can see the icon format chart data fifth icon from the left) where you can change the colors of the chart.

    Kind regards
    Srikanth

  • Pivot format column

    Hello

    I am facing problem with pivot table format.
    Created by double layer and displayed as show data as a percentage of the column.

    The percentage value is now view 89.1%, 100.0%.

    I want to duplicate layer column should display 100%.

    Please help me to format the column percentage in the area of measures.

    Thank you
    Poojak

    Hello

    Try changing maxDigits to '0 '.

    Kind regards
    Luko

  • SQL on PIVOT

    Hi all

    I'm writing a SQL that will generate the report, which shows the number of objects created by user on each month.

    Select the owner, to_char(created,'MON'), count (1) cnt

    from dba_objects

    Group by the owner, to_char(created,'MON') order of 1,2;

    The above query gives report. Now, I would like to see the report in more readable using PIVOT format. I made a request, but it is throwing error. Please help me to prepare properly.

    Select * from)

    Select owner, to_char (created, 'MY') in dba_object)

    pivot)

    Count (to_char (created, 'MY')) for to_char (created, 'MY') in ("JAN", "Feb", "MAR", "APR", "MAY", "June", "JULY", "August", "September", "OCT", "NOV", "DEC"))

    order of owner;

    Hello

    Please specify what error you get.

    And the version of database? Note- PIVOT is not supported on databases<>

    Please check if this helps-

    Select * from)

    Select owner, to_char(created,'MON') dba_objects dt)

    pivot)

    Count (1) (DT) in ("JAN", "Feb", "MAR", "APR", "MAY", "June", "JULY", "August", "September", "OCT", "NOV", "DEC")

    )

    order of owner;

  • Pivot on POV sheet removes the Excel formatting

    When I check "Use Excel formatting" tab display of SmartView 11.1.1.3, I can drill vertically on the dimensions of the spreadsheet and Excel will retain data in digital form.

    When I pivot a dimension on the sheet of the POV, the formatting is removed.

    This is by design, is this a bug or I still do something stupid? My experience suggests the last, but you never know.

    Kind regards

    Cameron Lackpour

    This is normal. Formatting is not retained on a pivot.

  • Column for the 11 g function Pivot number formatting

    Hello

    I have a question regarding the formatting of data in a PivotTable.
    I have the pivot:

    Select * from
    (
    Select
    ENAME,
    EMPLOYMENT,
    Sal Sum (SAL)
    from EMP
    Group by ename, job
    )
    Pivot
    (
    Sum (SAL) as salary for (JOB) in ('SELLER', 'MANAGER')
    )

    and the results:
    -------------------------------------------------------------------------------

    'SELLER' _SALARY 'MANAGER' _SALARY ENAME
    JONES - 2975
    ALLEN 1600-
    FORD-
    CLARK - 2450
    MILLER-
    WARD - 1250


    How can I format the results of the Pivot to have salary format as for thousands comma ',' as: 'select TO_CHAR(500000000000,'999G999G999G999G999G999G990','NLS_NUMERIC_CHARACTERS=.,') from dual; Is this possible?

    I can't use to_char() function is central, because it is not an aggregate work so TO_CHAR (SUM (.)) is not possible and the base SUM (TO_CHAR (.)) because its a mistake?


    Help, please.


    Kind regards
    Alex
    select
    ENAME,
        TO_CHAR("'SALESMAN'_SALARY",'999G999G999G999G999G999G990','NLS_NUMERIC_CHARACTERS=.,') salary
    from
    (
       select
       ENAME,
       JOB,
       sum(SAL) sal
       from EMP
       group by ename, job
    )
    pivot
    (
      sum(sal) as Salary for (JOB) in ('SALESMAN','MANAGER')
    )
    
  • How to format my tables (Dynamics, pivots, etc.) by using a css or javascript class? Help.

    Hi all

    I use OBIEE 11 G.

    I create my own skin or according to an alternative css class to format my tables in a specific way.

    Since it is a prototype, formatting each in the dashboard is not an alternative, since it must do again and again.

    The goal is to have attached to my skin (I named s_prototipo and sk_prototipo) and if I change the skin, the dashboard will also change...

    The skin is in place and functioning (already changed the logo, the format of the bars on top, etc.), but I can't find how can I do with PivotTables.

    Question: How can I format my paintings with a skin?

    An example or idea?


    I tried to look at the elements but it is working, there is no specific category that I would find it through...


    Best regards and many thanks,

    Frederico.

    To change the default style of tables and PivotTables, you can go to:

    (1) views.css

    (2) change the right css properties, such as: PTCHC0, 1, 2, 3...

    You can then change the color, background image, etc. etc. and you will get the table format has changed to the default skin.

    Kind regards

    Frederico.

  • OBI10G - Format a specific cell in a pivot table dynamic

    Hello

    I have a question about the format of the specific cells in a PivotTable. Take a look at this image:

    http://ImageShack.us/f/405/PivotTable.jpg/

    This PivotTable is composed of 3 combined applications. The last 2 lines where you can read 'Total Mensal' and 'Total annual' built 'manually '. My question is: if I want to format only these 2 cells ('Total Mensal' and 'Total annual', let's say I want to have the text in bold) question: How can I format only these 2 cells?

    I know that with CSS, I can create my own classes, but that would apply to all column "Origem" if I'm not mistaken. So I guess I have to use javascript to change these cells in particular or is there another way? And if I have to use javascript are some examples that I can see how to use it? I have not touched in javascript for some time now, so I'm really rusty and have some sort of example of what I want to do would really help.

    Thank you

    Hello

    Here assuming that 'Total Mensal' and "Total annual" are columns of static text and they are part of the "Origem" column, then you can try below:

    -Change the format of data in the column Origem from plain text to HTML.
    -Change the static of "Total Mensal" to "Total Mensal < /b > < b >.
    -Change the static of 'Total annual' to 'Total annual < /b > < b >'

    Now, these two static texts displayed in "BOLD".

    Thank you

  • Calculates percentage columns in dynamic loose pivot table formatting in Excel

    I have a simple report built using PivotTable (OBIEE 11.1.1.5.0)


    1 measure and 1 dimension using PivotTable. and I have reproduced the metric column and change to the % column. (Display data as a percentage of the column). So far so good. Here's the snapshot

    http://Tinypic.com/r/2s14xa9/7

    Now I download the report in excel and all % values are messy. Here's what it looks like

    http://Tinypic.com/r/bede90/7

    I tried to play with the data formats etc... nothing works... I can't add a column to the metric column format as this will impact the derived column %.

    Is this a bug? Pointers...

    Thank you

    Hello
    I have recovery SR to My Oracle team they said this is to improve and provide the best formatting in Excel. the office 2010 and the next realease obiee11.1.1.6 is supported

    Thank you

    Deva

  • Problem with the conditional formatting according to pivot

    Hi all

    OBIEE version 10.1.3.3.3
    I have a measurement with the following condition column

    Measure:
    -Case when DATE < VALUEOF ("CC_DATE") and the actual amount of another amount, then end

    Here CC_DATE is variable repository

    I created a column duplicated by the following condition

    Double column:
    BOX WHEN Date < VALUEOF("CC_DATE") then end if 0-1

    And try to use duplicate column in a measure of conditional formatting, however I do not succeed

    any suggestion to solve this problem?


    Thank you
    SMA

    SMA,

    Check the link below if you want to put in shape measures based on the intersection of the dimension. A variant of the above link.
    http://www.obinotes.com/2010/10/format-cellmeasure-value-based-on-row.html

    J
    -bifacts
    http://www.obinotes.com

  • Save pictures to the ENVI format

    Hello

    I do the image acquisition using a PCI 1426 acquisition card and the requirement, I have save the images to the ENVI format. When I searched for information on the ENVI format I found this link: http://groups.google.com/group/comp.lang.idl-pvwave/browse_thread/thread/e29deda284a727f1?pli=1

    Apparently, there is a header file in which the information of the captured image are registered. The device that I use is a line scan camera and capture energy strips any (not exactly what it is). What I need to know is, can I save the images captured in ENVI format? If I can, how can I write the header for the file information?

    Thank you

    Sandeep

    I think that I finally understand how to work with / create files Environment. In my application, I have a camera online scan that will scan/capture only a row of pixels in an image. It's like a normal camera, but the resolution of the image in terms of the complete image is an X by 1. In my case 800 X 1. The camera returns actually a 800 X 270 resolution image, but what represents the 270 is 270 bands of energy that the camera caught for that row of pixels. If the camera has captured 270 each resolution 800 X 1-band information.

    Now what happens after this is the case, the camera pivots from one (very small) angle and captures an another 270 information strips. How many groups is captured.

    Suppose that I captured 270 band information in 300 different positions of the camera. That is to say an image of 800 X 270, turn some angle to take another image of 800 X 270, turn a few angle etc... 300 times.

    Now, the ENVI header file should have the information

    Description Environment = {created ENVI file [3/17/20093:47 PM]}

    Samples = 800

    Lines = 300

    Bands = 270

    header offset = 0

    file type = standard Environment

    data type = 12

    Interleave = bil

    sensor type = unknown

    byte order = 0

    wavelength units = unknown

    Allows to observe some important fields from the list above

    (a) samples - it's the horizontal resolution of the image is captured. (800 in the resolution of 800 X 270)

    (b) lines - this represents the number of frames you available for capture. By lines of what this means is the number of lines (rows) that will be present in the final image that we will build with all the information you entered.

    (c) bands - this represents the number of bands of energy that the camera captures in each image, in this example it's 270 (the second part of the 800 X 270).

    (d) the offset of the header - this indicates if there is no header information before each image information.

    (e) type of file - standard Environment (explicit)

    (f) type of data - how many bits is taken to represent each pixel. My camera takes 12 bits to represent each pixel.

    (g) interleave - this indicates how the data is organized in the binary file. Certain amount of explanation is needed here, because there is confusion.

    Any ENVI file is actually two files, the header which has the above information and the second is the information of the image that is defined in the header file. So, the header file is like a map of the information of the image (in binary). Is what I'm doing, I capture a series of images and write a binary file. Thus, the first line in the binary file will be the first band of the first image, which is the first line of the 1st image of band. The second row will be the second strip of the first image that is in the 1st row of the second image of the band. The 270th line is the 270th band of the first image, which is the first line of the 270th band image. 271st ranked is the first group of the second captured image will be the second line of the 1st image of band etc.

    Therefore, we receive 270 (number of bands) resolution images 800 X 300 of 300 images in resolution 800 X 270. Each of the final pictures will be a bunch of information value. A row of PIX of each of the 300 images form a final image.

    This link has a lot more information about Environmental format images http://groups.google.com/group/comp.lang.idl-pvwave/browse_thread/thread/e29deda284a727f1

    There are many more parameters as those explained above, but the above are sufficient to start.

  • PIVOT of several columns

    Hi gurus,

    I have a table, for which I am trying to get a given for a person_id in

    "person_id / Group1 / Group1_end_dt / Group1_sts / group2 / Group2_end_dt / Group2_Sts ' format. Is there a way to achieve a single line for a person, using an analytical function?

    Could you please help?

    Create Table my_tab (person_id number, group_num number, group_end_dt Date, group_sts Varchar2 (10));

    /

    insert into my_tab (PERSON_ID, GROUP_NUM, GROUP_END_DT, GROUP_STS)

    values (100, 1, to_date (10 January 2015 ', 'dd-mm-yyyy'), 'MET');

    insert into my_tab (PERSON_ID, GROUP_NUM, GROUP_END_DT, GROUP_STS)

    values (100, 2, to_date (11 January 2015 ', 'dd-mm-yyyy'), "NOTM");

    insert into my_tab (PERSON_ID, GROUP_NUM, GROUP_END_DT, GROUP_STS)

    values (200, 1, to_date (10 January 2015 ', 'dd-mm-yyyy'), "NOTM");

    insert into my_tab (PERSON_ID, GROUP_NUM, GROUP_END_DT, GROUP_STS)

    values (200, 2, to_date (11 January 2015 ', 'dd-mm-yyyy'), 'MET');

    with

    my_tab as

    (select person_id 100, 1 group_num, to_date('01-10-2015','dd-mm-yyyy') group_end_dt, group_sts 'PUTS' of all the double union)

    Select 100.2, to_date (January 11, 2015 "," dd-mm-yyyy'), 'NOTM' from dual union all

    Select 200,1, to_date (January 10, 2015 "," dd-mm-yyyy'), 'NOTM' from dual union all

    Select 200,2, to_date (January 11, 2015 "," dd-mm-yyyy'), 'PUTS' from dual

    )

    Select *.

    of my_tab

    Pivot (Max (group_end_dt) end_date, max (group_sts) at group_num (as group_one, 2 group_two 1) of the Statute)

    PERSON_ID GROUP_ONE_END_DATE GROUP_ONE_STATUS GROUP_TWO_END_DATE GROUP_TWO_STATUS
    100 10/01/2015 MET 01/11/2015 NOTM
    200 10/01/2015 NOTM 01/11/2015 MET

    Concerning

    Etbin

  • Photoshop 3d file format could not parse this file.

    Hello

    I have a problem and hope someone can solve it

    Thus,.

    When I do a text in photoshop cs6 do it it 3d it says "Photoshop 3d file format could not parse this file."

    2016-09-01_12-32-14.jpgas shown here

    solve everything?

    Thank you

    You have all updates installed cs6? CS6 is very buggy without them. You should be in perpetual perpetual Windows, 13.0.6 Mac 13.0.1.3 or 13.1.2 version subscription CS6.  If you are trying to reset you tools of Photoshop. If that does not solve your problem, try resetting you Photoshop preferences.  You can post your help menu > system information.

    Adobe Photoshop Version: 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00) x 64

    Operating system: Windows 8 64-bit

    Version: 6.2

    System architecture: Intel CPU Family: 6, model: 13, Stepping: 7 with MMX, entire SSE, SSE, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading FP

    Physical processor count: 12

    Number of logical processors: 24

    Processor speed: 1995 MHz

    Built-in memory: 40886 MB

    Free memory: 34774 MB

    Memory available to Photoshop: 37123 MB

    Memory used by Photoshop: 85%

    Tile image size: 1028K

    Image cache level: 6

    OpenGL drawing: enabled.

    OpenGL drawing mode: Advanced

    OpenGL allows Normal Mode: true.

    OpenGL allows Advanced Mode: true.

    OpenGL allows old GPU: not detected.

    OpenCL Version: 2.1

    OpenGL Version: 2.1

    Texture size video Rect: 16384

    OpenGL memory: 2048 MB

    Video card provider: NVIDIA Corporation

    Renderer video card: Quadro 4000/PCIe/SSE2

    Display: 2

    Limits of the display: top = 0, =-1360 on the left, low = 768, right = 0

    Display: 1

    Limits of the display: top = 0, left = 0, low = 1080, right = 1920

    Video card: 1

    Graphics card: graphics NVIDIA Quadro 4000 card

    Driver version: 21.21.13.6909

    Driver date: 20160801000000.000000 - 000

    Video card driver: C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispwi.inf_amd64_e349a5eef06eda1f\nvd3d umx,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispwi.inf_amd64_e349a5eef06eda1f\nv wgf2umx,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispwi.inf_amd64_e349a5eef06eda1 f\nvwgf2umx,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispwi.inf_amd64_e349a5eef06 eda1f\nvwgf2umx,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispwi.inf_amd64_e349a5e ef06eda1f\nvd3dum,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispwi.inf_amd64_e349a 5eef06eda1f\nvwgf2um C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispwi.inf_amd64_e3 49a5eef06eda1f\nvwgf2um,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispwi.inf_amd64 _e349a5eef06eda1f\nvwgf2um

    Video mode: 1920 x 1080 x 4294967296 colors

    Legend of the video card: NVIDIA Quadro 4000

    Memory: 2048 MB

    Serial number: 90970090970448917498

    The application folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64-bit).

    Temporary file path: C:\Users\JOHNJM~1\AppData\Local\Temp\

    Zero Photoshop has async I/O active

    Scratch the volumes:

    F:\, 465.2 G, 177,7 free G

    C:\, 224.2 G, 128.7 free G

    Required plugins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit) \Required\

    Main Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit) \Plug-ins\

    Additional Plug-ins folder: C:\Photoshop64 plug-Ins\

    Installed components:

    ACE.dll ACE 2012/06/05-15: 16: 32 66,507768 66.507768

    adbeape.dll Adobe EPA 2012/01/25-10: 04:55 66.1025012 66.1025012

    AdobeLinguistic.dll Adobe linguistic Library 6.0.0

    AdobeOwl.dll Adobe Owl 2012/09/10-12: 31: 21 5.0.4 79.517869

    AdobePDFL.dll PDFL 2011/12/12-16: 12: 37 66,419471 66.419471

    Adobe AdobePIP.dll 7.0.0.1686 product improvement program

    AdobeXMP.dll Adobe XMP Core 2012/02/06-14: 56:27 66,145661 66.145661

    AdobeXMPFiles.dll Adobe XMP files 2012/02/06-14: 56:27 66,145661 66.145661

    AdobeXMPScript.dll Adobe XMP Script 2012/02/06-14: 56:27 66,145661 66.145661

    adobe_caps.dll Adobe CAPS 6,0,29,0

    AGM.dll AGA 2012/06/05-15: 16: 32 66,507768 66.507768

    ahclient.dll AdobeHelp Dynamic Link Library 1,7,0,56

    aif_core.dll AIF 3.0 62.490293

    aif_ocl.dll AIF 3.0 62.490293

    aif_ogl.dll AIF 3.0 62.490293

    Amtlib.dll AMTLib (64-bit) 6.0.0.75 (BuildVersion: 6.0;) Brand: Monday, January 16, 2012 18:00) 1.000000

    ARE.dll ARE 2012/06/05-15: 16:32 66,507768 66.507768

    Axe8sharedexpat.dll AXE8SharedExpat 2011/12/16-15: 10: 49 66,26830 66.26830

    AXEDOMCore.dll AXEDOMCore 2011/12/16-15: 10: 49 66,26830 66.26830

    Bib.dll BIB 2012/06/05-15: 16: 32 66,507768 66.507768

    BIBUtils.dll BIBUtils 2012/06/05-15: 16: 32 66,507768 66.507768

    boost_date_time.dll product DVA 6.0.0

    boost_signals.dll product DVA 6.0.0

    boost_system.dll product DVA 6.0.0

    boost_threads.dll product DVA 6.0.0

    CG.dll NVIDIA Cg Runtime 3.0.00007

    cgGL.dll NVIDIA Cg Runtime 3.0.00007

    Adobe CIT.dll CIT 2.1.0.20577 2.1.0.20577

    CoolType.dll CoolType 2012/06/05-15: 16: 32 66,507768 66.507768

    data_flow.dll AIF 3.0 62.490293

    dvaaudiodevice.dll product DVA 6.0.0

    dvacore.dll product DVA 6.0.0

    dvamarshal.dll product DVA 6.0.0

    dvamediatypes.dll product DVA 6.0.0

    dvaplayer.dll product DVA 6.0.0

    dvatransport.dll product DVA 6.0.0

    dvaunittesting.dll product DVA 6.0.0

    Dynamiclink.dll product DVA 6.0.0

    ExtendScript.dll ExtendScript 2011/12/14-15: 08: 46 66,490082 66.490082

    FileInfo.dll Adobe XMP FileInfo 2012/01/17-15: 11: 19 66,145433 66.145433

    filter_graph.dll AIF 3.0 62.490293

    hydra_filters.dll AIF 3.0 62.490293

    icucnv40.dll International Components for Unicode 2011/11/15-16: 30:22 Build gtlib_3.0.16615

    icudt40.dll International Components for Unicode 2011/11/15-16: 30:22 Build gtlib_3.0.16615

    image_compiler.dll AIF 3.0 62.490293

    image_flow.dll AIF 3.0 62.490293

    image_runtime.dll AIF 3.0 62.490293

    JP2KLib.dll JP2KLib 2011/12/12-16: 12: 37 66,236923 66.236923

    libifcoremd.dll Intel Visual Fortran compiler 10.0 (A patch)

    libmmd.dll Intel(r) C Compiler, Intel C++ Compiler, Intel Fortran compiler 12.0

    LogSession.dll LogSession 2.1.2.1681

    mediacoreif.dll product DVA 6.0.0

    MPS.dll MPS-2012/02/03-10: 33: 13 66,495174 66.495174

    msvcm80.dll Microsoft® Visual Studio® 2005 8.00.50727.9268

    msvcm90.dll Microsoft® Visual Studio® 2008 9.00.30729.1

    MSVCP100.dll Microsoft® Visual Studio® 2010 10.00.40219.1

    msvcp80.dll Microsoft® Visual Studio® 2005 8.00.50727.9268

    MSVCP90.dll Microsoft® Visual Studio® 2008 9.00.30729.1

    msvcr100.dll Microsoft® Visual Studio® 2010 10.00.40219.1

    MSVCR80.dll Microsoft® Visual Studio® 2005 8.00.50727.9268

    Msvcr90.dll Microsoft® Visual Studio® 2008 9.00.30729.1

    pdfsettings.dll Adobe PDFSettings 1.04

    Adobe Photoshop CS6 CS6 Photoshop.dll

    Adobe Photoshop CS6 CS6 plugin.dll

    PlugPlug.dll Adobe CSXS branchezBranchez Dll Standard (64 bit) 3.0.0.383

    Adobe Photoshop CS6 CS6 PSArt.dll

    Adobe Photoshop CS6 CS6 PSViews.dll

    SCCore.dll ScCore 2011/12/14-15: 08: 46 66,490082 66.490082

    ScriptUIFlex.dll ScriptUIFlex 2011/12/14-15: 08: 46 66,490082 66.490082

    svml_dispmd.dll Intel (r) C Compiler, Intel C++ Compiler, Intel Fortran compiler 12.0

    TBB.dll Intel Threading Building Blocks for Windows 3, 0, 2010, 0406

    tbbmalloc.dll Intel Threading Building Blocks for Windows 3, 0, 2010, 0406

    updaternotifications.dll Adobe Updater Notifications Library 6.0.0.24 (BuildVersion: 1.0;) Brand: BUILDDATETIME) 6.0.0.24

    WRServices.dll WRServices Friday, January 27, 2012 13:22:12 build 0.17112 0,17112

    Required plugins:

    3D Studio 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Accented edges 13.0

    Adaptive wide-angle 13.0

    Angular Strokes 13.0

    13.1.2 on average (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Bas-relief 13.0

    BMP 13.0

    Chalk & Charcoal 13.0

    Charcoal 13.0

    Chrome 13.0

    Cineon 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    13.1.2 clouds (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    COLLADA 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Halftone color 13.0

    Color pencil 13.0

    CompuServe GIF 13.0

    Pencil tale 13.0

    Craquelure 13.0

    Crop and straighten Photos 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Crop and straighten Photos filter 13.0

    Hatch: 13.0

    Crystallize 13.0

    Cutting 13.0

    Features dark 13.0

    Deinterlacing 13.0

    DICOM 13.0

    Difference clouds 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Glow 13.0

    Move 13.0

    Dry brush 13.0

    Eazel acquire 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Embed watermark 4.0

    Entropy 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Extrude 13.0

    FastCore 13.1.2 routines (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Fiber 13.0

    Film Grain 13.0

    Gallery of filters 13.0

    Flash 3D 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Fresco 13.0

    Glass 13.0

    Scarlet contours 13.0

    Google Earth 4 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Grain 13.0

    Graphic pen 13.0

    Halftone Pattern 13.0

    HDRMergeUI 13.0

    IFF Format 13.0

    Outlines in ink 13.0

    JPEG 2000 13.0

    Flattening coefficient 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Blur of the lens 13.0

    Correction of the lens 13.0

    Lens Flare 13.0

    Liquefy 13.0

    Operation of Matlab 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    maximum 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Mean 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Measure Core 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Median 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Mezzotint 13.0

    Minimum 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    MMXCore Routines 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Mosaic tiles 13.0

    Multiprocessor support 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Neon 13.0

    Paper notes 13.0

    13.1.2 color NTSC (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Ocean Ripple 13.0

    13.0 oil painting

    OpenEXR 13.0

    Paint Daubs 13.0

    13.0 palette knife

    Patchwork 13.0

    Paths to Illustrator 13.0

    PCX 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Photocopy 13.0

    13.1.2 Photoshop 3D engine (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Photo filter package 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Pinch 13.0

    Pixar 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Plaster 13.0

    Plastic wrap 13.0

    PNG 13.0

    Pointillism 13.0

    Polar coordinates 13.0

    Portable Bit map 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Poster edges 13.0

    Radial blur 13.0

    Radiance 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    13.1.2 range (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Read watermark 4.0

    Crosslinking 13.0

    Ripple 13.0

    Rough Pastels 13.0

    Save for the Web 13.0

    13.1.2 ScriptingSupport

    Shear 13.0

    13.1.2 asymmetry (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Smart Blur 13.0

    Smudge Stick 13.0

    Solarize 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Splash 13.0

    Spherize 13.0

    Sponge 13.0

    13.0 sprayed strokes

    Stained glass 13.0

    Stamp 13.0

    SD 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    STL 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Sumi-e 13.0

    13.1.2 summons (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Targa 13.0

    Texture veneer 13.0

    13.0 tiles

    Torn edges 13.0

    Watch twirl 13.0

    Draft of 13.0

    Vanishing point 13.0

    13.1.2 variance (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    13.1.2 variations (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Viveza 2 2.1.21.12

    Water paper 13.0

    Watercolor of 13.0

    Wave 13.0

    Wavefront | OBJ 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    WIA support 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Wind 13.0

    Wireless Bitmap 13.1.2 (13.1.2 20130105.r.224 2013/01 / 05:23:00:00)

    Zig - zag 13.0

    Plug-ins option and third parties:

    Alias PIX 13.0 (13.0 20120315.r.428 2012/03 / 15:21:00:00)

    Analog Efex Pro 2 2.0.12.12

    BackgroundFilter 2.2.21.12

    Camera Raw 9.1.1

    Camera Raw Filter 9.1.1

    Color Efex Pro 4 4.3.24.12

    Contact II 12.0 (12.0x001) sheet

    CUR (cursor Windows) NO VERSION

    D3D/DDS 8, 55, 0109, 1800

    Dfine 2 2.2.21.12

    ElectricImage 13.0

    Face Control II 2.00

    Fine touch 3.25

    FineStructuresFilter 2.2.21.12

    GREYCstoration NO VERSION

    HDR Efex Pro 2 2.2.24.12

    HotPixelsFilter 2.2.21.12

    HSB/HSL 13.0

    ICO (Windows icon) NO VERSION

    FastPictureViewer Codec Pack 3.8.0.96 import

    JPEG XR 1, 1, 0, 0

    Lighting effects 13.0 Classic (13.0 20120315.r.428 2012/03 / 15:21:00:00)

    Merge HDR Efex Pro 2 2.2.24.12

    Nik selective collection tool 2.1.28

    NormalMapFilter 8.55.0109.1800

    Picture Package 12.0 (12.0x001)

    Noise v8 8.0.1.0

    ScriptListener 13.0

    SGI RGB 13.0 (13.0 20120315.r.428 2012/03 / 15:21:00:00)

    ShadowsFilter 2.2.21.12

    Sharpener Pro 3: (1) RAW Presharpener 3.1.21.12

    Sharpener Pro 3: output sharpener (2) 3.1.21.12

    Silver Efex Pro 2 2.2.24.12

    SkinFilter 2.2.21.12

    SkyFilter 2.2.21.12

    SoftImage 13.0 (13.0 20120315.r.428 2012/03 / 15:21:00:00)

    StarFilter Pro 3 3.0.5.1

    StrongNoiseFilter 2.2.21.12

    SuperPNG 2.0

    Wavefront RLA 13.0 (13.0 20120315.r.428 2012/03 / 15:21:00:00)

    Web 12.0 (12.0x001) Photo Gallery

    Plug-ins that could not load: NONE

    Flash:

    PaintersWheel

    Mini Bridge

    Photo Collage Toolkit

    Kuler

    Install TWAIN devices: NONE

  • How to add the symbol "%" in custom number Format obiee11g

    Hi all

    We can see the measure Null or empty as '-' using custom digital Format for numeric column no problems, the same logic that we must apply the measure column % too, how do I add the "%" symbol in the measurement column % custom digital, if anyone has the solution please share with us. Thank you

    under replace null as "-" works very well but we are unable to add the "%" symbol

    Table of edge/strike '-' so you can enter:

    #, ## 0.0 ;-#, ## 0.0 ;-

    Reference:

    http://www.clearpeaks.com/blog/Oracle-BI-EE-11g/setting-custom-data-format-in-OBIEE-answers

    http://total-bi.com/2010/10/replace-nulls-in-OBIEE-pivot-table/

    Thank you

    Deva

    Hello

    Fixed a problem.

    Solution:

    #,##0.0%;-#,##0.0%;-

    Thank you

    Deva

Maybe you are looking for