Calculation of total depending upon the quarter selected

Dear All,
User want to see the quarterly total of all the amount.
Key figure struture in report is:-
Quarter
Actual amount
plan amount
variance
This will display the result for every quarter. Now user want to see the quarter total.
I can achieve this by making the property of CALQUARTER to suppress results never. This will give me output at the end of everyquarter. But i have variance field in my report whichi is giving a problem.
Say for 1st three posting period the variance is 100 respectively then the quarterly variace is coming as 300 total. I dont want this . I want to apply formula here.
formula=(( actual variacne - plan variance)/plan variacne)*100.
How can i achieve this in BEx?
Thanks & Rgds,
Anup

Hi Moorthy,
variance is a formula.
Quarter object used in hte key figure struture is a characteristics so i can't specify calculate result as total it only applies to key figures. For characteristics there is an option called Normailze to :- 'No normalization, Query result, Overall result, and Resul'. I dont know if we can use any of these???
Suppress results never will automatically take the summation only.
Thanks & Regards,
Anup

Similar Messages

  • Can we hide column in a query depending upon the variable selected

    Hi all,
    let us say my report have 10 column.
    now i am giving user option to select the values (let us say 'a' or 'b')
    columns must be displayed depending upon the value selected by user ..
    for example if user has selected 'a' then first five columns should be displayed..and if user has selected 'b' last five column should be displayed..(it will be OK even if we can hide the columns depending upon the selection )
    Is it possible in BEx...please let me know

    I did it sometime back. A bit complicated process.
    Create an infoobject, manually enter the values "keyfig1" and "keyfig2".
    Include this infoobject in the filters and restrict it using a "ready for input" variable.
    Now create two formula variables.
    Write a customer exit such that when you select "keyfig1", first formula variable's value should be set to 1 and other one's to 0.
    Then in the query create two calculated key figures, multiply both with the formula variable. Also supress column (all active value == 0).
    Then it will show the key figure which you have selected.
    Pravender

  • How to create  some columns dynamically in the report designer depending upon the input selection

    Post Author: ekta
    CA Forum: Crystal Reports
    how  to create  some columns dynamically in the report designer depending upon the input selection 
    how  export  this dynamic  report in (pdf , xls,doc and rtf format)
    report format is as below:
    Element Codes
    1
    16
    14
    11
    19
    10
    2
    3
    Employee nos.
    Employee Name
    Normal
    RDO
    WC
    Breveavement
    LWOP
    Sick
    Carers leave
    AL
    O/T 1.5
    O/T 2.0
    Total Hours
    000004
    PHAN , Hanh Huynh
    68.40
    7.60
    76.00
    000010
    I , Jungue
    68.40
    7.60
    2.00
    5.00
    76.00
    000022
    GARFINKEL , Hersch
    66.30
    7.60
    2.10
    76.00
    In the above report first column and the last columns are fixed and the other columns are dynamic depending upon the input selection:
    if input selection is Normal and RDO then only 2 columns w'd be created and the other 2 fixed columns.
    Can anybody help me how do I design such report....
    Thanks

    Hi Developer life,
    According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
    As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
    the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
    If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
    Similar threads with details steps for your reference:
    https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
    If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
    Any question, please feel free to let me know.
    Best Regards
    Vicky Liu

  • Line Total depend upon the weight of the Item

    Hi Experts,
    I need a line total based on the weight and unit price of the quantity not on the quantity.
    And If I do the updating at line total value than discount change into negative.
    Please do the needful action. How we can accomplished this issue.
    Regards
    Amit Tyagi

    Hi
    Atyagi
    So when you are entering data in the document
    example
    Quantity  100 Tonne
    Unit Price  250 Rs.
    Line total  25000 rs
    That means it is calculating on weight only.
    What you are getting in the line total ?
    Ashish Gupte

  • Shading part of a JTable Cell dependent upon the value of the cell

    Hi
    Was hoping some one woudl be able to provide some help with this. I'm trying to create a renderer that will "shade" part of a JTable cell's background depending upon the value in the cell as a percentage (E.g. if the cell contains 0.25 then a quarter of the cell background will be shaded)
    What I've got so far is a renderer which will draw a rectangle whose width is the relevant percentage of the cell's width. (i.e. the width of the column) based on something similar I found in the forum but the part I'm struggling with is getting it to draw this rectangle in any cell other than the first cell. I've tried using .getCellRect(...) to get the x and y position of the cell to draw the rectangle but I still can't make it work.
    The code for my renderer as it stands is:
    import java.awt.Component;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import javax.swing.JLabel;
    import javax.swing.JTable;
    import javax.swing.table.TableCellRenderer;
    public class PercentageRepresentationRenderer extends JLabel implements TableCellRenderer{
         double percentageValue;
         double rectWidth;
         double rectHeight;
         JTable table;
         int row;
         int column;
         int x;
         int y;
         public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
              if (value instanceof Number)
                   this.table = table;
                   this.row = row;
                   this.column = column;
                   Number numValue = (Number)value;
                   percentageValue = numValue.doubleValue();
                   rectHeight = table.getRowHeight(row);
                   rectWidth = percentageValue * table.getColumnModel().getColumn(column).getWidth();
              return this;
         public void paintComponent(Graphics g) {
            x = table.getCellRect(row, column, false).x;
            y = table.getCellRect(row, column, false).y;
              setOpaque(false);
            Graphics2D g2d = (Graphics2D)g;
            g2d.fillRect(x,y, new Double(rectWidth).intValue(), new Double(rectHeight).intValue());
            super.paintComponent(g);
    }and the following code produces a runnable example:
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableModel;
    public class PercentageTestTable extends JFrame {
         public PercentageTestTable()
              Object[] columnNames = new Object[]{"A","B"};
              Object[][] tableData = new Object[][]{{0.25,0.5},{0.75,1.0}};
              DefaultTableModel testModel = new DefaultTableModel(tableData,columnNames);
              JTable test = new JTable(testModel);
              test.setDefaultRenderer(Object.class, new PercentageRepresentationRenderer());
              JScrollPane scroll = new JScrollPane();
              scroll.getViewport().add(test);
              add(scroll);
         public static void main(String[] args)
              PercentageTestTable testTable = new PercentageTestTable();
              testTable.pack();
              testTable.setVisible(true);
              testTable.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }If anyone could help or point me in the right direction, I'd appreciate it.
    Ruanae

    This is an example I published some while ago -
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class Fred120 extends JPanel
        static final Object[][] tableData =
            {1, new Double(10.0)},
            {2, new Double(20.0)},
            {3, new Double(50.0)},
            {4, new Double(10.0)},
            {5, new Double(95.0)},
            {6, new Double(60.0)},
        static final Object[] headers =
            "One",
            "Two",
        public Fred120() throws Exception
            super(new BorderLayout());
            final DefaultTableModel model = new DefaultTableModel(tableData, headers);
            final JTable table = new JTable(model);
            table.getColumnModel().getColumn(1).setCellRenderer( new LocalCellRenderer(120.0));
            add(table);
            add(table.getTableHeader(), BorderLayout.NORTH);
        public class LocalCellRenderer extends DefaultTableCellRenderer
            private double v = 0.0;
            private double maxV;
            private final JPanel renderer = new JPanel(new GridLayout(1,0))
                public void paintComponent(Graphics g)
                    super.paintComponent(g);
                    g.setColor(Color.CYAN);
                    int w = (int)(getWidth() * v / maxV + 0.5);
                    int h = getHeight();
                    g.fillRect(0, 0, w, h);
                    g.drawRect(0, 0, w, h);
            private LocalCellRenderer(double maxV)
                this.maxV = maxV;
                renderer.add(this);
                renderer.setOpaque(true);
                renderer.setBackground(Color.YELLOW);
                renderer.setBorder(null);
                setOpaque(false);
                setHorizontalAlignment(JLabel.CENTER);
            public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col)
                final JLabel label = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, col);
                if (value instanceof Double)
                    v = ((Double)value).doubleValue();
                return renderer;
        public static void main(String[] args) throws Exception
            final JFrame frame = new JFrame("Fred120");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setContentPane(new Fred120());
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
    }

  • Hide Advance table Depending upon the value of dropDown

    Hi,
    I have 2 advance tables. 1st one has a DropDown. Depending upon the value of the dropdown in 1st advance table, the second advanced table should get rendered.
    I tried by getting the value of the dropdown by addingg a PPF and iterating trough the table and I got the value. But when I redirect to the same page, all the selection and other values in 1st advanced table vanish out.
    Can someone help me getting the 2nd table hidden and at the same time retaining the values for the 1st advanced table.
    Thanks in Advance,
    Kaushik Rambhiya

    Kaushik
    Implement PPR for this requirement and dont redirect the page
    Displaying image based selected value of choice bean
    http://oracleanil.blogspot.com/2009/05/ppr.html
    Thanks
    AJ

  • Conditions in SQVI for amount depending upon the Debitcredit Indicator

    Hello ABAP's
    I am new to this forum & learning. I am using SQVI for getting Information from Table BSEG. The data is getting extracted but I am unable to give any conditions for amount depending upon the Debitcredit Indicator. If it is "H" ie. Credit the Amount should change colour and if it is "S" it should be as it is.Just like in tcode MB51 when we get negative amount the Line is dispalyed in Pink and in case of Positive in Green.
    Looking forward to your help.
    With regards
    Sandy

    Hi Sandesh,
    You can not manipulate data in SQVI. For that you can write a query in infostructures transaction SQ01/02/03.
    1. Go in SQ02, create an infoset and assign it to user-group available.
    2. Inside infoset, declare table BSEG and click on button 'Extras'. here, you can write your code to multply by '-1' to a field depending upon some condition. Select 'Code' tab and code section as 'Record Processing'. Write code in window displayed.
    3. In SQ01, select infoset you just created and select the query.
    Execute the same and you will get required output.
    Let me know if it helps.
    Gouri.

  • How to fill up the Flex ProgressBar control ,depending upon the Controls Seelcted inside the MXML

    Hi ,
    Please , let me know  How to fill up the Flex ProgressBar control ,depending upon the Controls Seelcted inside the MXML 
    Lets say I have five text boxes and a dropdown box in my flex application, how can I make the progress bar fill up when there is text in each box, and the dropdown selected. 
    Please help
    Thanks in advance .

    Hi Kiran,
    You can do something like below to implement the functionlaity you needed...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="top"
        horizontalAlign="center" backgroundGradientColors="[0x000000,0x323232]" paddingTop="0" viewSourceURL="srcview/index.html">
        <mx:Script>
            <![CDATA[
              private var j:uint=0;
              // Event handler function to set the value of the
              // ProgressBar control.
              private function runit():void
                  if(j<=100)
                    j+=10;
                     bar.setProgress(j,100);
                     bar.label= "CurrentProgress" + " " + j + "%";
                  if(j>100)
                     j=0;
                     check1.selected=false;
                     bar.setProgress(j,100);
                     bar.label= "CurrentProgress" + " " + j + "%";
              private function checkFunction():void
               if(!check1.selected)
                 if(j<=100)
                    j-=10;
                     bar.setProgress(j,100);
                     bar.label= "CurrentProgress" + " " + j + "%";                
                  if(j>100)
                     j=0;
                     check1.selected=false;
                     bar.setProgress(j,100);
                     bar.label= "CurrentProgress" + " " + j + "%";
                else
               runit();
            ]]>   
        </mx:Script>
        <mx:Panel title="ProgressBar Control" layout="vertical" color="0xffffff" borderAlpha="0.15"
             paddingTop="10" paddingRight="10" paddingBottom="10" paddingLeft="10" horizontalAlign="center">
             <mx:Label width="100%" color="0x323232"
                text="Click the button to increment the progress bar." />
                <mx:HBox>
              <mx:CheckBox id="check1" label="Check Me" color="#123456" click="checkFunction();"/> 
            <mx:Button id="Speed" label="Click" click="runit();" color="0x323232"/>
              </mx:HBox>
            <mx:ProgressBar id="bar" labelPlacement="bottom" themeColor="#EE1122" minimum="0" visible="true" maximum="100"
                 color="0x323232"    label="CurrentProgress 0%" direction="right" mode="manual" width="100%"/>
        </mx:Panel>
    </mx:Application>
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • From which table we can get cat_guid depending upon the guid of a tr.ticket

    Hi Experts,
    I have to find the cat_guid depending upon the guid which is in crmd_orderadm_h table to retrive the fields categeorization module/element/type maintained in the service ticket.
    Please tell me from which table we can get cat_guid depending upon the guid of perticular trouble ticket.
    points will be rewarded if helpful.
    regards,
    Ezal

    Hi Ezal
    Pass the GUID (CRMD_ORDERADM_H) to Function Module CRM_ORDER_READ to retrieve the required values.
    I think this should do the trick.
    Reward with points if helpful
    Regards
    Arden

  • How to change the image dynamically depend upon the input parameter

    Hi All
    I have one report running depend upon the Organization specific, I have 15 operating unit and 15 different logo for each operating unit.
    How to change the Logo dynamically depend upon the input passed by the user.
    If I have three or four logo i can add in my layout using if else statement and its works fine but i have more that 10 logos so its no possible to keep these in My RTF Template.
    Is it possible to change the logo according to the input without keeping this in Template.
    I have seen this link but its not working fine
    http://erpschools.com/articles/display-and-change-images-dynamically-in-xml-publisher
    Regards
    Srikkanth.M

    Hi,
    I have not completed fully,so sorry i cant able to share the files, could you please give me some tips and steps to do.
    Without having the logo in RTF if it possible to bring the logo depends on the user input (Ie Operating unit).
    Regards
    Srikkanth

  • Restricting members in Planning Webform depending on the member selection

    Hi Guru's
    Is there a way in the planning webform, to restrict members showing in the form, for example, I have Entity, Employee, Position. Depending on the entity selection I need to display on the form related to that entity. Any help will be greatly appreciated.

    Im not sure there is any simple way to get dynamic row selection based on what is selected in the page.
    If I were designing the form based on what you have stated, I would probably stick both Account and Year in the page, and the 400 products in rows. This would require the user to select the different combinations of Year / Account, but would mean only 12 columns (instead of 72).
    Alternatively you could stick Account in rows too - meaning 800 rows, but less combinations to select in Page....all depends what is deemed acceptable to the user.
    Probably other approaches that may be better than above (put Product in the Page for fun!!)
    Thanks
    JB

  • Do the execution time of the insert command depend upon the no the indexes

    hi,
    Do the execution time of the insert,update and delete command depend upon the no the indexes created for a table......
    Edited by: [email protected] on Mar 4, 2009 3:02 AM

    sure,..
    An index is a structure which contains entries pointing to the actual data in the table.
    When you insert a record into a table, the data which should also be indexed is inserted in the index structure. This index data needs to be in a specific place, not just anywhere (as opposed to e.g. a heap table).
    So this might lead to an update and insert in the index structure.
    This is just to give you an idea. More on the subject in Tom Kyte's Expert Oracle Database Architecture and of course Oracle's documentation.

  • Automatically update text field depending on the in select list value

    I have got 2 tables. Table A (Employee Personal Detail), Table B (Employee Academic detail). Employee no is common field between two tables).
    I have created interactive report with form on table b using in-built templates. I have added text box on form to display employee name which is stored in table A. I want to automatically display employee name depending upon value in employee no field on form. I know I can write query to get value in employee name field. It gives me error when employee no is blank. How to handle error?

    Sagar,
    For the employee name value to change according to the emp_no, your page needs to get submitted. can you use a select list with submit for emp_no? And then use the PL/SQL mentioned above to run on page submit?
    I'm not sure but I guess you can also achieve this in Ajax. May be someone expert in that could help.

  • Fastest algorithm to append a id to an ipaddress depending upon the net id

    Hi Guys,
    I wanted to know what will be the fastest algorithm to append a id to an ip address depending on the net id. I am using Java by the way. For example - Suppose I have a list of ids and corresponding net id i.e.
    ID: 23 net ID: 10.44
    ID:12 net ID: 10.56
    ID:1 net ID: 10.70
    ID: 78 net ID: 10.44.34.33
    Now, if I receive a million records having different source IPs, what will be the fastest way to know to which ID it belongs. For example, say I receive a record having source IP 10.44.23.33 then I have to compare to all the net IDs and see what ID it will belong to; in this case, result need to be -> 23::10.44.23.33 because net ID:10.44 has ID 23. Suppose, I get a record having source IP 10.44.34.33 then result need to be -> 78::10.44.34.33. I hope, I am clear. Performance issue is if I have million records and list comprising say even 1000 ID and net ID entries then if I do say, compare the source IP to each entry of the list then searching will take O(n). Not sure though. I know, I can convert net ID to the range of IP addresses. Take ID:12 for example. The number of IP addresses that can belong to that network type will be from 10.56.0.0 to 10.56.255.255. Convert these numbers to long and convert the source IP also to long and see if it is between the range. But, this will take a long time even if I do binary search, am I right? Is there any way I can resolve the issue in a nifty way, say, using binary manipulation such as ORing or ANDing something. Would anyone please let me know? Thanks.
    Waiting for your replies.
    Edited by: wannabehacker on Jun 10, 2009 8:06 AM
    Edited by: wannabehacker on Jun 10, 2009 8:07 AM

    wannabehacker wrote:
    Hi Jos,
    Thanks for your reply. But, don't you think this might have performance issue in worst case scenario or even in not so worst case scenarios. Suppose, I have million records and half of them do not have corresponding ID and net ID's in the list. Then if the list has 1000 entries but nothing for the source IPs received, the map will be parsed 1/2 million X 1000 times X 4. Am I missing something.Yup, a HashMap can find a key in order O(1) which is a whole lot better than searching a list of 1000 elements. Your calculations reduce to 1,000,000 X 1 X 4 at worst for all your records.
    kind regards,
    Jos

  • Declarative security of servlet- html view changes depending upon  the role ??

              Hi All,
              There is acl for ejb methods and we can restrict roles to use certain
              methods of the bean. Now my question is that
              Is something possible in a declarative fashion so that user can have
              certain options enabled and certain disabled in the jsp/servlet output
              depending upon his role ?
              For example, let suppose we have a servlet MyServlet that creates an
              html output with some input boxes and buttons (add, modify, delete). Now
              is it possible, that ceratin user will only see modify button, some
              won't see any button, can only view the screen depending upon their role
              and verything in declarative fashion ?
              Any suggestion is welcome.
              TIA,
              Sudarson
              

    Servlet security is defined in the context of the web application containing
              the servlet, and web app security provides for the declarative protection of
              resources like servlets, jsps and html pages; so the answer is no.
              See http://e-docs.bea.com/wls/docs61///webapp/security.html
              Thanks
              Jim
              sudarson wrote:
              > Hi All,
              >
              > There is acl for ejb methods and we can restrict roles to use certain
              > methods of the bean. Now my question is that
              >
              > Is something possible in a declarative fashion so that user can have
              > certain options enabled and certain disabled in the jsp/servlet output
              > depending upon his role ?
              >
              > For example, let suppose we have a servlet MyServlet that creates an
              > html output with some input boxes and buttons (add, modify, delete). Now
              > is it possible, that ceratin user will only see modify button, some
              > won't see any button, can only view the screen depending upon their role
              > and verything in declarative fashion ?
              >
              > Any suggestion is welcome.
              >
              > TIA,
              > Sudarson
              [Reply.vcf]
              

Maybe you are looking for

  • Sync multiple lobraries with iPod color 60GB

    I posted this issue in the iPod forum, but received no advice. Hopefully someone here can help: I have over 25,000 photos and use several iPhoto libraries to manage and organize them. One library lives on my Powerbook 17" hard drive and the others ar

  • Using a laptop for image acquisition in combination with PCI-1428/PCI-8252

    I am not too confident about PCMCIA framegrabbers so that I would like to use either a cameralink camera with the PCI-1428 or a Firewire one with PCI-8252. Are there any obstacles accommodating the PCI cards in an PCI Expansion box?

  • Skype 7.1 has stopped working

    Hello, for the past month, on startup on Skype (7.1), appears the message "Skype has stopped working". I have installed and uninstalled it several times but couldn't fix the problem. I also had problems with IE11, so yesterday I managed to have IE9 i

  • Word and Excel documents vanish

    This may be the wrong forum for this question if so I apologize and wold appreciate direction. Working on numerous word and excel documents every so-often the file will disappear off my screen. If I click on another application then click on say word

  • What is the directory that contains the init directories ?

    What is the directory that contains the init directories (rc0.d/ to rc6.d/)?  I want to install a copy of vmware5