Calculations with Jtextfiled data

HI,
I have Four Jtextfields.The user has to enter the data in the two jtextfields.
in the third field i have to print the sum of the first two fields.
Please help me . This is my code
package samples;
import javax.swing.*;
import javax.swing.text.JTextComponent;
import java.awt.*;
import java.awt.event.*;
class PiGUI extends JFrame {
JTextField totalRepairs = new JTextField("Enter Number",8);
JTextField successfulFirstRepairs = new JTextField("Enter Number",8);
JTextField repeatRepairs = new JTextField(8);
JTextField fFVRatio = new JTextField(8);
JLabel StaticText = new JLabel("FFV-Take it to the Next Level");
JLabel TotalRepairs = new JLabel("Total Repairs");
JLabel SuccessfulFirstRepairs = new JLabel("Successful First Repairs");
JLabel RepeatRepairs = new JLabel("Repeat Repairs");
JLabel FFVRatio = new JLabel("FFV Ratio");
//Calculator calc = new Calculator(this);
PiGUI() {
// Frame listener - closeing window
addWindowListener(new WindowAdapter() {public void windowClosing(WindowEvent e) {System.exit(0);}});
// Configure GUI layout
Container inter = getContentPane();
inter.setLayout(new FlowLayout());
// Set the box is editable or not
totalRepairs.setEditable(true);
successfulFirstRepairs.setEditable(true);
repeatRepairs.setEditable(false);
fFVRatio.setEditable(false);
// Add components to GUI
inter.add(StaticText);
inter.add(TotalRepairs);
inter.add(SuccessfulFirstRepairs);
inter.add(RepeatRepairs);
inter.add(FFVRatio);
inter.add(totalRepairs);
inter.add(successfulFirstRepairs);
inter.add(repeatRepairs);
inter.add(fFVRatio);
StaticText.setBounds(1,25,500,20);
TotalRepairs.setBounds(5,5,150,20);
totalRepairs.setBounds(5,30,150,40);
SuccessfulFirstRepairs.setBounds(5,75,150,20);
successfulFirstRepairs.setBounds(5,100,150,40);
RepeatRepairs.setBounds(5,5,150,20);
repeatRepairs.setBounds(5,30,150,40);
FFVRatio.setBounds(5,75,150,20);
fFVRatio.setBounds(5,100,150,40);
setSize(450,450); // Size of window
//setTitle("PI Calculator"); // Title of window
setVisible(true); // Set visible
setResizable(false); // Disallow resize
ActionListener actionListener = new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
     int totalRepairs1=Integer.parseInt(totalRepairs.getText());
     int successfulFirstRepairs1 =Integer.parseInt(successfulFirstRepairs.getText());
     int repeatRepairs1 = totalRepairs1-successfulFirstRepairs1;
     double fFVRatio1 = successfulFirstRepairs1/totalRepairs1;
     //repeatRepairs.setText(repeatRepairs1);
totalRepairs.addActionListener(actionListener);
successfulFirstRepairs.addActionListener(actionListener);
KeyListener keyListener = new KeyListener() {
public void keyPressed(KeyEvent e) { }
public void keyReleased(KeyEvent e) { }
public void keyTyped(KeyEvent e) {if ( ! Character.isDigit(e.getKeyChar())) {
                   Toolkit.getDefaultToolkit().beep();
                   e.consume();
totalRepairs.addKeyListener(keyListener);
successfulFirstRepairs.addKeyListener(keyListener);
InputVerifier verifier = new InputVerifier() {
public boolean verify(JComponent input) {
final JTextComponent source = (JTextComponent) input;
String text = source.getText();
if (text.length() == 0) {
Runnable runnable = new Runnable() {
public void run() {
JOptionPane.showMessageDialog(source,
"Can't leave Blank.", "Error Dialog",
JOptionPane.ERROR_MESSAGE);
SwingUtilities.invokeLater(runnable);
return false;
else {
return true;
totalRepairs.setInputVerifier(verifier);
successfulFirstRepairs.setInputVerifier(verifier);
public class BBB {
public static void main(String[] args) {
PiGUI piGUI = new PiGUI();
Thanks in advance

package samples;
import javax.swing.*;
import javax.swing.text.JTextComponent;
import java.awt.*;
import java.awt.event.*;
class PiGUI extends JFrame {
    JTextField totalRepairs  = new JTextField("Enter Number",8);
    JTextField successfulFirstRepairs  = new JTextField("Enter Number",8);
    JTextField repeatRepairs  = new JTextField(8);
    JTextField fFVRatio  = new JTextField(8);
    JLabel StaticText = new JLabel("FFV-Take it to the Next Level");
    JLabel TotalRepairs = new JLabel("Total Repairs");
    JLabel SuccessfulFirstRepairs  = new JLabel("Successful First Repairs");
    JLabel RepeatRepairs = new JLabel("Repeat Repairs");
    JLabel FFVRatio  = new JLabel("FFV Ratio");
    //Calculator calc = new Calculator(this);
    PiGUI() {
        // Frame listener - closeing window
        addWindowListener(new WindowAdapter() {public void windowClosing(WindowEvent e) {System.exit(0);}});
        // Configure GUI layout
        Container inter = getContentPane();
        inter.setLayout(new FlowLayout());
        // Set the box is editable or not
        totalRepairs.setEditable(true);
        successfulFirstRepairs.setEditable(true);
        repeatRepairs.setEditable(false);
        fFVRatio.setEditable(false);
         // Add components to GUI
        inter.add(StaticText);
        inter.add(TotalRepairs);
        inter.add(SuccessfulFirstRepairs);
        inter.add(RepeatRepairs);
        inter.add(FFVRatio);
        inter.add(totalRepairs);
        inter.add(successfulFirstRepairs);
        inter.add(repeatRepairs);
        inter.add(fFVRatio);
        StaticText.setBounds(1,25,500,20);
        TotalRepairs.setBounds(5,5,150,20);
        totalRepairs.setBounds(5,30,150,40);
        SuccessfulFirstRepairs.setBounds(5,75,150,20);
        successfulFirstRepairs.setBounds(5,100,150,40);
        RepeatRepairs.setBounds(5,5,150,20);
        repeatRepairs.setBounds(5,30,150,40);
        FFVRatio.setBounds(5,75,150,20);
        fFVRatio.setBounds(5,100,150,40);
        setSize(450,450); // Size of window
        //setTitle("PI Calculator"); // Title of window
        setVisible(true); // Set visible
        setResizable(false); // Disallow resize
        ActionListener actionListener = new ActionListener() {
            public void actionPerformed(ActionEvent actionEvent) {
                 double totalRepairs1=Integer.parseInt(totalRepairs.getText());
                 double  successfulFirstRepairs1  =Integer.parseInt(successfulFirstRepairs.getText());
                 double repeatRepairs1 = totalRepairs1-successfulFirstRepairs1;
                 double fFVRatio1 = successfulFirstRepairs1/totalRepairs1;
                 repeatRepairs.setText(new Double(repeatRepairs1).toString());
          totalRepairs.addActionListener(actionListener);
          successfulFirstRepairs.addActionListener(actionListener);
          KeyListener keyListener = new KeyListener() {
              public void keyPressed(KeyEvent e) { }
              public void keyReleased(KeyEvent e) { }
              public void keyTyped(KeyEvent e) {if ( ! Character.isDigit(e.getKeyChar())) {
                   Toolkit.getDefaultToolkit().beep();
                   e.consume();
            totalRepairs.addKeyListener(keyListener);
            successfulFirstRepairs.addKeyListener(keyListener);
          InputVerifier verifier = new InputVerifier() {
              public boolean verify(JComponent input) {
                final JTextComponent source = (JTextComponent) input;
                String text = source.getText();
                if (text.length() == 0) {
                  Runnable runnable = new Runnable() {
                    public void run() {
                      JOptionPane.showMessageDialog(source,
                          "Can't leave Blank.", "Error Dialog",
                          JOptionPane.ERROR_MESSAGE);
                  SwingUtilities.invokeLater(runnable);
                  return false;
                else {
                  return true;
            totalRepairs.setInputVerifier(verifier);
            successfulFirstRepairs.setInputVerifier(verifier);
public class BBB {
    public static void main(String[] args) {
        PiGUI piGUI = new PiGUI();
}

Similar Messages

  • Problem with packed data type variable?

    Hi all,
    I have a problem while doing calculations with packed data type variables . As they are saving in the format '0,00'. so unable to do calulations because of ',' . 
    To convert these fields into str and replacing ',' with '.' is very time consuming because i have many packed data type variables.
    Can you please provide any other alternative for over coming this problem? Is there any option while defining these variables?
    Thanks,
    Vamshi.

    Hi VAMSHI KRISHNA,
    First check out SU01 Tcode (if u don't have permission then u can ask BASIS to do it)
    Enter User Name
    Execute
    Goto Defaults Tab
    Check Out Decimal Notation here... set it 1,234,567.89
    SAVE it
    Log Off once and again login with the same user id and check the result...
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7

  • There is something wrong with the volumes buttons in my macbook pro, every time i pressed the one who raises the volume, it leads me to the screen where (i do not no what its called) the background is black with the date and time and a calculator.

    There is something wrong with the volumes buttons in my macbook pro, every time i pressed the one who raises the volume, it leads me to the screen where (i do not no what its called) the background is black with the date and time and a calculator. However, when i lower it, my safari tab goes out of the screen. What do you guys think i should do? I'm getting very nervous.

    hey HAbrakian!
    You may want to try using the information in this article to adjust the behavior of your function keys to see if that resolves the behavior:
    Mac OS X: How to change the behavior of function keys
    http://support.apple.com/kb/ht3399
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • Formula variable for date calculations with date-characteristics (2004s)

    Hi SDN,
    I'd like to calculate the number of days between to date-characteristics. In 3.5, I was used to create 2 formula variables of the type 'replacement path', with 'date' as the dimension indicator. In my formula, I used the 'proces value as date' function for each variable, and I could perform calculations with them.
    I'm trying to do the same in 2004s. However, I can't create replacement path's with 'date' as a dimension indicator. So I use 'number' instead, but it doesn't work: my query shows 'x'.
    I can use the variables that I created using the 3.5 query designer as a workaround. But I hope there is a better solution.
    If other people experience the same problem, please respond. Then I know it's probably a bug.
    Kind regards,
    Daniel

    Daniel,
    Try to look at the formula variables defined before the upgrade and see what is different to the newly defined. I am guessing just the terminology used is different.
    If not the date value might be blank or something for one of the f-variables used. Try to display the formula variable values as KF in the query results and check what it is showing.
    I hope this helps.
    -Bala

  • Calculations with date fields

    I'm trying to do a basic calculation with a CRM date form in BC.
    I have a form field 'dateJoined' (though this could easily be the standard DOB field for the sake of this exercies) and I need to use javascript to calculate how many days have passed between today's date and the date in 'dateJoined'.
    The {module_customerfield} outputs a string, not a date object, which would be fine but the format of the string is not compatible with the .date object.
    I started down the path of lengthy substrings > variables, then linked variables > date object but after lines and lines of code, wondered if there was a simpler way that I was overlooking??

    I'm trying to do a basic calculation with a CRM date form in BC.
    I have a form field 'dateJoined' (though this could easily be the standard DOB field for the sake of this exercies) and I need to use javascript to calculate how many days have passed between today's date and the date in 'dateJoined'.
    The {module_customerfield} outputs a string, not a date object, which would be fine but the format of the string is not compatible with the .date object.
    I started down the path of lengthy substrings > variables, then linked variables > date object but after lines and lines of code, wondered if there was a simpler way that I was overlooking??

  • Formula Created in BI Query appears in Universe as Measure with No Data

    Hi,
    I have created the universe on top of SAP BI Query(Which is built on Infoset).
    There are some formulas created in BI Query as mentioned below:
    Eg: Status1=
                        If Completion Code = null then Status1 = 0 
                        If Completion Code = =10,11,18 then Status1 = 1
          Status2=
                         If Status1= 1 and Field Completion Date <= Regulatory Due Date then Status 2 = 3
                         If Status1= 0 and Report Date <= Regulatory Due Date then Status 2 = 4
    In the Universe I get Status1 and Status2 as Measures.
    When I use these Measure Objects in WebI report, I donu2019t see any Data for these objects in WebI Report. Both the columns for Status1 and Status2 appear Blank with no data in it, although I get the data in SAP BI Query for both Status1 and status2.
    Is there any issue with the formulas to be used in SAP BI Query?
    Are Formulas supported in Business Objects from SAP BI Query?
    regards,
    Nisha

    Hi Ingo,
    I tried running the standard test MDX in MDXTEST and I got the data for those calculations.
    But I wonder why there is no data in WebI for those formulas(Key Figures)?
    In Standard test MDX the MDX Query is as Follows:
    SELECT
    [Measures].MEMBERS ON COLUMNS,
    NON EMPTY [Z_WM_IS01___F98].[LEVEL01].MEMBERS ON ROWS
    FROM ZWM_M02/Z_ZWM_M02_Q001 SAP VARIABLES
    [!V000001] INCLUDING [Z_WM_IS01___F15].[3]
    Based on above Query I created the WebI report which includes the objects as described below:
    one Dimension Object Notification Number which is equivalent to [Z_WM_IS01___F98].[LEVEL01].MEMBERS  from above query.
    Selected All the measures objects available in query which refers to [Measures].MEMBERS
    And  one Prompt on Region which is equivalent to [!V000001] INCLUDING [Z_WM_IS01___F15].[3]
    Why there is no data for Calculation columns (Key Figures Status1 and Status2) in WebI Report???

  • How to tune performance of a cube with multiple date dimension?

    Hi, 
    I have a cube where I have a measure. Now for a turn time report I am taking the date difference of two dates and taking the average, max and min of the date difference. The graph is taking long time to load. I am using Telerik report controls. 
    Is there any way to tune up the cube performance with multiple date dimension to it? What are the key rules and beset practices for a cube to perform well? 
    Thanks, 
    Amit

    Hi amit2015,
    According to your description, you want to improve the performance of a SSAS cube with multiple date dimension. Right?
    In Analysis Services, there are many tips to improve the performance of a cube. In this scenario, I suggest you only keep one dimension, and only include the column which are required for your calculation. Please refer to "dimension design" in
    the link below:
    http://www.mssqltips.com/sqlservertip/2567/ssas--best-practices-and-performance-optimization--part-3-of-4/
    If you have any question, please feel free to ask.
    Simon Hou
    TechNet Community Support

  • Credit memo with value date

    Hello Gurus,
        for field " Credit memo with value date" in billing document,  field VALDT (fixed value date) in the credit memo request is filled with the payment deadline baseline date of the base billing document. where is that payment deadline baseline date of the base billing document ?
    Many thanks,
    Frank Zhang

    Hi
       That pament date is the date of line item comes due for payment. Billing date+Pament terms= Due date.
    This field is helpful for the following scenario,
    You have sent an invoice on 01.08.08 and the pament due date is one month. Due on 01.09.08. This is calculated from the pament term. Now the customer rejected some ofthe material and sending you back as sales returns. Now you are creating a credit note on 04.08.08 and post it to accounting. If the due date of the original invoice is not taken for consdered then you are paying the customer who has not yet pay you for the original invoice.To avoid this, the pament due date is taken from the original invoice if you mark VALDT field.

  • Issue with Java date when different timezone involved

    Hi
    I am facing a problem with java util and SQL date due to different time zones,
    We have a applet which displays data as gant chart( microsoft project type)
    We have our server in NY (EST) which reads data from database (in EST) and sends this data to applet using applet-servlet communication (seralize object)
    This applet gets this date from servlet, does some calculation for pixcels and paints it, but now i am having problem with this calculation, since the date coming is from EST and calendar object in applet is from CST.
    How do i resolve this
    Ashish

    How are you passing the date or doing the calculation?
    I guess you're not using java.util.Date because then would have no problems. The Date class already accounts for different timezones; an instance represents a single moment of time which can be rendered differently depending on the time zone.

  • How to start with Master data management

    Hi All,
    I want to start with Master Data Management. Can any one provide me proper material to get the knowledge on Master Data Management Integration. And What is the relationship between XI.and for starting MDM what all settings i have to do???
    Its really urget plz help me out.
    Thanks,
    Seema Khandelwal
    Message was edited by:
            Seema khandelwal

    Hi ..
    look at this documents
    /people/andreas.seifried/blog/2007/08/30/how-to-use-the-test-environment-of-the-mdm-enrichment-controller
    /people/harrison.holland5/blog/2006/11/27/mdm-syndication
    /people/harrison.holland5/blog/2007/01/22/testing-and-monitoring-an-interface-between-mdm-xi
    see this Wiki to find all the documentation on MDM:
    https://wiki.sdn.sap.com/wiki/display/HOME/MasterDataManagement
    Here, for the components you need to install:
    https://wiki.sdn.sap.com/wiki/display/HOME/MasterDataManagement+Components
    Others smart links are here:
    - sdn e-learning.
    https://www.sdn.sap.com/irj/sdn/mdm-elearning
    http://service.sap.com/installMDM for a
    you can use expression editor to do that:
    have a look at this guide on how dates can be calculated there
    with your field it can be very similar:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b025fab3-b3e9-2910-d999-a27b7a075a16
    for more details about expression editor:
    Calculation Fields chapter
    https://websmp108.sap-ag.de/~sapidb/011000358700006291622006E
    MDM 5.5 SP05 - ABAP API
    https://websmp101.sap-ag.de/~sapidb/011000358700000271902007E
    MDM 5.5 SP05 - ABAP API How To Guides (ZIP File)
    https://websmp101.sap-ag.de/~sapidb/011000358700000271912007E
    How to Identify Identical Master Data Records Using SAP MDM 5.5 ABAP APIs
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e060251e-b58d-2910-02a2-c9a1d60d9116

  • Calculation based on date key figures in BEx

    Hi Friends,
    Hi Friends,
    I need to creat report for sales order data, which involved the calculation based on dates.
    In my cune iam having the data at the granual level with the dates as key figures. the calculation that i need to do is VTW = Actual PGI date - Customer want date.
    1) whn i run the report at the granual level my VTW is working correctly. No issues.
    2) when i run the report at higher levels the date fields are updated with X, as the system is unable to aggrigate the dates. The dates are at the material level in  a sales order. I need to show the VTW at the sales order level (each one of the two dates are same for all the materials). So, when i run the report with out mataril at the sales order level...i wanto sea the bothe date fields in a single line and also the VTW calculated as the different between throse two dates.
    3) Once we get the VTW correctly at the sales orde level. if i drill down the report for material, i want to sea both the dates in every record againest the matarial, but the VTW only aginest the first record...that is againest the sales order. I dont waht the VTW value repeated/duplicated for all the records againest the sales order,as VTW makes sence only at the Sales Order level.
    Please suggest me hwo i can achive the resulsts by meeting both Point 2 and 3.
    Thanks for ur help...in advance.
    Thanks,
    Renu

    Hi..
    I have the data from the extractore and in the cube as below.
    SALES ORDER    ITEM                MATERIAL            DATE1                         DATE2
    101                        Item1               Mat1              01/01/2010                15/01/2010
    101                        Item2               Mat2              01/01/2010                15/01/2010
    101                       Item3                Mat3             01/01/2010                15/01/2010
    I need the reports as below...
    Report1:
    SALES ORDER        DATE1                         DATE2                  VTW (DATE2 - DATE1)
    101                        01/01/2010                15/01/2010                14
    currently iam getting this Report1 output as below...
    SALES ORDER        DATE1                         DATE2                  VTW (DATE2 - DATE1)
    101                             X                                   X                           42
    Report2: Out put required as below
    SALES ORDER     ITEM                MATERIAL            DATE1                         DATE2      VTW (DATE2 - DATE1)
    101                        Item1               Mat1              01/01/2010                15/01/2010              14
    101                        Item2               Mat2              01/01/2010                15/01/2010
    101                   I     tem3                Mat3             01/01/2010                15/01/2010
    currently iam getting this Report2 output as below...
    SALES ORDER     ITEM                MATERIAL            DATE1                         DATE2      VTW (DATE2 - DATE1)
    101                        Item1               Mat1              01/01/2010                15/01/2010              14
    101                        Item2               Mat2              01/01/2010                15/01/2010               14
    101                   I     tem3                Mat3             01/01/2010                15/01/2010               14
    As VTW is need to be measued at the sales order level and we always have the DATE1 & DATE2 as same for all the itesm, it should be shon as only 14 in the first record. It mean once iget the required output from Report one in a single line with VTW as 14, it should not repeat with every line , when i dril down the report for Items or materials.
    Even if i can generate oly report2 as required in a single sheet ...that will be enough.
    Plas kindly provide some solution as how we can achieve this,
    Thanks,
    Renu

  • Creating a dynamic nested menu with xml data received from a webservice

    I need to create a dynamic menu based on a xml returned by a webservice.
    the xml comes basically in this format:
    [quote]
    <resposta>
        <status>Success</status>
        <mensagem>Whatever</mensagem>
        <dados>
            <projeto nome="name" cliente="client name">
                <atividade nome="name">
                    <etapa>
                        <nome>name</nome>
                         <other_attributes>...</other_attributes>
                    </etapa>
                    (other etapas)
                 </atividade>
                 (other atividades)
            </projeto>
            (other projetos)
        </dados>
    </resposta>
    [/quote]
    What I need is to create a menu like:
    - Projeto.Nome - Projeto.Cliente:
        - Atividade.nome:
            (start button) etapa1
            (start button) etapa2
    - Projeto2.Nome - Projeto2.Cliente:
        - Atividade.nome:
            (start button) etapa1
            (start button) etapa2
    And so on...
    I've tried using an HTTPService and a DataGroup, this code above works fine for  display the projeto's names:
    [quote]
    <s:HTTPService id="loginService"
                            url="http://timesheet.infinitech.local/services"
                            method="POST" contentType="application/xml"
                            result="handleLoginResult();"
                            fault="handleFault(event);" >
                            <s:request xmlns="">
                                <requisicao>
                                    <tipo>login</tipo>
                                    <usuario>{campoUsuario.text}</usuario>
                                    <senha>{campoSenha.text}</senha>
                    </requisicao>
                </s:request>
    </s:HTTPService>
    and the DataGroup:
    <s:DataGroup dataProvider="{tarefasService.lastResult.resposta.dados.projeto}" width="100%" y="100" x="20"
                         includeIn="Principal">
                <s:layout>
                    <s:VerticalLayout />
                </s:layout>
                <s:itemRenderer>
                    <fx:Component>
                        <s:ItemRenderer>
                            <s:layout>
                                <s:HorizontalLayout />
                            </s:layout>
                            <s:Button />
                            <s:Label text="{data.nome}" />
                        </s:ItemRenderer>
                    </fx:Component>
                </s:itemRenderer>
            </s:DataGroup>
    [/quote]
    I have then tried including another datagroup inside the datagroup item renderer, but I just couldn't get it to work anyway, and tried it in a lot of ways... (basically, it would be a datagroup with dataProvider={data.atividade}).
    Can anyone tell me how to get this to work?
    I've uploaded an example xml, you can use it as the url for the HTTPService:
    http://www.pdinfo.com.br/example.xml
    Thanks in advance.

    Hi,
    A lot of the information you need is in Adobe's scripting guide http://www.adobe.com/go/learn_lc_scriptingReference  Also there is a very useful Adobe guide to Calculations and Scripts (and while it is for version 6 it is still very good because of the way it is laid out) http://partners.adobe.com/public/developer/en/tips/CalcScripts.pdf
    The Javascript could be used in the Layout: Ready event.
    For italic font:
    if (...some test...)
         this.font.posture = "italic";
    else
         this.font.posture = "normal";
    For bold font:
    if (...some test...)
         this.font.weight = "bold";
    else
         this.font.weight = "normal";
    The script will change the font for the complete field. I don't think you can change parts of a field.You can also change font colour and font type (the guides above will help).
    Good luck,
    Niall

  • Compare - Current Data with Perious Data.

    Experts,
    We have created default report like below
    Date - Company - Product - SCode - Amt Spent - Net Amt - Calls
    12/12/2010 C1 P1 Code1 1000 1500 15
    13/12/2010 C2 P4 Code2 1500 1200 10
    12/12/2009 C1 P3 Code3 2000 1700 25
    11/12/2010 C3 P1 Code4 3000 1600 10
    11/11/2009 C2 P2 Code5 5000 3000 30
    Grand Total 12000 9000 90
    Here we are using Column selector for Date column to change the report from Date to Week (or) Month (or) Quarter (or) Year.
    My Questions
    1. I want to compare Default Date report with Perious Date, Last month Date and Last Year Date.
    2. If I select Month from Column Selector then I want to compare Month report with Last Month, Last year Month or Perious of Last year month.
    3. If I select Year from Column Selector then I want to compare Year report with Last year, or Perious of Last year and so on.
    Please help me, how can we achive the above task.
    Thanks in Advance.
    Balaa...

    Hello,
    First you have to define the new measures for last month, last year and so on. You can refer to this link:
    http://www.rittmanmead.com/2007/04/obi-ee-time-dimensions-and-time-series-calculations/
    After that, what you can do is instead of using a "Column Selector" you should use "View Selector". You can create different views, one for month, other for Year and include them into a "View Selector".
    After that you can add it in "Compound Layout".
    Regards,
    JorgeRS.

  • Web Analysis : populate the same table with multiple data sources

    Hi folks,
    I would like to know if it is possible to populate a table with multiple data sources.
    For instance, I'd like to create a table with 3 columns : Entity, Customer and AvgCostPerCust.
    Entity and Customer come from one Essbase, AvgCostPerCust comes from HFM.
    The objective is to get a calculated member which is Customer * AvgCostPerCust.
    Any ideas ?
    Once again, thanks for your help.

    I would like to have the following output:
    File 1 - Store 2 - Query A + Store 2 - Query B
    File 2 - Store 4 - Query A + Store 4 - Query B
    File 3 - Store 5 - Query A + Store 5 - Query B
    the bursting level should be give at
    File 1 - Store 2 - Query A + Store 2 - Query B
    so the tag in the xml has to be split by common to these three rows.
    since the data is coming from the diff query, and the data is not going to be under single tag.
    you cannot burst it using concatenated data source.
    But you can do it, using the datatemplate, and link the query and get the data for each file under a single query,
    select distinct store_name from all-stores
    select * from query1 where store name = :store_name === 1st query
    select * from query2 where store name = :store_name === 2nd query
    define the datastructure the way you wanted,
    the xml will contain something like this
    <stores>
    <store> </store> - for store 2
    <store> </store> - for store 3
    <store> </store> - for store 4
    <store> </store> - for store 5
    <stores>
    now you can burst it at store level.

  • Calculations with Cumulated CKFs

    Hey,
    I need to make additional calculations on the values of a CKF that is marked as cumulated.
    We know that the calculation made on this column are executed against the non-cumulated value, and we basically need to execute them on the cumulated value.
    Can you please provide some insight on the ways to deal with this limitation?(BTW - we tried to check the "cumulated" checkbox for the calculated column and that doesn't help of course.
    Thanks,
    Gili
    Message was edited by: Gilad Weinbach

    Hi,
    and thx for the quick answer. But unfortunately the Server Complex Aggregate aggregation doesn't solve my problem. I also think I didn't express my self clear enough.
    My problem is, that I have the same tuple multiple times in my database table. When I sum this data up - I get wrong results. To avoid this I used the SUM DISTINCT aggregation. This worked very fine. But now I'm facing an other problem. I have to perform a simple subtraction.
    I have a fixed non measure value. I have to subtract the Sum Distinct measure from this fix value for a specified time periode.
    it looks like this:
    Pivot table
    Name --- Days available(non measure) --- Work date --- Days worked (SUM) measure --- Days worked SUM(Distinct) measure
    Mr.A --- 40 --- 1.5 --- 6 --- 3
    Mr.A --- 40 --- 1.5 --- 6 --- 3
    Mr.A --- 40 --- 2.5 --- 6 --- 3
    Mr.A --- 40 --- 3.5 --- 6 --- 3
    Mr.A --- 40 --- 3.5 --- 6 --- 3
    Mr.A --- 40 --- 3.5 --- 6 --- 3
    SUM ---- 40 --- .... ---- 6 --- 3 -> Days left: 34 (wrong result - should be 37)
    I get the right result - but when I now try to calculate "Days available - Days worked SUM(Distinct)" I get the same results like I would do the calculation with
    "Days available - Days worked SUM".
    And is there a way to hide the multiple values in Days worked?
    thx

Maybe you are looking for

  • IPod Video to TV not working

    I can't seem to get my video to display on TV... -(I'm using apples cable, and have TV video set to Out, iPod video 60g) Nothing appears on screen, and audio is just static I've tried on 3 seperate TVs - all via composite inputs. The video in questio

  • Creative Zen Touch stuck in Recovery M

    Bear with me please since my english is not the best, but I'll try to explain my problem as good as I can. Both me and my girlfriend have Creative Zen Touch mp3-players, and yesterday we were gonna update the firmware on both of them. We went to the

  • Email date format

    I have a query regarding the default date format in regard to email messages. When sending email the message from my pc appears to the recipient the date format is for example: From: me <************@btinternet.com> To: Someoneelse <**********@btinte

  • Installing 32-bit alongside 64-bit

    I have the 64-bit drivers installed successfully on my 64-bit Windows 7 system, and they work correctly. I need to install the 32-bit drivers as well, but I haven't been able to make them work yet. When I open the 32-bit ODBC Data Source Administrato

  • PM Orders Basic & schedule finish date

    Hi Experts, I want the basic start & finished date similar to schedule start & finishe date  in any condition.For e.g. if i change the basic start & finished date the schedule start & finished date should become similar to basic start & finish date a