Dynamic Hyperlinks In Pivot Table

Hi All,
I'm trying to make a column in a pivot table have a hyperlink based on data, but it doesn't seem to work. Funny thing is I can do exactly the same thing with just a normal table and it works fine.
Just putting {PAGE_URL} for the hyperlink address in word, where PAGE_URL is a column in my query.
Any ideas?
Thanks
Matt

Here is an example for dynamic PIVOT:
http://www.sqlusa.com/bestpractices2005/dynamicpivot/
You can also apply dynamic columns in SSRS:
http://www.sqlservercentral.com/Forums/Topic1497220-2799-1.aspx#bm1497636
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b5dbd178-1532-478f-90d3-b6354a561240/ssrs-dynamic-columns?forum=sqlreportingservices
Kalman Toth Database & OLAP Architect
IPAD SELECT Query Video Tutorial 3.5 Hours
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

Similar Messages

  • How change the graph dynamically based on pivot table.

    Hi,
    My Report having pivot table and bar chart. Organization Name column set as pivot table prompts in pivot table.So Organization Name is appear as dropdown list.If i choose the diffrent Organization Names the pivot table data is according to the Organization Name but no changes in chart.How change the Graph dynamically based on pivot table.
    Please help on this.

    ok.I created pivot table with 4 columns and created chart using pivot table chart options but all 4 columns are displaying chart.But I need only 2 column in chart ..unable to edit the only chart in pivot table.Please help on this.Thank you..

  • Dynamic hyperlink from database table

    hi,
    I have requirement to create left hand menu on a page. Menu label and hyperlink is stored in database. What is the best way to achieve this. Basically when user logs based on his user name query will fetch the labels and hyperlink source. How to achieve this in ADF? I could not find anything out of the box. I have view object which stores that information but i dont know how to convert that information into hyperlinks.

    Assuming the UrlInfo is the name of the View Object that has the attributes label & link, you can use the af:iterator to show the labels & links as follows:
    1) Drag & Drop the UrlInfo into the page as a table. Delete the table in the .JSPX page and keeping the pageDef as it is.
    2) Instead of the af:table, use af:iterator to show the same.
    .JSPX page sample:
    <af:iterator value="#{bindings.UrlInfo.collectionModel}" var="row"
    rows="#{bindings.UrlInfo.rangeSize}" id="t1">
    <af:goLink id="g1" text="#{row.label}"
    destination="#{row.link}"/>
    <af:spacer height="1px" id="sp1"/>
    </af:iterator>
    PageDef sample:
    <executables>
    <variableIterator id="variables"/>
    <iterator Binds="Employees" RangeSize="25"
    DataControl="AppModuleDataControl" id="UrlInfoIterator"/>
    </executables>
    <bindings>
    <tree IterBinding="UrlInfoIterator" id="UrlInfo">
    <nodeDefinition DefName="model.UrlInfoVO">
    <AttrNames>
    <Item Value="label"/>
    <Item Value="link"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    Thanks,
    Navaneeth

  • Dynamic data source in Excel Pivot Table

    Hello there,
    I am trying to have dynamic data source in pivot table using INDIRECT but getting the error "Reference not valid". Here is how I setup the reference:
    Named range: ConsolLink = "'R:\Root\Sub1\Sub2\Consol File.xlsm'!Source_OpexConsol"
    "Source_OpexConsol" is defined in the source file as a dynamic name using offset formula.
    In the pivot data source, I have tried "=INDIRECT(ConsolLink)" as the data source but that does not work.
    I have also tried using INDIRECT in ConsolLink and just referencing "ConsolLink" as the data source. That does not work either.
    I am not using Power Pivot. Appreciate it if someone can help.
    Thanks.

    If it is open, then try
    Named range: ConsolLink = Range("Consol File.xlsm'!Source_OpexConsol")
    And if it is not currently open, then try
    Dim W As Workbook
    Set W = Workbooks.Open("R:\Root\Sub1\Sub2\Consol
    File.xlsm")
    Named range: ConsolLink =
    Range("Consol File.xlsm'!Source_OpexConsol")
    W.Close False

  • ADF Pivot table - determining aggregation type based on dynamic value items

    Hi,
    I am trying to build a pivot table in ADF. The data-value rendered (bold section below) produces multiple data items dynamically.
    <pivotTableDataMap>
            <columns>
              <item value="Name" label="Name"/>
              <data aggregateDuplicates="true" defaultAggregateType="SUM">
               <item value="Value" label="__NO_LABEL"/>
              </data>
            </columns>
    </pivotTableDataMap>
    Since, all these data item(s) are rendered dynamically and based their names, the aggregation could be SUM/AVERAGE etc...
    Looking at the Pivot documentation, it says that I can use the 'aggregateType' property of the <item> element to override the 'defaultAggregateType' defined at the parent <data> element. Something like -
    <data aggregateDuplicates="true" defaultAggregateType="SUM">
              <item value="Sales"/>
              <item value="Units" aggregateType="AVERAGE"/>
            </data>
    However in my case the <item> are getting populated dynamically, I cannot put the aggregate type using declarative approach.
    Is there any other way where I can define the aggegrate type for this use-case?
    Thanks
    Sachin

    Hi,
    I am trying to build a pivot table in ADF. The data-value rendered (bold section below) produces multiple data items dynamically.
    <pivotTableDataMap>
            <columns>
              <item value="Name" label="Name"/>
              <data aggregateDuplicates="true" defaultAggregateType="SUM">
               <item value="Value" label="__NO_LABEL"/>
              </data>
            </columns>
    </pivotTableDataMap>
    Since, all these data item(s) are rendered dynamically and based their names, the aggregation could be SUM/AVERAGE etc...
    Looking at the Pivot documentation, it says that I can use the 'aggregateType' property of the <item> element to override the 'defaultAggregateType' defined at the parent <data> element. Something like -
    <data aggregateDuplicates="true" defaultAggregateType="SUM">
              <item value="Sales"/>
              <item value="Units" aggregateType="AVERAGE"/>
            </data>
    However in my case the <item> are getting populated dynamically, I cannot put the aggregate type using declarative approach.
    Is there any other way where I can define the aggegrate type for this use-case?
    Thanks
    Sachin

  • BI Publisher Pivot Table or Cross Tab

    Hai All,
    I have a doubt in developing a Matrix report in XML. I have developed a matrix report in RDF and the output is coming fine in RDF. I have generated the XML file which looks like this. I need to develop the report which displays employee details followed by the allowance which are dynamic.
    - <XXHRPRF>
    - <LIST_G_SUMRESULT_VALUE>
    - <G_SUMRESULT_VALUE>
    - <LIST_G_EMPLOYEE_NUMBER>
    - <G_EMPLOYEE_NUMBER>
    <EMPLOYEE_NUMBER>100026</EMPLOYEE_NUMBER>
    <PERSON_ID>80</PERSON_ID>
    <NATIONALITY>USA</NATIONALITY>
    <NATIONAL_IDENTIFIER />
    <UNIFIED_ID />
    <FULL_NAME>Thomas H Mathew</FULL_NAME>
    <ORGANIZATION_NAME>Corporate Affairs</ORGANIZATION_NAME>
    <PENSION_FUND_ID />
    <CS_SNO>1</CS_SNO>
    <CF_PENSION_CONTRIBUTION>3637.5</CF_PENSION_CONTRIBUTION>
    <CP_PENSION_COMP_CONTR>10912.5</CP_PENSION_COMP_CONTR>
    <CP_TOTAL_SALARY>72750</CP_TOTAL_SALARY>
    <CF_TOTAL_CONTRIBUTION>14550</CF_TOTAL_CONTRIBUTION>
    - <LIST_G_ELEMENT_NAME>
    - <G_ELEMENT_NAME>
    <TAG>1</TAG>
    <ELEMENT_NAME>Basic Salary</ELEMENT_NAME>
    - <LIST_G_PERSON_ID>
    - <G_PERSON_ID>
    <RESULT_VALUE>39650</RESULT_VALUE>
    </G_PERSON_ID>
    </LIST_G_PERSON_ID>
    </G_ELEMENT_NAME>
    - <G_ELEMENT_NAME>
    <TAG>2</TAG>
    <ELEMENT_NAME>Housing Allowance</ELEMENT_NAME>
    - <LIST_G_PERSON_ID>
    - <G_PERSON_ID>
    <RESULT_VALUE>25000</RESULT_VALUE>
    </G_PERSON_ID>
    </LIST_G_PERSON_ID>
    </G_ELEMENT_NAME>
    - <G_ELEMENT_NAME>
    <TAG>3</TAG>
    <ELEMENT_NAME>Child allowance</ELEMENT_NAME>
    <LIST_G_PERSON_ID />
    </G_ELEMENT_NAME>
    - <G_ELEMENT_NAME>
    <TAG>4</TAG>
    <ELEMENT_NAME>Social allowance</ELEMENT_NAME>
    - <LIST_G_PERSON_ID>
    - <G_PERSON_ID>
    <RESULT_VALUE>700</RESULT_VALUE>
    </G_PERSON_ID>
    </LIST_G_PERSON_ID>
    </G_ELEMENT_NAME>
    - <G_ELEMENT_NAME>
    <TAG>5</TAG>
    <ELEMENT_NAME>Excess Allowance</ELEMENT_NAME>
    <LIST_G_PERSON_ID />
    </G_ELEMENT_NAME>
    - <G_ELEMENT_NAME>
    <TAG>6</TAG>
    <ELEMENT_NAME>Additional</ELEMENT_NAME>
    - <LIST_G_PERSON_ID>
    - <G_PERSON_ID>
    <RESULT_VALUE>7400</RESULT_VALUE>
    </G_PERSON_ID>
    </LIST_G_PERSON_ID>
    </G_ELEMENT_NAME>
    </LIST_G_ELEMENT_NAME>
    </G_EMPLOYEE_NUMBER>
    - <G_EMPLOYEE_NUMBER>
    <EMPLOYEE_NUMBER>100030</EMPLOYEE_NUMBER>
    <PERSON_ID>82</PERSON_ID>
    <NATIONALITY>Canada</NATIONALITY>
    <NATIONAL_IDENTIFIER />
    <UNIFIED_ID />
    <FULL_NAME>Sara Wilson</FULL_NAME>
    <ORGANIZATION_NAME>Human Resources</ORGANIZATION_NAME>
    <PENSION_FUND_ID />
    <CS_SNO>2</CS_SNO>
    <CF_PENSION_CONTRIBUTION>1203.75</CF_PENSION_CONTRIBUTION>
    <CP_PENSION_COMP_CONTR>3611.25</CP_PENSION_COMP_CONTR>
    <CP_TOTAL_SALARY>316575</CP_TOTAL_SALARY>
    <CF_TOTAL_CONTRIBUTION>4815</CF_TOTAL_CONTRIBUTION>
    - <LIST_G_ELEMENT_NAME>
    - <G_ELEMENT_NAME>
    <TAG>1</TAG>
    <ELEMENT_NAME>Basic Salary</ELEMENT_NAME>
    - <LIST_G_PERSON_ID>
    - <G_PERSON_ID>
    <RESULT_VALUE>19600</RESULT_VALUE>
    </G_PERSON_ID>
    </LIST_G_PERSON_ID>
    </G_ELEMENT_NAME>
    - <G_ELEMENT_NAME>
    <TAG>2</TAG>
    <ELEMENT_NAME>Housing Allowance</ELEMENT_NAME>
    - <LIST_G_PERSON_ID>
    - <G_PERSON_ID>
    <RESULT_VALUE>22500</RESULT_VALUE>
    </G_PERSON_ID>
    </LIST_G_PERSON_ID>
    </G_ELEMENT_NAME>
    - <G_ELEMENT_NAME>
    <TAG>3</TAG>
    <ELEMENT_NAME>Child allowance</ELEMENT_NAME>
    - <LIST_G_PERSON_ID>
    - <G_PERSON_ID>
    <RESULT_VALUE>600</RESULT_VALUE>
    </G_PERSON_ID>
    </LIST_G_PERSON_ID>
    </G_ELEMENT_NAME>
    - <G_ELEMENT_NAME>
    <TAG>4</TAG>
    <ELEMENT_NAME>Social allowance</ELEMENT_NAME>
    - <LIST_G_PERSON_ID>
    - <G_PERSON_ID>
    <RESULT_VALUE>800</RESULT_VALUE>
    </G_PERSON_ID>
    </LIST_G_PERSON_ID>
    </G_ELEMENT_NAME>
    - <G_ELEMENT_NAME>
    <TAG>5</TAG>
    <ELEMENT_NAME>Excess Allowance</ELEMENT_NAME>
    <LIST_G_PERSON_ID />
    </G_ELEMENT_NAME>
    - <G_ELEMENT_NAME>
    <TAG>6</TAG>
    <ELEMENT_NAME>Additional</ELEMENT_NAME>
    - <LIST_G_PERSON_ID>
    - <G_PERSON_ID>
    <RESULT_VALUE>3075</RESULT_VALUE>
    </G_PERSON_ID>
    </LIST_G_PERSON_ID>
    </G_ELEMENT_NAME>
    </LIST_G_ELEMENT_NAME>
    </LIST_G_EMPLOYEE_NUMBER>
    </G_SUMRESULT_VALUE>
    </LIST_G_SUMRESULT_VALUE>
    <CF_PERIOD>MAR-2009</CF_PERIOD>
    - <XXHRPRF>
    I need to develop a cross tab format in RTF using template builder. Can we get this in matrix report using the standard wizard given in template builder or else it should be done manual. If it can be done through wizard can u please explain the process.
    And one more think what is the latest version of template builder available. In few cases its given as pivot table and in few its given as cross tab. I confused by that.
    This seems to be basic doubt, but please guide me.
    Regards

    i,
    I am developing cross tab report with group in BI Publisher(i.e matrix with group above report in report builder).
    My req.is
    Country1
    region1 region2 region3 --- (level1 column)
    d1 d2 d3 d1 d2 d3 d1 d2 d3 --(level2 column)
    Row1 10 15 18 24 38 40 36 35 78 --data
    Row2 -- -- -- --- --- -- - -- -- --
    regions(level1 columns) and d1,d2,d3(level2 columns) are data depenent on XML data.
    d1,d2 d3 may change in number based on data.Also we have page break on country.
    We could able to achieve in report builder but in Bi Publisher we are unable to achieve the same.
    Wizard in BI Publisher gives only one level of measure(region) only.
    Currently we are using BI Publisher template builder version 10.1.3.2.1
    Need help in this regard ASAP.
    Thanks in advance.

  • How to make a layer from the ADF pivot table invisible , show-hide column-row-data

    Hello all ,
    I need to create a pivottable with ADF 12c for reporting purposes.
    I have a table or view with 10 items of type VARCHAR2 , C1,C2,C3,C4,C5,C6,C7,C8,C9,C10  and   10 items of type NUMBER N1,N2,N3,N4,N5,N6,N7,N8,N9,N10
    The items of type VARCHAR2 are for Column and Row areas and the items NUMBER are for Data Areas
    I want to create a jsf page with one empty pivottable and in code Show or Hide the items in the Column area , Row area , Data area
    Con you send me a small sample ?
    I test with this code that i find in oracle OTN but not work.
    <dvt:pivotTable id="pt2" value="#{bindings.WebPivotDataView1.pivotTableModel}" var="cellData"
    varStatus="cellStatus" splitMode="enabled"
    binding="#{backingBeanScope.CmfPivotBean.pivotTable}"
    >
    <dvt:headerCell>
    <af:switcher facetName="#{cellData.layerName}" defaultFacet="Default" id="s1">
    <f:facet name="DataLayer">
    <af:outputText value="#{cellData.label}" id="ot1"/>
    </f:facet>
    <f:facet name="C01">
    <af:outputText value="#{cellData.dataValue}" id="ot2"/>
    </f:facet>
    <f:facet name="Default">
    <af:outputText value="#{cellData.dataValue}" id="ot3"/>
    </f:facet>
    </af:switcher>
    </dvt:headerCell>
    <dvt:dataCell>
    <af:switcher facetName="#{cellStatus.members.DataLayer.value}" defaultFacet="Default" id="s2">
    <f:facet name="N01">
    <af:outputText value="#{cellData.dataValue}" id="ot4">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.WebPivotDataView1.hints.N01.format}"/>
    </af:outputText>
    </f:facet>
    <f:facet name="Default">
    <af:outputText value="#{cellData.dataValue}" id="ot5"/>
    </f:facet>
    </af:switcher>
    </dvt:dataCell>
    </dvt:pivotTable>
    DCBindingContainer bindingContainer = (DCBindingContainer)ADFContext.getCurrent().getRequestScope().get("bindings");
    CubicBinding cubicBinding = (CubicBinding)bindingContainer.findCtrlBinding("WebPivotDataView1");
    CubicEditor cubicEditor = cubicBinding.getCubicEditor();
    cubicEditor.removeLayer(DataDirector.ROW_EDGE, 0); //remove 1st row edge
    cubicEditor.removeLayer(DataDirector.COLUMN_EDGE, 0); // remove 1st column edge
    cubicEditor.removeDataItem(0);
    CubicDefinition def;
    def = cubicBinding.getProjection();
    LayerDefinition layerDefinition = new LayerDefinition("C3");
    cubicEditor.addLayer(DataDirector.ROW_EDGE, 0, layerDefinition);    
    LayerDefinition layerDefinition2 = new LayerDefinition("C4");
    cubicEditor.addLayer(DataDirector.COLUMN_EDGE, 0, layerDefinition2);
    DataItemDefinition def3 = new DataItemDefinition("N1");
    cubicEditor.addDataItem(def3);
    AdfFacesContext.getCurrentInstance().addPartialTarget(pivotTable);
    Can you help me if is possible to create a pivottable binding to a one ViewObject and in code show/hide or compose the layout of the pivottable ??
    I search in google and OTN oracle and not find any code.
    Only find the code of the samples that is very complex for me , the code of the samples create the PivotTableModel from one Array , and i want to binding from one ADB BC ViewObject.
    Thanks in advance

    The solution I presented for your use case an DOAG 2013 was to create a pivot table binding out of user defined attributes from the table. For the defined attributes a VO is dynamically created as well as the pivot binding. The pivot binding is then exchanged at runtime together with the activation of the dynamic VO needed to only get the data needed for the particularly pivot table.
    Your solution using the CubicEditor is hard to implement due to the missing documentation. This was the reason I did not follow this approach, However it's not impossible (done it on a very small scale).
    None of the solution are what I call simple. They are complicated, complex and in part not supported solution (exchanging the pivot table binding at runtime need to use internal classes, which is not supported).
    I can't give you a working sample as it's too complex. I can make the slides available, however they are in German.
    Timo

  • Adding a pivot table while creating report in BI publisher

    Hi all,
    I have been working on OBIEE and i need to create a multipage report. I have created a report in BI Dashboard using pivot table and i like to create the same pivot table (as pdf report) by using BI publisher.
    But i am unable to add pivot table in the rtf file that is used as template.
    When i am creating a template in rtf format, it has only three option either you can add table or form or Cross tab. I have tried to add the pivot table but i didn't find any way to add that.
    Pls suggest me to solve this.
    Thanks
    Ashok

    Please look at the hyperlinks description in the rtf template section of the report designer guide. It should get you started.

  • Understanding code behind Pivot tables in BI Publisher

    Hi All ,
    Is there any pointer which will help me to understand the code involved in Pivot table or crosstab.I went through the XML publisher user guide and it helped me to understand a bit.But the coding behind the pivot tables generated by the BI Publisher Desktop is completely different and especially the very first line e.g (<?crosstab:c594;"//r";"LOCATION{,o=a,t=t}";"SUBLOCATION{,o=a,t=t}";"AMOUNT";"sum"?>).
    Also how the Dynamic variables (preceding with $) Play a role in Pivot table generation?
    Thanks!!!

    table name, row_element_names, column, cell value , to sum or not.

  • How to Replace Null Value as 0 in an OBIEE11g Pivot Table?

    Hi,
    How to Replace Null Value as 0 in an OBIEE11g Pivot Table? it's working in obiee10g version.
    We have tried below methods
    1) criteria tab and edit the ‘column properties’ associated with your fact measure. Choose the ‘Data Format’ tab, tick to override the default format and choose ‘Custom’.
    It seems that the syntax for this custom format is positive-value-mask (semi colon) negative-value-mask (semi colon) null-mask. So this means we have a few options.
    E.g. if you want zeros (0) instead of null then enter:
    #,##0;-#,##0;0
    2) in that formula columns we have put it below case condition also ,
    Measure Column: Nom_amt --> edit formulas
    CASE WHEN Nom_amt IS NULL THEN 0 ELSE Nom_amt END
    3) we have uncheked IS NULL check box in the admin tool also
    I tried above formats still it's not working for me..kindly help me on this..
    thanks in advance...
    Best Regards,
    R.Devarasu

    Hi Amith,
    I have update your suggested one,but it's working few of the rows only..remainings rows some of cells still NULL only
    Measure colmns is : Nom_SGD
    IFNULL(Nom_SGD,0.00)
    Movment : dynamic date calc by using $2-$1 oracle formula's
    Actually i am doing below things only,
    31/12/2011 31/03/2011 Movment
    Country
    India 100 -50 -150
    Singapore 200 200
    UK 1200 -1200
    USA 0.00 0.00 0.00 (here changed null as 0)
    Helpmeon this...

  • How to export the created Pivot table by using Power Pivot into separate excel file in the same format?

    Hi PowerPivot experts,
    I have created more than 60 pivot tables in multiple sheets by using PowerPivot work book. now i want delivery all the pivot table in excel document to my end user by email.
    I want send only the Pivot tables which i created using PowerPivot data model instead of sending the whole model file since its very heavy.
    I have tried with export option in Excel 97-2003, its works fine but not getting exact pivot format which i created and its displays as value.
    My aim to send pivot table that i created format but not whole file with source data.
    I would be really grateful if advise me to fix it out.

    Hi Robert,
    I don't think it is a good idea to deliver all PivotTable report to end user via E-mail, and SQL Server PowerPivot for Excel doesn't support to deliver PivotTable report to end user without PowerPivot data inside in the data model. For example, I suppose
    we create a PivotTable to display the SalesAmount of US in pervious years(eg:2012, 2013, 2014), how can we dynamic show the value based on end user selection without PowerPivot data model data(The PivotTable report don't have data source)?
    So, one workaround that we can create a shared folder to store all of PowerPivot report for all of end user in the domain environment, and then inform end users to copy the PowerPivot reports what they want via E-mail.
    If the end users aren't in domain environment, we can implement the VPN soltion to achieve this.
    Regards,
    Elvis Long
    TechNet Community Support

  • Pivot table by formula?

    Hi,
    I have a strange client requirement, which I want to achieve without using a pivot table, if possible, as; -
    1. Pivot tables may not be scaleable to the volume of data which I will ultimately have in the solution
    2. I need to create two measures, which I can create separately in two pivot tables, but cannot find a way of presenting them together as one in a pivot table's chart.
    The measures are based on; -
    Company Name; Volume of Sales expressed as a percentage of total (for a data set which has numerous filters on various dimensions at runtime, so level based measures do not help as the entire total data set at runtime is dynamically determined)
    Product Type; Company Name, Volume of Sales expressed as a percent of row parent
    It is the two percentage values which I want to see alongside each other, with the Company Name based measure NOT being broken up by Product Type.
    So, to illustrate;
    Company Name   Volume  
    Company A           30
    Company B           15
    Company C           5
    Gives;
    Company Name   Measure 1  
    Company A           60%
    Company B           30%
    Company C           10%
    (And no - my data is not that well behaved, if only!)
    Product Type   Company Name   Volume
    Problem Child    Company A         20
                          Company B         10 
                          Company C          0
    Cash Cow         Company A         10 
                          Company B           5
                          Company C           5
    Result
    Product Type   Company Name   Measure 2
    Problem Child    Company A         66.67%
                          Company B         33.33%
                          Company C          0
    Cash Cow         Company A         50% 
                          Company B         25%
                          Company C         25%
    My desired output is; -
    Product Type   Company Name   Measure 2   Measure 1
    Problem Child    Company A         66.67%       60%
                          Company B         33.33%        30%
                          Company C          0                10%
    Cash Cow         Company A         50%            60%
                          Company B         25%            30%
                          Company C         25%            10%Any takers, or even suggestions as to how I can go about this without hard coding??
    thanks,
    Robert.

    Robert Angel wrote:
    Hi,
    I have a strange client requirement, which I want to achieve without using a pivot table, if possible, as; -
    1. Pivot tables may not be scaleable to the volume of data which I will ultimately have in the solution
    2. I need to create two measures, which I can create separately in two pivot tables, but cannot find a way of presenting them together as one in a pivot table's chart.
    The measures are based on; -
    Company Name; Volume of Sales expressed as a percentage of total (for a data set which has numerous filters on various dimensions at runtime, so level based measures do not help as the entire total data set at runtime is dynamically determined)
    Product Type; Company Name, Volume of Sales expressed as a percent of row parent
    It is the two percentage values which I want to see alongside each other, with the Company Name based measure NOT being broken up by Product Type.
    So, to illustrate;
    Company Name   Volume  
    Company A           30
    Company B           15
    Company C           5
    Gives;
    Company Name   Measure 1  
    Company A           60%
    Company B           30%
    Company C           10%
    (And no - my data is not that well behaved, if only!)
    Product Type   Company Name   Volume
    Problem Child    Company A         20
    Company B         10 
    Company C          0
    Cash Cow         Company A         10 
    Company B           5
    Company C           5
    Result
    Product Type   Company Name   Measure 2
    Problem Child    Company A         66.67%
    Company B         33.33%
    Company C          0
    Cash Cow         Company A         50% 
    Company B         25%
    Company C         25%
    My desired output is; -
    Product Type   Company Name   Measure 2   Measure 1
    Problem Child    Company A         66.67%       60%
    Company B         33.33%        30%
    Company C          0                10%
    Cash Cow         Company A         50%            60%
    Company B         25%            30%
    Company C         25%            10%Any takers, or even suggestions as to how I can go about this without hard coding??
    thanks,
    Robert.OK, here's my stab at it:
    1) For measure 2, your formula would be:
    Sum(table.sales BY table.product_type, table.company)/(SUM(table.sales BY table.product_type)*100.00
    2) For measure 1, your formula would be:
    Sum(table.sales BY table.company)/(SUM(table.sales)*100.00

  • Pivot Table Chart - Show chart axis as "percent of"

    Hi all,
    I have a pivot table being generated, with the rows as year/month and the columns as web browser. However I'm only showing the top 5 browsers used, so the columns used are dynamic.
    I'd like to show the chart as "Percent of row". I know I can turn this on the table data, but this does not filter though into the chart. Does anyone know how to achieve this? Can you add the total for a row and use that in a formula?
    Thanks in advance

    Hi,
    Not sure about doing it in the pivot table, but we might be able to pull this back as a seperate column in the criteria tab which you can then use.
    Whats your metric name?
    Lets say you have Time.YearMonth, Browser, Count
    Include another column, edit the fx for that column and use sum(count by time.yearmonth) - this will give you the total for that year regardless of browser.
    Add another column and simply do count / sum(count by time.yearmonth) * 100 to get the percentage of the total for the year - play about with using that in the pivot or you might get away with a straight table view?
    Hope this helps, an alternative would be to set up a level based measure in the RPD.
    Edited by: Alastair_PeakIndicators on 31-Mar-2010 08:26

  • Problem with format displayed in output while using Pivot table

    Hi All,
    I am using Pivot table in 10.1.3.4.1 version for displaying dynamic type data. Data is coming fine but it is coming in very strange format. I have following two tables in my RTF Template.
    Table1 using Pivot table
    !http://farm3.static.flickr.com/2570/4092137243_924cca92ca.jpg!
    Table 2 - A normal table
    !http://img5.imageshack.us/img5/6651/table3p.jpg!
    In the output PDF, “Table 2” shows data fine but “Table 1” shows very strange kind of behaviour if the columns exceed more than 5 in “Table 1” . If columns in Pivot table output are more than 5[at present according to my Table1 size] then columns more than 5 are shown on next page after Table 2 instead of displaying inside outer table “Table1“. Anyone has any idea what is the reason behind this strange behavior and how can I avoid it ?
    Thanks
    -Sookie

    Hi All,
    I tried including following piece of code in RTF as mentioned here: [http://winrichman.blogspot.com/2009/05/cross-tab-by-limiting-number-of-colums.html] but as a result it showed blank page in report. Nothing else.
    <?variable:G11;count(xdoxslt:distinct_values(/CUST_SUMMARY/LIST_CLIENT/CLIENT/LIST_OVERALL_ASSET_ALLOC/OVERALL_ASSET_ALLOC/ASSET_LIAB_DESC))?> <?variable:numcol;5?>
    <?template:table1?><?param:cellvalue;1?><?param:maxcolvalue;5?>
    <?choose:?>
    <?when:$cellvalue < $maxcolvalue?>
    !http://farm3.static.flickr.com/2508/4104410643_f540c1d5a3_m.jpg!
    <?call@inlines:table1?><?with-param:cellvalue;(number($cellvalue) + $numcol)?><?with-param:maxcolvalue;$maxcolvalue?><?end call?>
    <?end when?>
    <?end choose?>
    <?end template?>
    Also modified RTf as
    C <?crosstab:c594;"//OVERALL_ASSET_ALLOC";"PORTFOLIO_NAME{,o=a,t=t}";"ASSET_LIAB_DESC{,o=a,t=t}";"PERCENT";"sum"?>
    H
    G <?for-each@column:$c594//C1?><?if@column:position() > $cellvalue and position() <= ($cellvalue + $numcol) ?>
    ASSET_LIAB_DESC <?./H?>
    E <?end if?><?end for-each?>
    G <?for-each:$c594//R1?>
    PORTFOLIO_NAME <?./H?>
    G <?for-each@cell:.//R1C1?><?if@cell:position() > $cellvalue and position() <= ($cellvalue + $numcol) ?>
    99.00% <?./M1?>
    E <?end if?><?end for-each?>
    E <?end for-each?>I have this as my xml
    <?xml version="1.0" encoding="UTF-8"?>
    <CUST_SUMMARY>
    <CLIENTID>1034</CLIENTID>
    <LIST_CLIENT>
    <CLIENT>
    <CLIENT_ID>1034</CLIENT_ID>
    <LIST_OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID>1110</PORTFOLIO_ID>
    <PORTFOLIO_NAME>RM Managed</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Alternatives</ASSET_LIAB_DESC>
    <PERCENT>2.93117485730770817994482449012020516681E-03</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID>1110</PORTFOLIO_ID>
    <PORTFOLIO_NAME>RM Managed</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Collectables</ASSET_LIAB_DESC>
    <PERCENT>1.28354604277895431879689156620000563094E-02</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID>1110</PORTFOLIO_ID>
    <PORTFOLIO_NAME>RM Managed</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Debt</ASSET_LIAB_DESC>
    <PERCENT>3.91466115811489974032104849667369505831E-02</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID>1110</PORTFOLIO_ID>
    <PORTFOLIO_NAME>RM Managed</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Equity</ASSET_LIAB_DESC>
    <PERCENT>8.71946226825880885538778864840827563226E-01</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID>1110</PORTFOLIO_ID>
    <PORTFOLIO_NAME>RM Managed</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Others</ASSET_LIAB_DESC>
    <PERCENT>7.3140526307872865690096910040315224715E-02</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID/>
    <PORTFOLIO_NAME>Aggregate Portfolio</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Alternatives</ASSET_LIAB_DESC>
    <PERCENT>2.93117485730770817994482449012020516681E-03</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID/>
    <PORTFOLIO_NAME>Aggregate Portfolio</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Collectables</ASSET_LIAB_DESC>
    <PERCENT>1.28354604277895431879689156620000563094E-02</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID/>
    <PORTFOLIO_NAME>Aggregate Portfolio</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Debt</ASSET_LIAB_DESC>
    <PERCENT>3.91466115811489974032104849667369505831E-02</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID/>
    <PORTFOLIO_NAME>Aggregate Portfolio</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Equity</ASSET_LIAB_DESC>
    <PERCENT>8.71946226825880885538778864840827563226E-01</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID/>
    <PORTFOLIO_NAME>Aggregate Portfolio</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Others</ASSET_LIAB_DESC>
    <PERCENT>7.3140526307872865690096910040315224715E-02</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID/>
    <PORTFOLIO_NAME>Deviation</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Alternatives</ASSET_LIAB_DESC>
    <PERCENT>2.93117485730770817994482449012020516681E-03</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID/>
    <PORTFOLIO_NAME>Deviation</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Collectables</ASSET_LIAB_DESC>
    <PERCENT>1.28354604277895431879689156620000563094E-02</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID/>
    <PORTFOLIO_NAME>Deviation</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Debt</ASSET_LIAB_DESC>
    <PERCENT>-3.6085338841885100259678951503326304942E-01</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID/>
    <PORTFOLIO_NAME>Deviation</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Equity</ASSET_LIAB_DESC>
    <PERCENT>2.71946226825880885538778864840827563226E-01</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID/>
    <PORTFOLIO_NAME>Deviation</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Others</ASSET_LIAB_DESC>
    <PERCENT>7.3140526307872865690096910040315224715E-02</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID/>
    <PORTFOLIO_NAME>Deviation</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Cash</ASSET_LIAB_DESC>
    <PERCENT>.3</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID/>
    <PORTFOLIO_NAME>Recommended Allocation</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Debt</ASSET_LIAB_DESC>
    <PERCENT>.4</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID/>
    <PORTFOLIO_NAME>Recommended Allocation</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Equity</ASSET_LIAB_DESC>
    <PERCENT>.3</PERCENT>
    </OVERALL_ASSET_ALLOC>
    <OVERALL_ASSET_ALLOC>
    <PORTFOLIO_ID/>
    <PORTFOLIO_NAME>Recommended Allocation</PORTFOLIO_NAME>
    <ASSET_LIAB_DESC>Cash</ASSET_LIAB_DESC>
    <PERCENT>.3</PERCENT>
    </OVERALL_ASSET_ALLOC>
    </LIST_OVERALL_ASSET_ALLOC>
    </CLIENT>
    </LIST_CLIENT>
    </CUST_SUMMARY>and Original RTF looks like !http://farm3.static.flickr.com/2508/4104410643_f540c1d5a3_m.jpg!
    with code as
    C <?crosstab:c594;"//OVERALL_ASSET_ALLOC";"PORTFOLIO_NAME{,o=a,t=t}";"ASSET_LIAB_DESC{,o=a,t=t}";"PERCENT";"sum"?>
    H <?horizontal-break-table:1?>
    G <?for-each@column:$c594//C1?>
    ASSET_LIAB_DESC <?./H?>
    E <?end for-each?>
    G <?for-each:$c594//R1?>
    PORTFOLIO_NAME <?./H?>
    G <?for-each@cell:.//R1C1?>
    99.00% <?./M1?>
    E <?end for-each?>
    E <?end for-each?>Anyone can now tell my mistake? What wrong I am doing? Why it is showing blank page in output? How to solve this page breaking problem?
    Thanks
    -Sookie

  • Customizing the Cell Content of a Pivot Table

    Hi,
    I have been away from ADF for a few years (since 10g v 1.3.1) and am quite impressed with all the Faces functionality added to the 11g release. The application I wrote relied heavily on pivot tables which back then, I had to use stored procedures in the database and dynamically views to display information. I am very interested in moving this application to 11g and taking advantage of the PivotTable component. One thing the application does is change the style of cells based upon the object being presented. I have been reading:
    Oracle® Fusion Middleware
    Web User Interface Developer's Guide for Oracle Application
    Development Framework
    11g Release 1 (11.1.1)
    B31973-03
    And am very interested in section 26.8 Customizing the Cell Content of a Pivot Table.
    I easily created a pivot table and would like to change the formatting of various cells. I created a backing bean for a test page and added the Example 26–4 Sample Code to Change Style and Text Style in a Pivot Table to the bean.
    public CellFormat getDataFormat(DataCellContext cxt)
    CellFormat cellFormat = new CellFormat(null, null, null);
    QDR qdr = cxt.getQDR();
    //Obtain a reference to the product category column.
    Object productCateg = qdr.getDimMember("ProductCategory");
    //Obtain a reference to the product column.
    Object product = qdr.getDimMember("ProductId");
    if (productCateg != null && productCateg.toString().equals("Sales Total"))
    cellFormat.setTextStyle("font-weight:bold")
    cellFormat.setStyle("background-color:#C0C0C0");
    else if (product != null && product.toString().equals("Sales Total")
    cellFormat.setTextStyle("font-weight:bold");
    cellFormat.setStyle("background-color:#C0C0C0");
    return cellFormat;
    Almost verbatim except changed the literals to select data in my use case domain. My question is: How do I invoke this message from my pivot table? I need to pass it a instance of the DataCellContext. The example is great and illustrates what I am looking to do but does not go into the implementation details required. Is there a sample app available for download that demonstrates these capabilities?
    Thanks,
    Jeff
    Edited by: jcapzz on Jun 9, 2011 3:56 PM

    Hello,
    I haven't fully understood your question.
    Is it: How do I call the getDataFormat() method from my pivot table?
    If so , you need to set the dataFormat attribute of your pivot table.
    ex: <dvt:pivotTable id="pt2" var="cellData" varStatus="cellStatus"
    value="#{bindings.YourView.pivotTableModel}"
    headerFormat="#{viewScope.yourBean.getHeaderFormat}"
    *dataFormat="#{viewScope.yourBean.getDataFormat}"*
    contentDelivery="immediate" pivotEnabled="false"
    columnFetchSize="-1" rowFetchSize="-1"
    />
    I also put the *headerFormat* attribute which allows to customize the headers
    I hope I understood your question ;)
    Jack

Maybe you are looking for