PivotTable summary

Nice day!  Recently Frank Kulash has helped me in the coding of a pivot table to get a range of static output of the total results of value per month using Oracle 11 g

My new number to that I work uses a PivotTable to get values like I did before as well as the totals per year.  To get the current correct results allow to show what I have...

Query current Pivot:

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

WITH KEYACM AS

(

SELECT CF_PERIOD, CF_VALUE, CF_KEYWORD_ID,

ROW_NUMBER () OVER (PARTITION OF CF_KEYWORD_ID

ORDER OF CF_PERIOD desc

) AS r_num

OF AMEXIV. MAS_CFUS_KEYACM_CONTROLDATA

)

SELECT *.

OF KEYACM

PIVOT (MIN (KEYACM. CF_VALUE) AS A VALUE

MIN (KEYACM. CF_PERIOD) AS THE PERIOD

FOR r_num (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24)

)

ORDER BY CF_KEYWORD_ID;

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

This breeze, the CF_VALUE and the CF_PERIOD of CF_KEYWORD_ID and the look of results like this (assume that JAN-14 is the current period)

CF_KEYWORD_ID 1_VALUE 1_PERIOD 2_VALUE 2_PERIOD 3_VALUE 3_PERIOD etc... until the 24_PERIOD 24_VALUE

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

available_reserve - January 1st, 14 375.00 100.50 1 December 13 21300.74 1 November 13 900.50 1 February 12

The above results, the values are correct and appear perfectly in Ireports Jasper.  What I'm trying to do is to insert the 2 or 3 columns that would be a total of annually, SUM_1, SUM_2 and SUM_3 (no label is required).  In the above results, there must be a total of 2014 that will include all the month of January.  While there should be a total for all excluding JAN 2012 and 2013 since it does not have in the past 24 months of the selected period.  If the selected month was DECEMBER then just two summarized as you seek to two full years.

Is it a solid way to solve this problem?

In case anyone is interested, it would not be the ideal way but excerpts from here is how I coded the final solution.

SELECT

(CASE WHEN KEYACM. CF_PERIOD = TO_DATE (CONCAT ('01 - JAN-', TO_CHAR (TO_DATE ($P {PERIOD}, 'MON - YY'), "YY"))) THEN KEYACM. CF_VALUE END) SUCH AS JAN

(CASE WHEN KEYACM. CF_PERIOD = TO_DATE (CONCAT ('01 - FEB-', TO_CHAR (TO_DATE ($P {PERIOD}, 'MON - YY'), "YY"))) THEN KEYACM. CF_VALUE END) BY FEB

