reg: pivot table calculation

Hello



is there a way to get the average and total calculated in the pivot table based on a column?


example,

in the time of country state id

in pivot, I want to calculate total and average for the country / state of time according to the number of id of country / state


Thank you

Yes, you can. Make use of elements calculated to reach.

Tags: Business Intelligence

Similar Questions

  • Calculation of pivot Table

    Hello

    I need to create a named calculation in a pivot table similar in total general on columns. However, I need to customize the calculation to perform on some lines and average amount on some lines.

    How can it be reached, the calculations will be appear in the same column for each row.

    Can anyone help?

    Thank you

    I don't know or force to try any time, but stuck in mind.

    Contribution - ID no
    9147.29 - 1
    1043.16 - 1
    Total 10190.45 - 2

    create a new column and write f (x) case when 1 = column_name 0 another amount (contribution) / sum (ID no.) end

    see you soon,
    KK

  • Calculating pivot table problem

    Hello..
    PivotTable using separate columns for calculation... How to avoid it. ?

    For ex:

    My database of records are like

    region date_id___amt_
    01012009 1000 North
    01012009 1000 North
    01012009 1000 North
    01012009 1000 South
    01022009 1000 North
    01022009 1000 South
    01022009 1000 South

    My pivot table design is

    Line: region
    Measure: Amt
    Column: Date_id

    I get a response such as

    ___Amt
    01012009 01022009 _
    _ Of the 1000 1000 North
    _ Of the 1000 1000 South

    But I need an output like

    ___Amt
    01012009 01022009 _
    _ Of the 3000 1000 North
    1000 South _ 2000

    I think that PivotTable has taken a distinct value for the calculation...

    How could I get above exit... ?

    Published by: Mohan 8732779 on September 1, 2009 04:03

    Mohan,

    What I got from above, is that you need a sum of the column. To change the aggregation behavior for amt column to say you said the aggregation would be separate. Just change to change the formula in sum, that it looks like something like this flat is what you want to achieve is not it?

    By,.
    Murielle.

  • How to get the QDR of ADF Pivot table datacell

    JDeveloper 11.1.1.5 version
    Java 1.6
    The ADF faces

    I want to click commandlink in a data cell that sends the value of the header cells to a bean of support. I think that we must get the QDR of a clicked data cell, but how?

    I created the PivotTable: column headers consist of a variable number of dates; row headers consist of the names of the units. The data that cross are a percentage of variance using energy over time. (There is no calculation in the PivotTable, just displaying data from the view).

    ........ 11 Jan 12 13 Jan Jan jan 14. .etc
    Module-1 2.00 5, 25 - 9.30-11.15
    Unit-2 - 554.22 497.00 7.70 2.00
    Unit-3 10.00 - 5, 00 5.00 1.00

    To the cell above it with 497.00 value, the user must click this value (commandlink) and the bean 1) calculate the values of the unit and the date to use as parameter values for ExecuteWithParams under another iterator and 2) navigate to another page using this another iterator.

    It seems that the QDR (reference data) is involved, but can't find enough information about how to implement the same.

    Here are the PivotTable on the jspx:

    < dvt:pivotTable id = "pivotTable1".
    Summary = "reading analytical pivot table.
    value = "#{bindings." CdsaReadingsItfVwView1.pivotTableModel}.
    var = 'cellData.
    varStatus = "cellStatus" >
    < dvt:dataCell >
    < af:commandLink id = "cl".
    Text = "#{cellData.DataValue} '"
    action = "#{pivot_bean.commandlink_action}" / >
    < / dvt:dataCell >
    < / dvt:pivotTable >



    In the bean, we try to getPivotTable(), but it is always null.

    Any direction is welcome.

    David K

    Check how the PivotTable selection demo was created:
    http://jdevadf.Oracle.com/ADF-richclient-demo/faces/feature/PivotTable/pivotTableSelection.JSPX
    Code for this demo here:
    http://www.Oracle.com/technetwork/developer-tools/ADF/documentation/ADF-faces-RC-demo-083799.html

  • Calculate the % with the pivot table columns

    I created an application with these columns:
    Metric       Study          Fast          Slow       On-Target     Total
    ---------------------------------------------------------------------------------
    Metric1     Study1           1             0              0             1
    Metric1     Study2           1             0              0             1
    Metric1     Study3           0             0              1             1
    Metric1     Study4           0             0              1             1
    Metric1     Study5           0             1              0             1
    Metric1     Study6           0             1              0             1
    Metric1     Study7           0             0              1             1
    Metric1     Study8           0             0              1             1
    Metric1     Study9           1             0              0             1
    Metric1     Study10          1             0              0             1
    I want to create a pivot table looks like this.
    Metric          Fast     Slow      On-Target     Total      % Fast     % Slow   % On Target
    ------------------------------------------------------------------------------------------------------
    Metric1         4           2        4            10           40        20       40
    The fast, slow, on the target and Total columns are calculated fields. Picky, I'm having is to get the % columns to work. I also tried create columns % in the form of columns of the table, but at each level of study, the % is 100% or 0%.

    I tried with duplicate columns, all different options to display the value as. None of them worked.

    Could someone help me? The version of the OBI is 10.1.3.4

    Thank you

    Shi-ning

    Published by: SPUD on November 21, 2011 23:09

    Sounds like it. You will need the account of studies as a measure in the criteria. You could do something in the repository, but the fastest way is:

    Criteria:
    Add the study in (it will not go into the PivotTable)
    create new measure based on any existing measure that has the background you need with the formula:
    cases where [existing] is not null then 1 else 0 end

    This will give you 1 for each line that your measure in effect is valid. Add this new measure in the PivotTable and treat it as a normal amount.

  • Pivot table column alignment

    Hi all

    I use the Oracle 11 g database to develop my application.

    I've created a generic column report.

    For this I used the concept of PIVOT table.

    My example query is

    with pivot_data like)

    SELECT DEPTNO, JOB, SAL, BISHOP

    WCP

    )

    SELECT *.

    OF pivot_data

    PIVOT)

    SUM (SAL)

    FOR DEPTNO

    IN (& P90009000_LIST.)

    )

    This output is

    WORK BISHOP 10 20 30

    --------- ---------- ---------- ---------- ----------

    PRESIDENT 5000

    7902 800 CLERK

    7698 950 CLERK

    7788 1100 CLERK

    7782 1300 CLERK

    7698 5600 SELLER

    MANAGER 7839 2450 2975 2850

    7566 6000 ANALYST

    8 selected lines.

    but I need the output as below

    BISHOP OF WORK 10 20 30

    --------- ---------- ---------- ---------- ----------

    PRESIDENT 5000

    THE 800 7902 CLERK

    THE 950 7698 CLERK

    1100 7788 CLERK

    1300 7782 CLERK

    5600 7698 SELLER

    MANAGER OF 2450 2975 2850 7839

    6000 7566 ANALYST

    8 selected lines.

    Come 10,20,30 pivot columns

    How to do this in my application?

    Thank you

    Su.GI

    Thanks Solomon.

    I used the code below.

    His job very well.

    with pivot_data like)

    SELECT DEPTNO, JOB, SAL, & P90009000_LIST., BISHOP

    WCP

    )

    SELECT *.

    OF pivot_data

    PIVOT)

    SUM (SAL)

    FOR DEPTNO

    IN (& P90009000_LIST.)

    )

    Thank you

    Su.GI

  • For Timo: Dynamically create pivot table binding

    Hi Timo,

    Long time ago you have this announcement on a thread:

    "The solution for your use a 2013 DOAG case, I presented was to create binding table pivot out user defined attributes in the table."

    For the defined attributes, VO is created dynamically and the pivot link.

    The pivot link is exchanged during execution as well as the activation of the adequate VO Dynamics to get only the

    necessary data for the pivot table in particular.

    ......

    I can't give you a working example because it is too complex. I can make available slides, but they are in German. "

    We have the same problem.

    Can you please send me this presentation on: email address removed by the moderator - there is no private through this public forum consultation >

    I can't find this Presentation on the Internet.

    Maybe, if you have some examples of simple work, too.

    Kind regards

    Diana

    Diana, you can get the DOAG2013_DynamicPivotTable_virtual7 blades | JDev & ADF Goodies

    The sample is too complex to be made available through my blog.

    Timo

  • Sort data in pivot table

    Hi Experts,

    Here's the requirement I need to sort the text Text_field field say to sort this column, I called another field. Sort_Text_field.

    I have the pivot table as follows

    Can I sort Text_field even if Sort_Text_field is not in the PivotTable on the side.

    Thank you!

    Month1-(Jan) Month2-(Feb)
    Text_fieldMetricValue1MetricValue2


    Thank you!!

    Just in case if helps others. Tim Dexter tanks

    Follow this link: https://blogs.oracle.com/xmlpublisher/entry/new_skool_crosstabbing

    Customization

    One new feature that I discovered this week is the ability to show a single column and sort by another. I got a data set which was extracting the month abbreviations, we wanted to show for months through the top and headers of lines on the side. As you know XSL is not very good with dates, in particular recognizing the names of months. He just wants to sort them alphabetically, so, after comes before Jan, etc..
    A way around this is to generate a number of months to the sides of the month and which allows to sort. We can do that in the crosstab, unfortunately it is not exposed in the user interface still but its doable.

    Go back and take a look at the initial crosstab command. especially the line inputs and columns. There, you will find the sort criteria.

    "ProductsBrand {, o = a, t = t}, PeriodYear {, o = a, t = t}.

    Note these key commas inside the braces? Because there is no field that precedes them, this means that the crosstab should sort on the column before the brace that is PeriodYear. But you can insert another column in the data set to be sorted. For myself how I needed to work.

    <>" _Fund_Type_._Fund_Type_Sort_, o = a, t = n} ';' _Fiscal_Period__Amount__._Amt_Fm_Disp_Abbr_ {_Fiscal_Period__Amount__._Amt_Fiscal_Month_Sort_, o = a, t = n} ';' _Execution_Facts_._Amt_ ';' amount '? >

    Excuse the horribly verbose XML tags, good ol' BIEE: 0) emboldened columns are not in the table, but in the data set. I just open the field, dropped and changed the value type (t) is 'n', number, instead of the default 'a' and my crosstab started sorting how I wanted that it.

    If you find other tips and tricks, please share in the comments.

  • Pivot table result without aggregate function

    Hi all

    We have the following two tables:

    SQL > select * from class;

    CLASS_ID COURSES

    ---------- ----------

    1          1

    2          1

    3          1

    2          2

    3          2

    5          2

    6 selected lines.

    SQL > select * of course.

    COURSE_ID

    ----------

    1

    2

    The customer needs the output in the following format:

    class class class class

    1                    1               2               3

    2                    2               3               5

    I considered using the operator pivot tables however they require the use of an aggregate function, but there is no aggregation only required in the result here - we demand that the output as would a PivotTable?

    Try this.

    WITH class(CLASS_ID,COURSE) AS)

    1.1 DOUBLE UNION ALL SELECT

    SELECT 2.1 DUAL UNION ALL

    SELECT 3.1 FROM DUAL UNION ALL

    SELECT 2.2 DUAL UNION ALL

    3.2 DUAL UNION ALL SELECT

    SELECT DOUBLE 5.2)

    SELECT * FROM)

    SELECT THE COURSE

    CLASS_ID,

    ROW_NUMBER () OVER(PARTITION BY COURSE ORDER BY COURSE) RN

    CLASS)

    PIVOT (MAX (CLASS_ID) for (RN) IN (1 as CLASS1, 2 AS CLASS2, CLASS3 AS 3));

    OUTPUT:

    CLASS CLASS1 CLASS2 CLASS3

    -------- ---------- ---------- ----------

    1          1          2          3

    2          2          3          5

  • Remove sorting in a Pivot table view

    Hi people,

    How to remove the column header sort options in the pivot table view?

    Thank you

    AJ

    You want to remove the small arrows on the column header in a pivot view?

    If so, the options are available in the analysis criteria tab. The problem is it cannot be set to a point of view, they perform the whole analysis

    In the criteria-> Properties tab right next to the filters and the stages of selection analysis-> Interactions tab.

    Mark, if this can help

  • Pivot Table guest issue

    Hello

    I can place the Pivot Table guest column does not display values section in the menu drop-down showing only a single value.

    Version is 11.1.1.6.4 OBIEE and Mozilla Firefox 19.0.2

    How to overcome this problem.

    THX,

    If the column contains more than 1 value then browser. Check in IE or Chrome.

  • Exclude a measure the total general dynamic level 'Lines' of a pivot table

    Experts,

    Is it possible to exclude a measure the total general dynamic level 'Lines' for a pivot table?

    Version - OBIEE 10g

    Kind regards
    LIBERATOR

    No, I mean not the dropdown list above when you edit the formula in the column. It of there on 11g but don't remember off the top of my head if it is in the same place on 10g.

    Paul

  • How can I customize the font size for Pivot Table Section 11 g?

    Hi all

    I'm new to CSS customization, and I followed the suggestions to use tools like Firebug to look at the CSS styles applied to a particular item.

    11 g, I have a report that uses rotating sections of the table to display the numbers associated with the Department in each Department and the sections. Using Firebug, I see that the titles of the Department are on police-size: 9px; by default. The HTML is:

    < class = "PTSC OOLT" td style = "" are-size: 9px; ">"

    I would like to change the font size default to the values of the Section of the Pivot Table so that it displays 11px-size of font instead of 9px for all reports.

    Digging around, I don't see a way to do unless I have use custom styles custom.css and reference in each of my pivot views. Does anyone else have a suggestion how how I can change the default font size without having to create a custom.css entry? We have many existing reports that have been migrated over 10 g that I prefer not to go back and must add a reference to each view simple pivot.

    Thank you.

    Hello

    Please see:
    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/FMW/bi/bi1113/customizing_obiee11g/customizing_obiee11g.htm
    and search for "Deployment of a Style Custom"

    Concerning
    Young

  • Convert pivot table to a table in the same answers BI report

    Hello

    I have a simple BI answers report. I used a PivotTable when in fact I have no aggregate
    so it would be faster performance (I said) to use a table for the view, rather than on a pivot table view.


    Is there a quick way to convert a pivot table view to a table view, without having to re - select
    all the columns all over again?

    Thanks a lot for all the replies.

    -Greg

    user1636556 wrote:
    Thanks for your reply. How exactly "choose you as ' a table view. At runtime, I get the view composed upwards.
    Then change the drop-down menu that says "Compound Layout" and choose "Table" currently? I tried that and
    the PivotTable returned at run time. Or do I do 'View Edition' on the existing PivotTable and change something that
    for a Table view?

    Thanks for your help.

    -Greg

    Compound mode is the "view holds that all views." On the upper right side, you can click on the Red 'X' and remove the Pivot Table view. You can then "Add View", and select the Table view. Compound mode will be your title and Table.

    So to answer your question, no, not "change the drop down menu that currently says"Compound Layout"and choose"Table"that takes you only to the view of the Table, because it does not affect the report itself. That's why at run time, you still get the Pivot Table View. Follow my instructions in the previous paragraph. Good luck!

    Edited by: David_T December 9, 2011 10:25

  • Problem with pivot table

    Hello.

    I have a pivot table, and it should update that I change the value of selectOneChoice. I can only view some data in a PivotTable when I choose a value for the first time in selectOneChoice. If I select another value in the SelectOneChoice the PivotTable that is not updated.

    Here is my PivotTable:
     
     <dvt:pivotTable id="pivotTable1"
                                value="#{bindings.TValoresMatrizEnViewUp1.pivotTableModel}"
                                binding="#{backingBeanScope.backing_valoresMatriz.pivotTable1}"
                                contentDelivery="immediate" var="matrix"
                                visible="false" partialTriggers="::socCodigo"
                                rendered="true" 
                               >
                  <dvt:dataCell>
                    <af:inputText value="#{matrix.dataValue}"
                                valueChangeListener="#{backingBeanScope.backing_valoresMatriz.alteraPivot}"
                                autoSubmit="true"
                                partialTriggers="it5"
                                id="it5"/>
                                
                  </dvt:dataCell>
                </dvt:pivotTable>
    Can someone help me?

    My JDeveloper is 11.1.1.4.0

    Thank you

    Hi Marcos,

    Open your page definition and together in the iterator tag refresh properties = 'always' and cacheResults = "false"...

    That that it will solve your problem.

    Kind regards

    Renan

