Help unpivoting? tables

Hello

I don't know if I used the right terminology, but let me explain my question, and feel free to add suggestions.

I'm trying to account for the data in a beautiful form of tables, but it will be 3 separate petitions. My first query list Categories and totals if:


Category Total
Category 150
Category 2200
Category 327

(This is the basic idea, the aura of the categories table more than that)

It's good, but now this is my second request when I break the totals that each user contributed. IF my results are currently as follows:

Category User Total
Category 1UserA40
Category 2UserA60
Category 1UserB10
Category 2UserB40
Category 2UserC100
Category 3UserC27

In order to combine these results ideally, it would look like this

Category Total UserA UserB UserC
Category 15040100
Category 22006040100
Category 3270027

I wonder if this kind of manipulation is possible in BI Publisher and how to on this matter, the end result is something like that or similar?

Thanks in advance

Yes, it is quite possible in BI Publisher.

Please take a look at this reference

http://docs.Oracle.com/CD/E23943_01/bi.1111/e22254/create_rft_bldr.htm#CHDDIIHA

I hope that you have installed the Office of BI Publisher model generator.

Tags: Business Intelligence

Similar Questions

  • help with table 1 d research

    Hey guys,.

    IM extracting data from a database and store it as a cluster of tables 1 d and now I want to find an element in a table using the table. After completing the two individual tables I try and seek help search 1 d table comparing to a fourth value has already generated. I was hoping to use the index of table 1 d search to enter something at this level since the other table.

    Table im trying to look for a currently a single element, the element im trying to find, but I get a - 1 return.

    can you see what I'm doing wrong here? is there something I don't understand not all table 1 d search?

    Thank you guys

    A common problem here is white space (spaces, tabs, and newline characters, etc.).  Try to use Whitespace Trim on the search string and the elements of the array before the search.

  • Please help, insert table 1 d 2d array

    Hello

    I'm trying to insert a line of table 1 d in table 2d, but it must be placed in the index as the starting point.

    For example, line 1, column 2. = starting point.

    I already wrote the program, but the result is not that I want to.
    As shown in the picture, a number of 6 in. (0.2), it must be placed in a yellow highlight.

    Please help and guide me.

    Hey fatty,

    using shift registers:

    It is perhaps a good idea to include some range checks, because it is not possible to replace the non-existing items...

  • Need help with table 2D

    Hi all

    I work with a 2D array that stores numerical values. Let me explain my problem with an example.

    Consider a 2D table as shown in the picture (input.png) attached. elements of the 2nd row are already present

    in the 1st row. How can I get a new 2d array in which the rows, which already are one subset of another

    rank, are not present, that is, each line has unique elements only. (output.png)

    Thank you very much for the help.

    Concerning

    Aveo


  • help with tables nested plsql

    Hi all
     DECLARE
       TYPE ty_valid_prfx_sfx_list_nt IS TABLE OF VARCHAR2 (3);
    
       t_vld_prx_sfx_list ty_valid_prfx_sfx_list_nt
             := ty_valid_prfx_sfx_list_nt ('JR',
                                           'SR',
                                           'I',
                                           'II',
                                           'III',
                                           'IV',
                                           'V',
                                           'RN',
                                           'MD',
                                           'MR',
                                           'MS',
                                           'DR',
                                           'MRS',
                                           'PHD',
                                           'REV',
                                           'ESQ') ;
       v_index      NUMBER;
       v_curr_val   VARCHAR2 (10);
       v_prev_val   VARCHAR2 (10);
       v_next_val   VARCHAR2 (10);
    BEGIN
       v_index := t_vld_prx_sfx_list.FIRST;
    
       WHILE v_index IS NOT NULL
       LOOP
          v_curr_val := t_vld_prx_sfx_list (v_index);
          v_prev_val := t_vld_prx_sfx_list.PRIOR (v_index);
          v_next_val := t_vld_prx_sfx_list.NEXT (v_index);
          DBMS_OUTPUT.put_line ('v_prev_val = ' || v_prev_val);
          DBMS_OUTPUT.put_line ('v_curr_val   = ' || v_curr_val);
    
          DBMS_OUTPUT.put_line ('v_next_val = ' || v_prev_val);
          --DBMS_OUTPUT.put_line (t_vld_prx_sfx_list (v_index));
          v_index := t_vld_prx_sfx_list.NEXT (v_index);
       END LOOP;
    END;
    Output:

    v_prev_val =
    v_curr_val = JR
    v_next_val =
    v_prev_val = 1
    v_curr_val = SR
    v_next_val = 1
    v_prev_val = 2
    v_curr_val = I have
    v_next_val = 2
    v_prev_val = 3
    v_curr_val = II
    v_next_val = 3
    v_prev_val = 4
    v_curr_val = III
    v_next_val = 4
    v_prev_val = 5
    v_curr_val = IV
    v_next_val = 5
    v_prev_val = 6
    v_curr_val = V
    v_next_val = 6
    v_prev_val = 7
    v_curr_val = RN
    v_next_val = 7
    v_prev_val = 8
    v_curr_val = MD
    v_next_val = 8
    v_prev_val = 9
    v_curr_val = MR
    v_next_val = 9
    v_prev_val = 10
    v_curr_val = MS
    v_next_val = 10
    v_prev_val = 11
    v_curr_val = DR
    v_next_val = 11
    v_prev_val = 12
    v_curr_val = rsam
    v_next_val = 12
    v_prev_val = 13
    v_curr_val = PhD.
    v_next_val = 13
    v_prev_val = 14
    v_curr_val = REV
    v_next_val = 14
    v_prev_val = 15
    v_curr_val = ESQ
    v_next_val = 15


    I'm getting an unexpected exit, please check and correct my program.
    expected output :
    'JR'
    'SR',
    'I',
    'II',
    'III',
    'IV',
    'V',
    'RN',
    'MD',
    'MR',
    'MS',
    'DR',
    'MRS',
    'PHD',
    'REV',
    'ESQ'
    
    fitst iteration :
    
    v_prev_val  = 
    v_curr_val  = 'JR'
    v_next_val  = 'SR',
    
    second iteration
    
    
    v_prev_val  = 'JR'
    v_curr_val  = 'SR'
    v_next_val  ='I'
    
    Third iteration:
    
    v_prev_val  = 'SR'
    v_curr_val  = 'I'
    v_next_val  ='II'
    
     .
     .
     .
     .
     .
    any help in this regard is highly appreciated




    Thank you
    Prakash P

    Published by: prakash on August 30, 2012 22:01

    An example:

    SQL> declare
      2          type TStringArray is table of varchar2(10);
      3          array TStringArray :=
      4                  new TStringArray( 'Tom', 'Commander', 'Harry', 'Sally' );
      5  begin
      6          for i in 1..array.Count loop
      7                  DBMS_OUTPUT.put_line( '***************' );
      8                  DBMS_OUTPUT.put_line( 'current='||array(i) );
      9
     10                  --//can also use: if array.Exists(i-1) then
     11                  if (i-1) >= 1 then
     12                          DBMS_OUTPUT.put_line( 'previous='||array(i-1) );
     13                  end if;
     14
     15                  --// can also use: if array.Exists(i+1) then
     16                  if (i+1) <= array.Count then
     17                          DBMS_OUTPUT.put_line( 'next='||array(i+1) );
     18                  end if;
     19
     20          end loop;
     21  end;
     22  /
    ***************
    current=Tom
    next=Commander
    ***************
    current=Commander
    previous=Tom
    next=Harry
    ***************
    current=Harry
    previous=Commander
    next=Sally
    ***************
    current=Sally
    previous=Harry
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    The Exist() method is also one that is usually used with associative arrays. Here is an example of associative array. Note that the table is sorted according to the index value. And the index value is a string - not a sequential integer.

    SQL> declare
      2          type TStringArray is table of varchar2(10) index by varchar2(20);
      3          array   TStringArray;
      4          i       varchar2(20);
      5  begin
      6          array('Intel Officer') := 'Tom';
      7          array('Mission Lead') := 'Commander';
      8          array('Radio in Head') := 'Harry';
      9          array('Military Officer') := 'Sally';
     10
     11          i := array.First();
     12          while array.Exists(i) loop
     13                  DBMS_OUTPUT.put_line( '***************' );
     14                  DBMS_OUTPUT.put_line( 'current: '||i||'='||array(i) );
     15
     16                  if array.Exists( array.Prior(i) ) then
     17                          DBMS_OUTPUT.put_line( 'prior: '|| array.Prior(i) );
     18                  end if;
     19
     20                  if array.Exists( array.Next(i) ) then
     21                          DBMS_OUTPUT.put_line( 'next: '|| array.Next(i) );
     22                  end if;
     23
     24                  i := array.Next(i);
     25          end loop;
     26  end;
     27  /
    ***************
    current: Intel Officer=Tom
    next: Military Officer
    ***************
    current: Military Officer=Sally
    prior: Intel Officer
    next: Mission Lead
    ***************
    current: Mission Lead=Commander
    prior: Military Officer
    next: Radio in Head
    ***************
    current: Radio in Head=Harry
    prior: Mission Lead
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    
  • An UNPIVOT table one column

    Hello

    I use Oracle 10 g.
    There is a table (example) TRANSPOSED, with the following structure
    create table transpose (
    name varchar2(20));
    
    Name
    ---------
    aa
    bb
    cc
    I need to display:
     aa  |  bb  |  cc
    How can I do with without unpivot?

    Thank you

    It is not clear whether you want 1 or 3 separate columns for your result set.

    3 columns:

    SQL> with transpose as (
      2  select 'aa' col from dual union
      3  select 'bb' from dual union
      4  select 'cc' from dual
      5  )
      6  --
      7  -- actual query:
      8  --
      9  select max(decode(rownum, 1, col)) col1
     10  ,      max(decode(rownum, 2, col)) col2
     11  ,      max(decode(rownum, 3, col)) col3
     12  from   transpose;
    
    CO CO CO
    -- -- --
    aa bb cc
    
    1 row selected.
    

    If you only want a column, see: http://www.oracle-base.com/articles/misc/string-aggregation-techniques.php

  • Help with table calculations

    Hi, everyone, I am working on a form that has been previously done in Excel. I wanted to redo this in a pdf that is expandable to fill so that I can add the accessibiltiy information to the form. The first link is to the static pdf converted from Excel here:

    https://Acrobat.com/#d=lIGyn * lpuWSQ-Qzkklml6w

    The second link is what my brain tense has recreated form. I don't know there's probably a better way that I chose and I am open to any suggestion. But I can't get the table altogether.

    In the first table, all Calc works properly, IE 11, 12, 13, 14 and 14 total is displayed in 15. but I need 17 to show the amount after discount (#16) is deducted. Looks like something simple would do the trick, as Subtotal - Discount. It does not work.

    Column 19 should in total in the footer next to 21 line. This isn't. And the column 23 should total in space #24. I tried for hours to come both with the magic script to get this form to work but... now, I decided to crawl for help.

    https://Acrobat.com/#d=mzovRUkKit7JnPVebPKgZw

    Hello

    Here is your form you: https://acrobat.com/#d=a06D-SL7SK58ZulXCKNSuw. Please note that all scripts are FormCalc, we use the sum function and the wildcard character. Any of these will work in JavaScript.

    Take a look at this post on how to reference objects, in particular the deomonstration of Ctrl + click:

    http://www.assuredynamics.com/index.php/2011/05/som-expressions/

    Also with buttons with linear gradient I would change the behavior of click to reverse to the outline or None. It will be a little easier on the eyes. I changed the two buttons Add. I also think that you found problems of readability with the contrast between the background of the button and the black legend. I recommend reading this post, which presents an approach for primary buttons (like the lines to add) and the secondary buttons (as delete lines):

    http://www.assuredynamics.com/index.php/2010/12/buttons/.

    Maybe this discussion on the colors:

    http://www.assuredynamics.com/index.php/2011/02/any-colour-as-long-as-its-black/

    Hope that helps,

    Niall

  • Help with table number

    I would like to take a number such as "12345" and turn it into a list or a table as "1,2,3,4,5". I use this to my hit counter. I am able to return a value from a database but would like each individual number corresponds to an image file.

    Help, please

    Is there a table?

    You can easily a loop around the length of the string, and then extract that character to your file number.

    ... process loading image...

    Dave @ Oyova software

    http://www.oyova.com - Design and Web development

  • Need help with tables

    Hi, I'm trying to do something in flash, but since I'm a beginner I can't do it alone.

    If the thing is, I'm trying to move the mouse and check how many pixels I "walked" by comparing the positions of each image, my idea did with tables, but I don't really know how to do it. Could someone help me? Or could make a simple .fla where I can learn?

    Thank you!

    I know that you'll probably have more questions, but maybe with a bit of play you will be able to start to discover things yourself.  Here are some basics on the tables...  To create a table, you must declare it...

    var coordinatesArray = new Array();

    and to add values to it, you can use the push() method, which will add what you indicate at the end of the table.

    corrdinatesArray.push (something);

    You should look to the top of the Array class in Flash AS2 support documents to see all the properties and methods that can be used with a table.

    This is where it will get a little more complicated that you were intending probably because you said you wanted to store the coordinates.  There are two contact information related to the position of the mouse, _xmouse and _ymouse.  So if you want to store, it is probably best done as a whole.

    Flash has a special class for the coordinates called the Point class.  You should read about this as well because it includes methods and properties that can be useful for what you say you want to do, for example to determine the distance between two points.

    So, to add a new set of points in the table, you can use...

    coordinatesArray.push (new Point (_xmouse, _ymouse));

    but to make use of the Point class, you must import it into the file.

    Here's a bit of code that you must experiment and try to understand what is happening.  Just open a new file and place this code in the timeline panel.  Then run the file and start clicking anywhere around the stage... try to see what each line is right for you...

    to import flash.geom.Point;

    var coordinatesArray:Array = new Array();

    this.onMouseDown = function() {}
    coordinatesArray.push (new Point (_xmouse, _ymouse));
    for (i = 0; i
    trace ("x:" + coordinatesArray [i] .x + "y:" + coordinatesArray [i] there);
    }
    trace("");
    }

  • Help with table...

    Hi all

    I have a nice photo gallery that uses a table like this:

    pictures = ["portraits/1.jpg", "" portraits/2. ""] jpg"," "portraits/3."» jpg"," "portraits/4.". " jpg"," "portraits/5."» jpg"," "portraits/6."» jpg"];

    All is well in the world, but now I need to import the data in table form a .txt file that was created by php.

    He writes the data exactly as it is above (without "photo ="). It creates the hard brackets, commas, lack the last comma

    and inserts a hard surface and semi colon. (cool php to an image folder change dynamically...)

    The string in the .txt file is:

    ["portraits/1.jpg", "" portraits/2. ""] jpg"," "portraits/3."» jpg"," "portraits/4.". " jpg"," "portraits/5."» jpg"," "portraits/6."» jpg"];

    On the main timeline (need to add a lot of code thereafter make the gallery works) how can I set the variable

    'photos' and then import the chain into the .txt file as its value?

    I use Flash 8 and AS2 (but I guess that the player load 2 & 3 mixed)

    Any help much appreciated

    Best wishes

    Tony

    You won't be dressing the table up as if you intend to assimilate it to the table in code.  All you have to do is get data into Flash using the LoadVars class, as a single string of file names with commas separating the names and then act on the string using the split method...

    Portraits/1.jpg,portraits/2.jpg,portraits/3.jpg,portraits/4.jpg,portraits/5.jpg,portraits/ 6. jpg / / content of the file

    Let's say the data string is set the variable Txtdata(3))

    pictures = txtData.split(",");

    Look in the documentation for AS2 LoadVars. It should be easy for you to implement.

  • Need urgent help - rtf Table boarders.

    Hi, I have an urgent need.
    I have a table, for which I'll put borders. Everythings works fine, with the exception of a single cell, where borders are repeat in a loop for each... I need that will be not be displayed each time. For all the other cells of the same requirement, it works fine. with the exception of this cell. I have to submit this report now and his rellllyy an emergency.
    I can drop the xml model if you need. I got to understand the problem. Please help me.
    I tried everything I could do.

    You sent the updated files

  • With the help of table 'helper' to fill the 2 different columns in the same table

    I have a table that contains two columns that use abbreviations that I want to join to another table "assistance" that develops on what mean these abbreviations. I have my query to display the full name of these abbreviations, rather than the abbreviated name.

    For example,.

    Table 1

    Name acronym
    ====== ======
    MY Monday
    KILL Tuesday
    WEDNESDAY Wednesday


    Table 2

    Entry day due date
    ====== ======
    LUN MAR
    MAR SEA
    SEA OF LUN


    I want to create a query that will show you:

    Entry day due date
    ====== ======
    Monday Tuesday
    Tuesday, Wednesday
    Wednesday Monday

    I can get it to map a column, but not both. Any help?

    Assuming that you really do need the table of the acronym (i.e. Oracle includes functions to translate date abbreviations).

    SELECT a.full_name entry_date,
           b.full_name due_date
      FROM table1 a,
           table1 b,
           table2 c
     WHERE a.acronym = c.entry_day
       AND b.acronym = c.entry_day
    

    Justin

  • Need help with table

    I have a spreadsheet that has about 40 different sheets with each of them being a person that lists information about each of them and if they participated in a given event.

    Is there a way to create a table that spans all of the leaves and can show participation based on the event? A bit like a portal into a database. My struggle is to be able to drag the formula down to automatic change sheets. I don't want to have to individually type an if then formula with offset to connect the number for each field.

    You mention a portal on a database. I think you're on the right track. It is easier to gather information in a table that it is from the dozens of tables. Why not keep your data in a database table and 'extract' information for a person of this table.

    If you could give more details one you are trying to do someone here will be able to give more specific suggestions.

    SG

  • help with table in spreadsheet string

    Hello

    I need assistance to format my 2D in a string table.

    I have a 2D DBL like this chart:

    and I want it in a format string like this "0.12 0, 1 0.34, 2 0.11.

    Line 0 pass 0 0 Col 1 Row line 1 Col 0 line 1 Col 1 line 2, column 0 line 2 Col 1... and so on

    Is this feasible with 'Table to a spreadsheet string' function or do I have to use a loop for format in this way?

    Thank you

    Ritesh

    Here are 2 ways to do it without loop.

    Ben64

    EDIT: just realized, you want a comma to separate lines, and replace the tab with a comma in solution 1. (2 will not work in this case)

  • Help conversion table...

    Need help here some Labview... I'm stuck...

    No need to...

    Step 1 - Take a 1 d array with 4 index example: 0.153, 121, 249

    Step 2 - convert the elements of the array in their 0 hexadecimal equivalent, 99, 79, F9

    Step 3 - concatenate the array index 09979F9

    Step 4 - convert the hexadecimal string to a decimal 10058233

    Any suggestions?

    Thank you

    Aaron

    OK, much simpler (at the bottom). A first simplification would be to get rid of 'snacking' (Center). I don't know why you're doing it (above).

    All outputs are the same.

    Of course, the way the question was asked was a little difficult, describing a complicated four steps procedure when a step is really necessary.

    (In the grand scheme of things, there will be complications such as the byte order.)

    Yes, catalogued is powerful, but extremely stupid at the same time:

    In a first approximation, it doesn't change the bits of memory resembles them differently.

Maybe you are looking for