(CASE WHEN KEYACM. CF_PERIOD = TO_DATE (CONCAT ('01 - MAR-', TO_CHAR (TO_DATE ($P {PERIOD}, ' MON - YY ""), "YY"))) THEN KEYACM. CF_VALUE END) AS MAR

, CONCAT ('JAN -", TO_CHAR (CF_PERIOD,"yy")) AS JAN_PER

, CONCAT ('FEB -', TO_CHAR (CF_PERIOD, "yy")) AS FEB_PER

, CONCAT ('MAR -', TO_CHAR (CF_PERIOD, "yy")) AS MAR_PER

The first three WHERE the declaration will give me the value for the whole year is that is introduced.  The date value is always the first day of the month, that is why I am interested in the year only and always CONCAT 01 - MY

The last 3 statements select will give me the title of the correct to display above the column column.  Here's a final copy of the report which looks like.  They won't display empty columns to... basically it like a calendar, even if there is no data.

Tags: Database

Similar Questions

  • Navigation issues

    I have a table similar to the one below. What I'm trying to do, is make the first column of links that navigate to another page. The question I have is that each title (that is, in person) must be brought to its own page of dashboard with different statistics. So, how can I set up 4 different sailing for more information routes in the 1 table. Any help would be great


    2010Q 3 2010 Q 2 2010 Q Q 1 2009, 4
    In person 1 1 1 1
    Phone 1 1 1 1
    Email 1 1 1 1
    Letter 1 1 1 1


    Thank you

    Matt

    Okay, try a different approach. Several come to mind:

    Keep your summary report if a user needs all see.

    Option 1: Add objects to link or Image in another section of the dashboard the value "horizontally", one for each choice in the table. The user can click on the appropriate link that would take them to report appropriate, personalised for the given value.

    Option 2: Add all columns for all detail reports and build PivotTables that select only the columns that relate to the value that a user wants to see more detail. Then, build a view selector to accommodate all the views PivotTable summary (or Table View) by default.

    Or the other of these ways would not add clicks, users will have to perform; where they click.

    I don't know any way to use the Interaction to direct a user to one of 5 different reports without encourage somehow. There are other ways using the dashboard of the guests, or means that are limited to the Table views and require drilling down, (see article from the blog of Vidal here: http://oraclebizint.wordpress.com/2008/03/05/oracle-bi-ee-101332-conditional-drills-and-dynamic-tool-tips-html-formatting-and-go-url/), but I think or either of these two ways will work for you.

  • Sum of columns together in the responses, and then calculated off summary columns

    I have three questions answers (with 4 columns) that I have gathered the results for:

    Four columns are: campaign # promoted # Respones, # Respones promoted

    Query 1:

    Campaign, # promoted, 0, 0

    Query 2:

    Campaign responses #, 0, 0,.

    Query 3:

    Campaign, 0, 0, # promoted Respones

    My query returns the following (assuming that the campaign code is ABC) 3 rows:

    Campaign of # Promoted # Responses # Promoted answers
    ABC10000
    ABC0120
    ABC009

    I want to put in place so that it adds campaign to get a row of results as follows:

    Campaign of # Promoted # Responses # Promoted answers
    ABC100129

    I can get this result using the conversion to a PivotTable (won't go thought road if possible because I have other calculations that I need to add).   Once I get this summary to a single row result I then do a few such analyses that create:

    1. Response % (Respones # / # promoted)
    2. Promoted to the rank of % (# promoted answers / # promoted)

    When I add the calculatinos to the percentages to the United query I get null or zero for my results.   I used the Add button to insert a calcuation and then I used the following formula: saw_2 / saw_3

    Here's what I would preferably:

    1. Sum of answers (not a pivot table) Table columns.
    2. Add columns calculated at United query that will produce results based on the combined pivot columns
    3. If I use the PivotTable, and then how to get the values calculated for work

    Thank you...

    Ben,

    Try to use the rule of aggregation on the columns in the Table view and see if that makes a difference.

    I just tried this and the SUM of each of the criteria provided the results I wanted, which in turn you are looking for.

    If nothing works for you send me the screenshot of what you are trying to do at vijaybez at gmail and I can understand what is happening properly...

  • Error with PivotTable in 10.3.6 weblogic server

    Hello world

    I created an ADF application and that I have a pivot table I developed using Jdeveloper 11.1.1.3 it worked very well when we deployed the Weblogic Server 10.3.3 application.

    Now, s/n of updated the Weblogic Server to 10.3.6 so I downloaded 11.1.1.6 Jdeveloper and generated the EAR file and deployed in the 10.3.6 new server. The PivotTable does not work I get the following error message

    Cause first of ServletException.

    1. java.lang.NoSuchMethodError: oracle.adfinternal.view.faces.bi.renderkit.imageView.ImageViewRendererUtils.isAttachmentMode (Z)
      at oracle.adfinternal.view.faces.bi.renderkit.pivotTable.RichPivotTableRenderer.getRowBlockSize(RichPivotTableRenderer.java:1489)
      at oracle.adfinternal.view.faces.bi.renderkit.pivotTable.RichPivotTableRenderer.getPivotTableEncodeContext(RichPivotTableRenderer.java:1616)
      at oracle.adfinternal.view.faces.bi.renderkit.pivotTable.RichPivotTableRenderer.encodeAll(RichPivotTableRenderer.java:1789)

    Here is the code

    < dvt:pivotTable id = "employeeDocuments_pt".

    value = "#{Bindings.lum_EmployeeDocumentsReportView1.pivotTableModel} '"

    Binding = "#{backingBeanScope.backing_LUM_EMPLOYEE_DOCUMENTS_REPORT.employeeDocuments_pt} '"

    var = 'cellData"varStatus ="cellStatus"size = 'auto' summary = 'entries '.

    inlineStyle = "width: 1400px; height: 900.0px; »

    rowFetchSize = "-1" columnFetchSize = "75" >

    < dvt:dataCell dataAttribute = "DocumentFlag" >

    < af:selectBooleanCheckbox id = "idselectbooleancheckbox" label = "SELECT" value = "#{cellData.dataValue} '"

    readOnly = "true" / >

    < / dvt:dataCell >

    < / dvt:pivotTable >

    The code remains the same, that nothing has changed since 10.3.3 to 10.3.6 and I even tried to deploy the ear file generated by jdeveloper 11.1.1.3 even that did not work.

    This soemthing is related to the problem of the libraries?

    Can someone help me on this.


    Thank you

    Harika.


    Herald, yes the runtime adf of mass to be installed separately after the installation of wls. Not sure about the impact of the discoverer installation 11.1.1.7.

    Maybe you need to use Jdev 11.1.1.7.0 in this case. However, as this version works on wls 10.3.6 that shouldn't be a problem.

    Like I dunno discoverer you should check the certification matrix got the two products to ensure that they work together on a single server.

    Timo

  • In the PivotTable data not traveling with the question of the form

    Jasmine or someone who can help,

    I have a form with a dynamic table in it. When this form is completed and submitted in the workspace only the first line of this table appears in the next step of the process. Because a signature is required and that and all the rest appear in the next step in the process, but the PivotTable is giving me, I submit the form in PDF format.

    I enclose the form. It has a built-in schema and some JavaScript in there basic calculations.

    Thanks for your help,

    Brian

    Your table don't travel with the form is because your drawing is a bit off.

    You have StockNo, descriptionArticlesServices, quantity, unit of issue, unit price estimated amount, amount and propcode.

    Your table is put in place to repeat for each item of data, which is OK, but you have to hand in your schema.  If you want to basically something like this:

    You can then link the text stockNo field in the $record. P1. TableInfo.TableRow [*] .stockNo

    In summary, your schema is currently only showing a single item (no extensible data node), so you can have only 1 piece of data to the entry in the table.

    Hope that helps!  In the affirmative, please mark it as useful or correct!

    Alex

  • Magic mouse "summary."

    Only for a few days my Magic Mouse became 'summary' or incompatible with the follow-up.

    I did the "tape/paper" difficulty on batteries, so he no longer has the disconnection problem (at least not often).

    However, it is extremely difficult to simply move the mouse around the screen the speed is not all consistent (going from slow to fast... you have to fight so he can point more precisely what either).

    I tried cleaning the sensor... no change.

    Ideas... ?

    I see that you are on El Capitan (and 10.11.3, not the highest level).  And that is your problem.   You are using a version of Magic Mouse 1 with the latest OS.

    El Capitan requires 2 magic mouse work properly.  Magic mouse 1 will give you a small percentage of what you need, but for full functionality, you need Magic Mouse 2.

    I know that Apple does not tell you this when you were tempted to upgrade, but the new mouse has been designed to work with the new operating system and the operating systems that will follow, such as the Sierra, coming in the fall.

  • Pages/summary

    Hello

    I use Pages to write a document.

    I have already created an automatic summary but I need to create a PDF file and I don't know how to keep this automatic summary after transfer to the PDF format.

    Could you please help me find a solution to this problem?

    Thank you.

    Automatic summary, do you want to say table of contents? If Yes, then export to PDF includes the Table of contents.

  • How can I get my weekly summary under my activity other than a popup once per week?

    How to make a copy of my weekly summary under my activity tracker?  I liked seeing the number of steps and miles that I picked up last week, but now I can't find that info again.  She appeared as an alert on my Apple Watch.  When I use the health app on my IPhone there dashboard that says daily/weekly/monthly/year, but does not update with info

    You can check the weekly summary anytime, by opening the Activity.app on the watch.

    From: http://help.apple.com/watch/#/apd3bf6d85a6

    Open the activity on Apple Watch and press firmly on the display until you see the prompt to change your goal to move.

    Now press the 'Weekly summary' button to see the summary.

    You can take a screenshot to save an image of the summary.

  • My new iPhone shows up under devices in the sidebar of iTunes, but I can't find the summary screen

    I googled several fixes, but none of them work.  My phone appears under devices, but no summary screen.  I just had on the phone yesterday and he restored the old phone.  I want to be able to select certain playlist to have this phone, etc..  Summary screen was easy to show everything I needed to know or change.  How to display summary screen?

    Yes, I made sure I have the latest version of iTunes.  Yes, it is connected via the port usb and visible in the devices.  No, when I right click on the device it shows a summary option, just eject, restore, sync etc.

    See the boxed area in my screenshot:

    That's what you click on, not on the name of the device in the sidebar.

  • How to use formulas to extract a picture from the base of the summary sheet

    Hi, I have a database of over 1,000 products. each has a picture. and I want to extract the picture of a product to see the summary of this product. And I hope

    and every time I change the name of the product indicates the corresponding picture in his column. I tried the lookup function, but is does not work. I used the DRAG & DROP

    to put the photo in the database. How can I solve this problem? Thanks Yanni [email protected]

    Hi Tulip.

    What you ask is likely not possible in number.

    Cells in a table of numbers can act as "containers" for images. Images can be placed in the cells only as a 'picture fill", which is the 'format' rather than 'content '.

    'Format' can be changed by using a formula.

    You might try experimenting an AppleScript script to copy the actions you would take to make the transformation thi "by hand." While such a solution may be possible, it is not one that I can recommend.

    To include images that can be changed according to what data are placed in another field in the record, you will need to probably upgrade the capabilities of "Manager of the list" numbers to a real database application, like FileMakerPro, making fields "container" include that can contain an image 'data' rather than 'filler '.

    Kind regards

    Barry

  • These last questions w/eBay font size. Fonts page summary now too small to read.

    eBay policies is always displayed correctly using IE. BUT little by little, eBay police changed the size of font within a given page of eBay. 'My eBay' a 10 drop-down selections. These 5 are OK: offers/offers, Watch List, purchase history, my Collections, Messages. These 5 police being so small almost invisible: summary, wish list, all the lists, sales, followed by research. If all goes well, a fellow eBayer is to see these changes too.

    I'm guessing that eBay programmers have been tweaking Internet Explorer to correctly display the fonts on all pages, as Internet Explorer has had its own problems of font size of eBay in the past. But now using Internet Explorer looks good! However, at the same time, Firefox has really gone South. My guess is the tweaking of the IE has destroyed now possibility of FireFox to display the font correctly sizes in eBay. Ask me questions if you see what I see. I can send some screenshots. Thank you, Tom Smiley

    Two other thoughts:

    (1) Firefox allows you to select a font size minimum for all pages. It can destroy a large number of provisions, so usually it not very useful, but if the fonts are unreasonably tiny, you can try it.

    "3-bar" menu button (or tools) > Options > content > button "Advanced".

    The top of the page, set "fonts for: Western ' and then about halfway to the bottom of the dialog box, change the Minimum font size to 9.

    At the top, the value ' fonts for other languages: ' and repeat the process. And then click OK.

    Which enlarges the tiny fonts?

    (2) there are scaling of the problems with the new screens of more-than-the-full-HD, especially when the site uses the Flash plugin. If you have such a screen, you may lodge a complaint with the site, so they can update their Flash media.

  • Where to find the summary of all items purchased from iTunes Store?

    Due to the receipt of multiple gift cards, I had a credit balance to the iTunes store. Checked today and she was quite weak. 'My account' and 'Purchases' on iTunes store only shows apps and the music that I bought... it does not show in-app purchases.

    Where can I find a summary of all purchases?

    Thanks in advance for assistance.

    The history of your purchases on iTunes from your computer should show on all purchases of the account, including the in-app purchases, not only the music and apps: see your purchase history in iTunes on Mac or PC - Apple Support store

    Or you can view the latest purchases of 90 days on your account via http://reportaproblem.apple.com

  • How to remove movies from the summary page

    With the help of iTunes version 12.4.  Can anyone help in my attempts to remove movies at home summary page in iTunes?  I was able to remove movies from my iPhone and iPad and unchecked on the summary in the movies tab page.  However, films controlled and deleted still appear in the section summary of movies.  Cannot find a delete any action to remove unwanted movies.  This has to do with the deletion in iTunes itself on a Windows version 10.

    Steve

    FOUND THE ANSWER!  From a previous post-, I had the same problem. You cannot remove them from the summary page. Cannot you.

    In the app iTunes on Mac or PC, without your phone, from the drop-down menu at the top left - select movies and then click on, select, Home Videos. In the next screen, select the home theater and right click. This will allow you to remove. Once you reconnect your phone and sync, the cinema will be gone from your Summary Page!

    Steve

  • Calculations of the summary worksheet

    I'm composing a workbook with a summary page that will calculate all the questions in the other worksheets.  I wish I could hide the zero in the summary to the summary so busy.  How can I do this?

    A way to hide the zeros in number is via a custom Format.

    I added a rule to the Custom Format and do nothing put in the box.

    SG

  • where's summary

    Today I downloaded iTunes, the last time I downloaded iTunes, that's when I got the iPhone 4 but I switched to android, now I'm back with iPhone 6. I can't find the iTunes summary 12.3.3 tab I'm under 64-bit Windows 10... Can anyone help

    You must click on the little iPhone icon at the top of the iTunes window. This will make the Summary tab appear. Note that the iPhone must be connected to the computer before iTunes will display the iPhone icon click.

Maybe you are looking for

  • Random stops of Macbook Pro with "cause stop:-128.

    My Macbook Pro 15 "mid-2014 A1398 will stop randomly.Console shows "cause stop:-128.I have zero SCM and NVRAM until reinstalled OS X.Apple Diagnostics showed no questions.

  • Satellite A300 - 1-3 - question on CPU Fan

    I have a Toshiba Satellite A300 - 1 3, recently I had problems with my laptop in which the laptop suddenly stops working, when I checked the forum, I was advised to clean the cooling system, which I did and all is now ok; recently, I noticed that CPU

  • HP Envy M6 loses internet intermittently when running on the battery.

    Hello Recently, my HP Envy M6 has been intermittently lose internet during the execution of battery - it's always nice when it's plugged in, however. I ran the diagnostics manual wifi and nothing is not detected.  Any ideas? I am running windows 8.1a

  • The programs compatibility error message saying that compatible with XP Service pack 2.

    I have Windows 7.  My itunes won't start I think because of the mistake of the program saying that compatible with XP Service pack 2 compatibility. I installed the latest version of itunes 64-bit for Windows 7 10 times already and rebooted several ti

  • OBIEE 11 G print a report

    On the reports... it seems to be a declaration attached by the server: This report may contain material protected by federal regulations or other privileges. If you have received this report in error, please immediately notify the sender and permanen