Maybe you are looking for

  • How to customize the CSS for the right-click menu?

    I have the Chromedit extension installed, and I want to customize the design of my context menu to look "Flat" as menu right-click chrome. It would also be nice to make all the other menus, such as the Firefox button to be flat. What is the item in t

  • I am getting lines/hash-marks roses in the Finder and the title bars of the app

    I believe this started during the current public beta, but I can't swear to it. A finder window title bar or the app tabs (for example in postal aircraft), I see little pink marks hash (as you see on a rule). You can see them around the work 'Back '.

  • different types of readers

    I intend to buy a new computer and need to make a choice in terms of readers. The computer I am considering buying a Mac Book Pro with a 1 to Serial ATA hard drive, but I also saw computers offering SSD drives and flash drives. What is the difference

  • Impossible to uninstall Noron anti virus using the control panel

    When I ATTEMPT to INSTALL MCAFEE FREE WITH BT HAD to UNINSTALL NORTON ANTIVIRUS DO DELETED NOT the PANEL to HELP broadband WHEN I USED INISTALL of SYMANTEC EMPAQUETER SMARTWEBPRINTING DELETED. MSI AND COULD NOT CONNECT TO THE WEB. WAS IT NOT TO USE S

  • Connection HDMI Wont

    Hi, I have a Hp Pavilion Dv6 and my OS is Windows Vista Home Premium(32bit). I've been on the web, trying to find an answer for so long and couldn't find a definitive answer. The best result I got he was trying on a different OS (I use Ubuntu). I con