How can I do calculation positioning in crosstab?

I have a calculation that should be displayed in only one column, at the right of a crosstab. Discoverer insists to copy my calculation under all columns, repeating the same result under each.
Is their a way to fix it at one place?

this is an example of how you can accomplish this with Region along the x-axis.
You need to do the same thing with the ages to get age along the x-axis.
I'm not sure it is an ideal solution given the large range of ages.
For each region, create a calculation as follows:
Calculation named 'Region A'
SUM(DECODE(Region,'Region A',[person count])
Calculation named 'Region B'
SUM(DECODE(Region,'Region B',[person count])
Calculation named 'Region Z'
SUM(DECODE(Region,'Region Z',[person count])
Then a final calculation, to get the percentage:
Calculation named 'All regions'
something like
(SUM([person count]) OVER (Parition by AGE])) / SUM[person_count]
which will divide the [person count] for that row (age) by the total [person count].
To get Age along the x-axis you need to create a calculation for each age, and the final calculation will be
(SUM([person count]) OVER (Parition by Region])) / SUM[person_count]

Similar Messages

  • How can i pass calculated value to internal table

    Hi
    i have to pass calculated value into internal table
    below field are coming from database view and i' m passing view data into iznew1
    fields of iznew1
                 LIFNR  LIKE EKKO-LIFNR,
                 EBELN  LIKE EKKO-EBELN,
                 VGABE  LIKE EKBE-VGABE,
                 EBELP  LIKE EKBE-EBELP,
                 BELNR  LIKE EKBE-BELNR,
                 MATNR  LIKE EKPO-MATNR,
                 TXZ01  LIKE EKPO-TXZ01,
            PS_PSP_PNR  LIKE EKKN-PS_PSP_PNR,
                 KOSTL  LIKE EKKN-KOSTL,
                 NAME1  LIKE LFA1-NAME1,
                 NAME2  LIKE LFA1-NAME2,
                 WERKS  LIKE EKPO-WERKS,
                 NETWR  LIKE EKPO-NETWR,
                 KNUMV  LIKE EKKO-KNUMV,
                 GJAHR  LIKE EKBE-GJAHR,
    and now i want to pass
    one field ED1  which i has calculated separatly and i want to pass this value into iznew1
    but error is coming that iznew1 is a table with out header line  has no component like ED1.
    so how can i pass calculated value to internal table iznew1,

    When you declare your internal table , make an addtion occurs 0
    eg . data : begin of iznew occurs 0 ,
                    fields ...
       add the field here ed1.
               end of iznew.
    now when you are calculating the value of ed1,
    you can pass the corresponding value of  ed1 and modify table iznew.
    eg
    loop at iznew.
    iznew-ed1 = ed1.
    modify iznew.
    endloop.

  • How can I apply text position attributes (e.g. lower third) to more than one title at a time?

    How can I apply text position attributes (e.g. lower third) to more than one title at a time?

    jhb3243
    What version of Premiere Elements are you using and on what computer operating system is it running?
    In the case of this theoretical lower third to be applied to more than one title at a time
    a. Is there text in the lower third besides a graphic of some kind?
    b. Are all the titles to which this lower third is to be applied all together on the Timeline or scattered?
    If no text in lower third and titles all together, then, with text titles on Video 1 and lower third on Video 2, drag out the lower third to cover the length of the text titles on Video 1.
    I do not find "lower third" title files to be in the same category as certain effects where the Copy and "Paste Attributes" or "Paste Effects and Adjustments" lend themselves so well.
    Let us see what others have to say about all this. I will continue to experiment with what you seek and how you would prefer to get there. I am not optimistic but I will try.
    Thanks.
    ATR

  • How can i make calculation in two file using two parameter

    how can i make calculation in two file using two parameter
    Solved!
    Go to Solution.

    i am having two differnt file, both file having no and time , i want to make programme that when, number and tiome is same in both file give that index onle  in , i am going to attached the file
    Attachments:
    iisc11-jan2010extract.txt ‏1253 KB
    sp3.xlsx ‏12 KB

  • How can I find the position of a robotic arm with a cFP-CTR card?

    Hello,
    I use a CTR-500 to measure the pulses of 3 encoders.
    The encoders are related to the 3 axis (x,y,z), to which a robotic arm is moving.
    Each encoder has 2 channels (A,B) which go to each pair of Count Inputs of the CTR card.
    When the robotic arm is moving on one axis, the corresponding pair of Count Inputs is increasing, but there is a phase between the one Count Input and the second one. What is more, the Count Inputs do not decrease when the robotic arm is moving to the other direction, but they still increase.
    So, I cannot find easily the position of the robotic arm.
    What I have done, is to try finding the position, by using only one Counter Input for each axis. This means that I use the value of the encoder as a counter, and I calculate the position with some software tricks. But for some reason, it does not work properly.
    I have heard that the method I use is not proper. Instead, I have been told that I must use the phase of the 2 Count Inputs, in order to find the direction to which the robotic arm is moving. But, the Count Inputs of the CTR are augmenting in parallel, when the robotic arm is moving forward or backward.
    How can I find the position of the robotic arm, as it is moving like a CNC ?
    Thank you very much.
    Message Edited by nikosfs on 08-21-2009 12:27 PM

    You don't want to use a cFP-CTR-500 card.  What you have are quadrature signals.  You should be using the cFP-QUAD-510.  It has 4 channels that can handle both the A and B signals of a quadrature encoder.  It has the built in circuitry do determine the phasing of A vs. B to know when to count up vs. count down.

  • How can I correct the position of the text in TEXTITEM?

    In TEXTITEM Box, some texts are placing on the top.
    The forms version is 6i.
    How can I correct the position of the text in TEXTITEM?

    Hi
    good thread to this problem
    Vertical justification for Text Item
    Thanks
    asp

  • How can I change the position of the tab bar?

    I just can't get used to the tab bar being on top in Firefox 4. I keep closing open pages by clicking on the bookmarks menu bar. How can I swap the position of the two bars?

    Please click the '''Helpful''' button next to the answer that solved your Firefox support issue, '''when you are logged in''', so this thread gets marked as '''Solved''' to help other users who may have this same problem.

  • How can I get the position assigned to the user in CRM .

    Hi all ,
    How can we get the positions to which a  user is assigned as a holder in CRM .
    Thanks ,
    Naval bhatt .

    Hi,
         Use the PPM toolkit class CL_CRM_PPM_UM_TOOLKIT. You can use the method You can use the method GET_ASSIGNMENTS_OF_USER which returns positions held by an user(user name).  You may also find the method GET_POSITION_OF_USER useful. It accepts username and the organization ID and will return the positions held by the user under that organization.
      This class always uses the current plan (01). If you want otherwise, you can use the FM RH_STRUC_GET. As to how this FM should be used, look inside the above said methods.
    Regards,
    Arun Prakash
    Edited by: Arun Prakash Karuppanan on May 11, 2010 11:40 AM

  • How can i change the position and size of the applet

    dear fellows,
    how can i change the position and size of the applet in which form is running over the web.
    thanx
    Mochoo

    Yes, you can add the following line to your formsweb.cfg section :
    HTMLbodyAttrs=onLoad='javascript:self.moveTo(100,100)'
    if you are in SEPERATEFRAME = FALSE
    Or Set_Window_Property( FORMS_MDI_WINDOW, POSITION, X, Y ) ;
    if you are in SEPERATEFRAME = TRUE

  • How can I change the position and duration of the title?

    Hi!
    Let me clarify my question... Position of the text/title:
    I would like to place multiple titles on one image. Which looks something like this---
    title 1
    title 2
    title 3
    title 4
    title 5
    title 6
    title 7
    title 8
    title 9
    title 10
    Now, I would like each title to appear for the duration of 0:01 to 0:05 sec. In sequence to the title above. Just a quick flash of the title.
    How can this be done in iMovie 10.0.5??
    You see, I attempt to change the time duration of the titles from 1.0s to 0.05s and it doesn't allow me to do it.
    You will probably ask me why I want to do this... I am creating my own subliminal affirmation video slideshow. I already have the audio for it in Garageband.
    Thanks for you time and possibly help!!
    Brian

    Yes, you can add the following line to your formsweb.cfg section :
    HTMLbodyAttrs=onLoad='javascript:self.moveTo(100,100)'
    if you are in SEPERATEFRAME = FALSE
    Or Set_Window_Property( FORMS_MDI_WINDOW, POSITION, X, Y ) ;
    if you are in SEPERATEFRAME = TRUE

  • How can i get the position of my object

    HI,ALL! i get a queation now. when i picking some transfromgroup,and move it.(use picktranslatebehavior),i want to get the position of the transformgroup after it has been moved.so how can i get it?!Apology for my bad english .thanks!:)

    Check out:
    http://forum.java.sun.com/thread.jspa?threadID=633485&tstart=15

  • How can I prevent scroll position changes

    I have a master detail page.
    during insert data in detail form user must scroll down.
    after opening an lov page scroll will change automatically(go to top of the page) and user have to scroll down again for fill next fileds in form.
    how can i lock automatically scroll ? or how can i prevent these scroll position changes.
    tnx
    Edited by: user12052968 on Oct 18, 2009 12:36 AM
    Edited by: user12052968 on Oct 18, 2009 12:41 AM

    Hi,
    Do you have anything in KEY-LISTVAL trigger? If not, create a KEY-LISTVAL trigger (for the item), and do something like this.
    declare
    cur_rec number;
    begin
    cur_rec := TO_NUMBER(:SYSTEM.CURSOR_RECORD);
    SHOW_LOV('<YOUR_LOV>');
    go_record(cur_rec);
    end;The idea is, preserve the current record position before showing the lov and then go to that position after showing the lov.
    -Arun

  • How can I update components position after a setSize call?

    Hi there. I need some help. I have a JFrame application. When you press a button, the JFrame size changes, but the components added to it keep in the same position, they dont update to the new size, until I change manually the size of the JFrame, with the mouse. How can I make they to update automatically when I call the setSize(20,40) ?
    Thank you!
    The code:
    public void actionPerformed( ActionEvent event )
    setSize(300,90);
    repaint();
    }

    Thank you Encephalopathic for your answer. I try calling revalidate() but it still doesnt work. The SSCCE is here:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Panel extends JFrame implements ActionListener {
         private JPanel panel1;
         private JPanel panel2;
         private JButton btn1;
         private JButton btn2;
            private Container container;
         public Panel(){
                 super( "Title" );
                btn1 = new JButton( "Resize");
                btn2 = new JButton( "btn2");
                btn1.addActionListener(this);
                panel1 = new JPanel();
                panel2 = new JPanel();
                      panel1.add(btn1);
                panel2.add(btn2);
                      container = getContentPane();
                container.add(panel1);
                setSize(315,325);
                      setVisible(true);
         public void actionPerformed( ActionEvent event ){
                   setSize(100,100);
                      container.remove(panel1);
                   container.add(panel2);
                      panel2.revalidate();   // doesnt work
                container.validate(); // doesnt work
         public static void main (String args[]){
                   Panel panel = new Panel();
    }Edited by: gasbor on Feb 28, 2009 10:09 PM

  • How can I control stage position for swfs loaded by Loader class?

    I'm creating a grid of buttons that, when clicked, will load a specific swf and I'd like for each swf to play in a certain portion of the stage.  When I use the Loader class:
    var my_loader:Loader = new Loader();
    my_loader.load(new URLRequest("abc.swf"));
    addChild(my_loader);
    the swf always displays at top left.  Is this an attribute of the individual swfs that I'm loading, or can I address the position in the main movie?
    Thanks-
    Sean

    addChild(my_loader);
    my_loader.x = 500;
    my_loader.y = 250;

  • How can I change the position of a tooltip?

    I built a custom tooltip for a component which is at the bottom of the screen.  The problem is, when I mouse over the component, most of the tooltip cannot be seen because it is being cut off by the bottom of the screen.  How can I set it so that the tooltip will appear above the control instead of below it?
    toolTipCreate = "ToolTipCreateHandler(event)"
    private function ToolTipCreateHandler(event:ToolTipEvent):void {
         event.toolTip = new CustomToolTip();

    I sort of found a solution.  I had to set the height and width properties in the MXML code of the custom component.  This tells Flex how big the tooltip will be, therefore Flex knows to place it so that it doesn't go outside the visible screen.  Befor, I didn't define these values so that the CustomTooltip width and height would be dependent on its children.  This solution works but it stinks, if anyone has a better method please let me know.

Maybe you are looking for