How to create an item to calculate dynamically.

Hi all

use case: I have an attribute Division and an AMT measure. I created a pie chart, using these attribute

slice of pie chart show amt of each Division. I created prompt for the division so only selected division are display on the pie chart.

so it works very well now my requirement is like selected slice division showed on the chart in addition a member as 'other' appearing on the pie that displays the sum of unchecked

Division of ex-

AMT Division

JK 100

JL 200

JC 125

IN 100

so if the user select 'Kindergarten' and 'JL' on camembert guest should display unit 3

1 JK 100

2 JL 200

3 other 225 (sum members deselected).

time of execution for this I created on compute point, but these values are fixed and incapable of defining

Is it possible to achieve this use case?

or in any other way to meet this requirement

Thank you

Manish

Redefine your column of division that this decision by changing the formula for the column, or create a new column and use this column as your attribute in your cards instead of using calculated items. I stay away from the calculated items where possible and pass down to the database as well if you can. It is easier solve the problems that you can see which are current and test sql sent Physics (which is what will do the TRICK.

Tags: Business Intelligence

Similar Questions

  • How to create an item as a link

    Hello

    has someone an idea how to create a component (for example, between two text elements) which displays a default text and works as a link.

    Thanks in advance.

    Kind regards
    Martin

    Hello

    I found the resolution. I created an element with the following properties.

    1. identification / displayed as: "view only".

    2 source / Source of value or an expression: url > Hello

    3. safety / escape special characters: No.

    Kind regards

    Martin

  • How to create an item of the display of the Image with functions Apex?

    Hi everyone :)

    I'm working on the 4.1.1.00.23 Apex in an 11g database XE.

    I want to display an Image in a report, I can do this by using the ' + BLOB download Format mask + ", but the images displayed in the original format and I want to display the smaller.

    I read that you need to create a procedure, a SYNONYM and call them to the src of the img tag. as Zsuzsi Vadasz mentions here
    http://blog.hilandco.com/2010/05/How-to-show-BLOB-type-column-as-image.html

    But I remember that I was able to create items in reports with the functions of the Apex, I think they were APEX_ITEM package, so I want to know if there is a way to create the '+' display Image + element with a function of APEX.

    Thank you.

    Diego (SniperCat) wrote:

    I'm working on the 4.1.1.00.23 Apex in an 11g database XE.

    I want to display an Image in a report

    Always specify if "report" means the report standard or interactive.

    I can do this by using the ' + BLOB download Format mask + ", but the images displayed in the original format and I want to display the smaller.

    I read that you need to create a procedure, a SYNONYM and call them to the src of the img tag. as Zsuzsi Vadasz mentions here
    http://blog.hilandco.com/2010/05/How-to-show-BLOB-type-column-as-image.html

    This post was obsolete when it was written. Use the built-in support of BLOB.

    Resizing of the declarative BLOB images in reports is simple using CSS. Add a style sheet with:

    td[headers="PHOTO"] img {
      display: block;
      width: 40px;
      border: 1px solid #999;
      padding: 4px;
      background: #f6f6f6;
    }
    

    where the value of the PHOTO in the attribute selector is the ID of the image column table header. Define only a single dimension (in this case the width) will scale the image with the correct proportions. (Background, padding and border properties are just eye candy...)

    However, the scaling of the images in the browser in this way is a huge waste of bandwidth and product of lower quality images than to create good scaled down versions using image tools. Image download megapixel and then to reduce them to the size of the thumbnail result in needlessly pushing millions of bytes which will never be seen.

    For better performance and image quality, and where you need specific image scaling of the best approach is to use the ORDImage database object to produce thumbnail and preview automatically versions. Unfortunately, this is not possible in Oracle XE as multimedia is not included :-(.

  • How to create several items

    Hello!

    I have a problem, at my request, I have to use form elements (text box, radio button,...) but I don't know how. It could be either one or maybe 50. I create image, so it will be easier to understand. So when I press the red button, I get a new line of my articles. is it possible for me to do something like that?

    image

    I hope you understand me and sorry for my bad English.

    TNX
    Dragan

    Hello

    Probably, you use in table form.
    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21674/bldapp_frm.htm#BCEECEFA

    Or PL/SQL dynamic content area
    >
    PL/SQL dynamic content
    Regions in PL/SQL function allow you to HTML or text using the PL/SQL Web Toolkit.
    >
    and APEX_ITEM
    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21676/apex_item.htm#CACEEEJE

    Kind regards
    Jari

    -----
    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

  • How to create a function to calculate the calendar

    Oracle Forms 6i

    Hai

    I'm generating a daily presence that is stored in the database with the fields

    Empcode, attend_date, intimate, outtime, extratime, deptcode, unitid and some other things

    I need to create a function by taking these fields of the table unitid, empcode, intimate, outtime, attend_date, deptcode and return total hours he worked, and more than 8 means it will add in extra time.

    If it is possible to give the run of the date value to which to this day, you must calculate.

    Thanks in advance

    Srikkanth.Ml

    Srikkanth,
    Depending on how you stated your RESPONDENT and OUTTIME, columns this should quite simply be a calculation. For example, if you have declared these columns as DATE columns, the following calculation should work:

    SELECT NVL(OUTTIME,SYSDATE) - INTIME AS hours_worked
    FROM DAILY_ATTENDANCE
    WHERE EMPCODE = "Emp Code of the employee you are evaluating";
    

    Once you have the HOURS_WORKED, you can check if the amount is greater than 8 (or whatever is the approved duration of working hours of the employee's) to determine if he or she worked longer than their approved shift back the extra time, and the user has worked or NULL or zero if they have not exceeded their shift.

    If you have set up the columns of time as something other than the DATE or DATETIME, you will need to convert the values in input/OUTPUT at a DATE so that you can use the functionality of calculation date default Oracle or you need to build your own process of calculation of the WORK_HOURS based on how you store the RESPONDENT and OUTTIME values.

    I hope this helps.
    Craig...

  • How to create mulitple items and follow them?

    I try to add dynamically a row of buttons - the number of buttons depends on the length of an XML file.

    So far, all I can do is to continue the creation of a single button, and I continue to the descendant 20px, instead of creating a new a 20px lower. So instead of (for example) create 5 touches all spaced 20px the apart, I find myself with only a 100px button down.

    I also need to follow each button somehow so I can use it to call that is clicked on specific actions.

    Here is what I have that just keep moving the button down both 20px.

    OK, understood the iteration and now I have these little button placed uniformly, exactly as I wanted. But I still don't know how to access each of them. I think I need to access an index of each, that way I can do correspond to the index of the label list box that sits on. So, how do you do about it?

    Thanks kglad. I had figured it out. I made a nest throughout the service according to the guidelines of your recommendation and my suspicions. That didn't fix it. But changing the eventListener in the addButton service fix. I changed this.addEventListener to newButton.addEventListener and all is well. I checked everywhere I can think of and it all works.

    Thanks for your advice and patience. I really appreciate your willingness to keep control, my code to read and give me your comments. It's my first AS3 project and it really started my butt! But boy have I learned a lot thanks to you and others here in the forums.

    Thanks again!

  • How to create an item that scrolls (like a web page) in 8 Captivate

    Hello all and thanks in advance for the help at this point.

    I wish I had a picture that scrolls with the users click/drag on the Captivate slide similar to what a web page.

    This image will be intelligent forms for the user to click on.

    How can I create the scroll?

    How to lock or fix smart shape to stay where I want it on the enlarged image when it scrolls?

    I am using captivate 8.

    Thanks again for the help,

    Kelli

    I put the image in an actual html file inside a div with height and width. This zip file and insert as a html5 animation.

    There are several ways to allow the user to click on the window real div and drag. GreenSock has the best but JavaScript solutions do exist as well, not as smooth.

    GreenSock | Draggable

    Scroll down to the 3rd example

    jQuery

    http://jQueryUI.com/draggable/#default

    You can also put a smartshape on top of HTML5 animation.

  • How to dynamically create action item?

    Hi, I want to dynamically create point.

    Before I want to create using qml, but does not seem possible

    http://supportforums.BlackBerry.com/T5/Cascades-development/how-to-create-action-item-of-page-dynami...

    So maybe better to use C++ to create dynamically,

    I'm already try but are still not

    So I have a custom control qml (a Navigation pane)

    name List.qml

    the structure is like this:

    NavigationPane {}

    {Page}

    objectName: myPage

    {Of container

    ....

    }

    }

    }

    How to add action item to this .qml?

    I'm already try that, but failed

    C++ :

    Engine QDeclarativeEngine;

    QDeclarativeComponent component(&engine,QUrl::fromLocalFile("List.qml"));)

    QObject * object = component.create ();

    Page * myPage = object->findChild ("Edit");  Maybe, on that note, I'm wrong implemented? -> not found?

    ActionItem * action1 = ActionItem::create () .title ("first action");

    my page-> addAction (action1, ActionBarPlacement:nBar);

    Remove the object;

    How to create this dynamic Action item?

    Help, please

    Thank you

    Hello

    QML, the object name must be included between "" marks.

    Name of the object of your Page will be:

    objectName: "myPage"
    

    You can reach any CPP QML object like this:

    This excerpt comes from YourProjectName.cpp

    // create scene document from main.qml asset
    // set parent to created document to ensure it exists for the whole
    // application lifetime
    
    QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
    
        // create root object for the UI
        AbstractPane *root = qml->createRootObject();
        // set created root object as a scene
        app->setScene(root);
    
    //and here comes the findChild method
    Page* qmlPage = root->findChild("myPage");
    

    After this, you can create any object on the side of C++ QML, as your own code:

    ActionItem* action1 = ActionItem::create().title("First action");
    myPage->addAction(action1, ActionBarPlacement:nBar);
    

    Don't have no need to create a QObejct, or declarative stuff.

  • How to create a report based on the item selected from the list of selection?

    Hello

    I created a tables_LOV based on:

    Select table_name table_name user_tab_cols r, d

    where column_name like '% _type % '.

    Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.

    I run the page, and I can choose the table I want in the drop-down list.

    How to create a report based on the selected element? (ex: select * from selected_table)

    Thanks in advance

    Salah

    Hi Salah,

    Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report

    I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.

    The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION

    To recreate my example, you should:

    (1) create a report (interactive) on your collection

    SELECT *
       FROM APEX_collections
     WHERE collection_name = 'MY_COLLECTION'
    

    (2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")

    (3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:

    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
    
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
        );
    end;
    

    Make sure that you add your page_item 'Page to send items' section.

    (4) add a real extra action that makes an update of the report area.

    Here are two photos describing the da:

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG

    Good luck and greetings,

    Vincent

    http://vincentdeelen.blogspot.com

  • How to create a dynamic RTF report that creates dynamic columns based on the selection of dynamic columns in a table?

    Hi all

    Suppose I have table, whose structure changes frequently on a daily basis.

    For example. / / desc my_table gives you after the name of the column the day 1

    SQL > my_table DESC;

    Output

    Name

    Age

    Phone


    Day 2, two other columns are added, viz, address and salary.

    SQL > my_table DESC;

    Output

    Name

    Age

    Phone

    Address

    Salary


    Now, I want to create a Dynnamic RTF report which made extracting data from all columns from my_table daily. For this, I have defined a simultaneous program with XML output type and include in annex a data/definition of data model that takes XML as input and gives the final result of the conc program in EXCEL layout. I am able to do that for a constant number of columns, but don't know how to do it when the number of columns to display dynamically changes.

    For 1 day my XML file should be like this.

    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT Name
    ,Age
    ,Phone
    FROM my_table
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_my_table" source="Q2">
      <element name="Name" value="Name" />
      <element name="Age" value="Age" />
      <element name="Phone" value="Phone" />
    </group>
    </dataStructure>
    </dataTemplate>
    
    

    And my day 1, EXCEL output RTF model should be like this.
    Name age phone

    Swapnill 23 12345

    For 2 days my XML file should be like this. With 2 new columns selected in the SELECT clause.

    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT Name
    ,Age
    ,Phone
    ,Address
    ,Salary
    FROM my_table
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_my_table" source="Q2">
      <element name="Name" value="Name" />
      <element name="Age" value="Age" />
      <element name="Phone" value="Phone" />
      <element name="Address" value="Address" />
      <element name="Salary" value="Salary" />
    </group>
    </dataStructure>
    </dataTemplate>
    
    

    And my day 2, exit EXCEL model RTF should be like this.
    Name address telephone pay

    23 12345 Madrid 100000 Swapnill

    Now, I don't know below things.

    • Make the dynamic XML as we did in the day 1 there are 3 columns in the SELECT statement and the day 2, 5 columns. I want to create a dynamic XML which must not be changed if the new columns are added into my_table. I don't know how to create this query and also create their corresponding items below.
    • Make the RTF model dyanamic as day 1 there are 3 exit EXCEL columns and the day 2, 5 columns. I want to create a dynamic RTF model that would display all the columns selected in XML dynamic. I don't know how the RTF will create new XML tags and how it will know where to place them in the report. Means, I can create model RTF day 1, by loading the XML data for 3 columns and place 3 tags XML in the model. But how he will create and place the tags for the new columns the day 2?

    Hope so, you got my requirement, it's difficult. Please let me know how I can implement the necessary solution using the RTF dynamically without any manual intervention.

    Kind regards

    Patricia K.

    Post edited by: SwapnilK

    Hi guys,.

    I was able to solve above the requirement.

    I created a procedure that would create & update (attached to the data definition) XML file dynamically for each race. This dynamic XML contains the SQL statement for the data query that is built dynamically. I am updating this XML file using XDOLoader utility to the definition of data. Then run my program customized to generate the excel output.

    Exit excel retrieves correct number of columns dynamically (3 on Day1 and Day2 5), with corresponding data records.

    Kind regards

    Patricia K.

  • How to create dynamic ObjectChoiceField?

    Hello friends,

    I want to create the search section for what I want to create dynamic choiceField. Tell me how to create that. I want 4 field of choice.

    Select the Continent-> Africa, Asia, Europe, America, South America, Antarctica, Oceania
    Select the country
    Select the region
    SELECT City

    here if I select Asia I want to show in the field of choice throughout Asia of County County, after that, if I sect Asia County I want to show all the area of that County and if I show a region that show the whole of the region. Than please tell how I do?

    It doesn't matter what Web service?

    How I do?

    you found NPES because obj_country is null.

    I think you can try with the recording of information in text files.

    String str_continent[]= new String[]{"Select Continent","Africa", "Asia", "Europe"," North America", "south America"," Antarctica","Oceania"};
    final ObjectChoiceField obj_Country=new ObjectChoiceField();
            obj_Country.setLabel("Countries");
    final ObjectChoiceField obj_continent=new                                                                                         ObjectChoiceField("Continent",str_continent){
             protected void fieldChangeNotify(int context) {
            if(getSelectedIndex()==2)
                    {
    InputStream in = getClass().getResourceAsStream("Asia.txt");
    String[] asianCountries =new  String[0];
    try {
    asianCountries = StringUtilities.stringToWords(new String(IOUtilities.streamToBytes(in)));
    } catch (IOException e) {
    e.printStackTrace();
    }
    
                        obj_Country.setChoices(asianCountries);}
    super.fieldChangeNotify(context);
                }
            };
    
            add(obj_continent);
            add(obj_Country);
    
  • How to create items if necessary?

    Hello.

    If I'm creating elements that have the effect of stairs (don't know if its called that, but he describes it best). But I don't know how to control the number of objects to create.
    What I mean is I want to create a new element when the whole body a precedent is seen on the stage. In pictures, it will be apear like this

    When I have the 1st article on the stage:

    wanted1.png

    then to create only the second element

    wanted2.png

    and so on. And when 1 item is beyond stage.x to dell / / / itemToTrack.x is the circle

                                                      if(itemToTrack.x < 0)
                                            {
                                                      itemsToAnimate.splice(i, 1);
                                                      this.removeChild(itemToTrack);
                                            }
    
    

    but with my code, I have to present items created each image (this is the reason why I trace Q). You don't see them, but they are somewhere after stage.stageWidth

                            private var itemsToAnimate:Array = []
      
                        private var Q:Number =1
      
                        private var max:Number = 100
                        private var min:Number = stage.stageHeight - 100
                        private var vertSpacing:Number = 20
                        private var horSpacing:Number = 20
      
                        private var increasing:Boolean = true;
                          private var lastY:Number = min + vertSpacing;
    
    
    
                        public function AB_Main()
                        {
                                  this.addEventListener(Event.ADDED_TO_STAGE, init);
                        }
    
                        private function init(evt:Event)
                        {
                                  this.removeEventListener(Event.ADDED_TO_STAGE, init);
                                  this.addEventListener(Event.ENTER_FRAME, onEveryFrame);
                        }
    
                        private function onEveryFrame(ev:Event):void
                        {
                                  createItems()
                                  animateItems();
                                  trace(Q)
                        }
    
                        private function animateItems():void
                        {
                                  var itemToTrack:Circle;
    
    
                                  for(var i:uint = 0; i < itemsToAnimate.length; i++)
                                  {
                                            itemToTrack = itemsToAnimate[i];
                                            itemToTrack.x -= 3;
    
                                            if(itemToTrack.x < 0)
                                            {
                                                      itemsToAnimate.splice(i, 1);
                                                      this.removeChild(itemToTrack);
                                            }
                                  }
                        }
    
    
                        private function createItems():void
                        {
                                            var c:Circle = new Circle(); //where Circle would be your dot with registration point in center
                                            c.x = stage.stageWidth + Q * horSpacing; //hardcoded margin
    
                                            if(increasing)
                                            {
                                                      c.y = lastY - vertSpacing
                                            }
                                            else if (increasing == false)
                                            {
                                                      c.y = lastY + vertSpacing
                                            }
                                            lastY = c.y;
                                            addChild(c);
    
                                            if(c.y <= max) increasing = false;
                                            if(c.y >= min) increasing = true;
                                            itemsToAnimate.push(c)
                                            Q++
                        }
    
    

    So how to create something when I need only?

    Why you add objects in the scenes?  that serves any purpose?

    in any case, if you try only prevent objects backstage to the left, use:

    if( stage.stageWidth + Q * horSpacing - c.width/2 > 0){

    return;

    }

  • How to create personalized with a dynamic date stamps

    I tried to create a customized with a dynamic date stamp. But the date is not dynamic. Help, please

    There are a number of things that need to be properly configured for a stamp to work as a dynamic stamp, form the name of template to the calculation script. If you provide the details of how you set the PDF stamp, it would be useful, as would the next book that has all the information you need: www.amazon.com/About-Stamps-Acrobat® - without paper-Workflows/dp/0985614706 /.

  • How to create scopes ViewObject dynamically

    Hello


    I need to create the view scope object dynamically.

    IE while running, I'll pick the name ViewObject alone, extended VO should get created.

    then any body tell me how to do it.

    I use Jdeveloper version: 11.1.1.3.0


    Kind regards
    Vini

    Published by: Vini on February 17, 2011 22:13

    Method in your AM:

    public String buildVOExtended (String basicVOName) {}
    String fullBacicVOName = new (StringBuilder ("model")). Append (basicVOName). ToString();
    String extendedVOName = (new StringBuilder (basicVOName)).append("_EX").toString ();
    NewView ViewDefImpl = new ViewDefImpl (ViewDefImpl.DEF_SCOPE_SESSION, extendedVOName, fullBacicVOName);
    /*
    * Here doing what you need to do as newView.addViewAttribute ("test1", null, String.class);
    */
    newView.resolveDefObject ();
    newView.registerDefObject ();
    createViewObjectForDef (extendedVOName, newView);
    Return extendedVOName;
    }

  • How to create objects dynamically (with # dynamics of parameters)

    I need to create a set of objects based on a definition of an XML file (obtained from the server) and add them to my scene.

    I understand how to create the object using getDefinitionByName (and limitations on classes that need to be referenced to be loaded into the SWF file).

    But some objects require parameters for the constructor, and others do not. The XML code can pass easily in required parameter information, but I can't figure out how to create a new object with a dynamic set of arguments (something similar to the use of the Function.Call method of (obj, argsArray).)


    For example, I need something like this works:

    var MC = new (getDefinitionByName (str) as class). call (thisNewThing, argsArray)

    Currently, it is that I can get:

    MC var = new (getDefinitionByName (str) as class)(static, list, arguments)

    Thoughts?

    I think what Dave is asking is a little different.

    He is eager to know how to call the constructor of an object dynamically (when he knows that the number of constructor arguments when running).

    This class I will do it, but seems to be a hack:

    s http://code.Google.com/p/jsinterface/source/browse/trunk/source/core/AW/utils/ClassUtils.a? spec = svn12 & r = 12

    See the "call" method, which has first counts the number of arguments and then calls one of the "n" construction methods based on the number of constructor args.

    I have yet to find a clean way of AS3 to do ala things 'call' however.

    -Corey

Maybe you are looking for

  • How can I allow Java 7.55 on Firefox 29?

    In collaboration with a training site that requires Java. I have the latest version of Java Runtime (55-7), Firefox blocks seem to note specifically on built 25 to 44, but maybe later built as well. My build is blocked.I tried a section which describ

  • Deskjet 6540 Fast print quality loses chutes

    I am running Windows 8.1 64-bit. I've owned this printer HP Deskjet 6540 for a long time now, so part of me wondered if I should just buy a new printer. However, it works great except for this last issue. In the last few weeks, I started to notice th

  • HP Deskjet 2050 A does not print

    no error message test paper does not print printer is ready We port is used

  • Fatal error 1603 during installation "communicator magellan.

    Original title: I get a fatal error during installation 'communicator magellan' so I can download the caches from geocaching.com is fatal error 1603 Help, please

  • WRT310N v1 and MacBook Pro wireless questions

    Hi all I had problems with my v1 WRT310N current wireless. I have a macbook pro (early 2009) with mac os 10.5.8. I have cable internet, a DHCP connection. I have a computer and cable to the PS3 via the router, and they work perfectly. The wireless, h