Unable to PIVOT data I have

I have a table that contains the following fields:
FORM_TYPE___FORM_YEAR___LINE_ITEM___BUCKET
-----DW23----------- 2008----------------1-------------34
-----DW23----------- 2008----------------11------------12
-----DW23----------- 2008----------------87------------16
-----DW23----------- 2008----------------14------------3
For the data above, I am trying to output each LINE_ITEM as a column, with the corresponding BUCKET as the data, like so:
FORM_TYPE____FORM_YEAR______1_____11____87____14
----DW23-----------2008----------------34-------12-----16-------3
I am running on 11g, so I read about the PIVOT function, but you can only use it on aggregate data (if I am understanding the documentation). Does anyone have any suggestions on accomplishing this?
Thanks,
David
Edited by: 930209 on May 10, 2012 7:49 AM

Hi,
Learning from there : {message:id=9360005}
I come to this :Scott@my11g SQL>with t(FORM_TYPE,FORM_YEAR,LINE_ITEM,BUCKET)
  2  as (
  3       select 'DW23','2008',1,34 from dual
  4       union all select 'DW23','2008',11,12 from dual
  5       union all select 'DW23','2008',87,16 from dual
  6       union all select 'DW23','2008',14,3 from dual
  7  )
  8  select *
  9  from t
10  pivot(
11       max(bucket)
12       for line_item in (1,11,87,14)
13  ) ;
FORM FORM          1         11         87         14
DW23 2008         34         12         16          3

Similar Messages

  • I keep getting this error message: ITunes was unable to load data class information from Synch Services. Reconnect or try again later. What does that mean? Can I fix it? or do I have to wait for the next update?

    I keep getting this error message: ITunes was unable to load data class information from Synch Services. Reconnect or try again later. What does that mean? Can I fix it? or do I have to wait for the next update?

    See TS2690: iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert.
    tt2

  • HT1386 my ipad won't sink; I continually get message:  itunes was unable to load data class information from Sync Services. Reconnect or try again later.  I have done both several times and still receive same messaage.

    My iPad won't sink with my computer.  I continually receive this message: "iTunes was unable to load data class information from Sync Services.  Reconnect or try again later."  I have tried this over a number of days and receive the same message.  Any suggestions??

    IOS: Syncing with iTunes
    http://support.apple.com/kb/HT1386
    Apple - Support - iPad - Syncing
    http://www.apple.com/support/ipad/syncing/
    ITunes: Syncing media content to your iOS devices
    http://support.apple.com/kb/ht1351
    There are some similar posts on the right side of this page (More Like This). Look at those posts.
     Cheers, Tom

  • I have an ipod touch 5th gen and when connected to itunes i get a message saying itunes was unable to load data class information from sync services. reconnect or try again later. anyone got any ideas? i've tried most things on most forums but still no jo

    i have an ipod touch 5th gen and when connected to itunes i get a message saying itunes was unable to load data class information from sync services. reconnect or try again later. anyone got any ideas? i've tried most things on most forums but still no joy

    Try here:
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert
    If not successful see the previous discussion on the right side of this page with the green checkmark.

  • I tried to sync my phone and received this message: "iTunes was unable to load data class info from sync services. Reconnect or try again later." Now it doesn't sync calendars because it says I need to download Outlook, which I already have

    I have synced my phone to my computer several times. This time i received this message: "iTunes was unable to load data class infor from sync services. Reconnect or try again later." It says if I want to sync calendar I must install Outlook to my computer?? Why does iTunes not recongnize that I already have Outlook installed on my computer?

    This worked for me...i did a restore on my computer to take it to a date prior to the last update i did on itunes and now it works just fine.  Everytime i do a backup it syncs my Outlook! When a request comes up saying there's a new version of itunes click here to download the latest one DON'T do it.
    Here's how to do a restore on your computer:
    Create a restore point
    A restore point is a representation of a stored state of your computer's system files. You can use a restore point to restore your computer's system files to an earlier point in time. Restore points are automatically created by System Restore weekly and when System Restore detects the beginning of a change to your computer, such as when you install a program or a driver.
    System image backups stored on hard disks can also be used for System Restore, just like the restore points created by system protection. Even though system image backups contain both your system files and personal data, your data files won't be affected by System Restore. For more information about system images, see What is a system image? You can create a restore point manually at any time by following the steps below.
    Go to the Windows website to watch the video. (1:08)
      Click to open System. 
    In the left pane, click System protection. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
    Click the System Protection tab, and then click Create.
    In the System Protection dialog box, type a description, and then click Create.
    For more information about System Restore, see What is System Restore?
    I HOPE THIS WORKS!
    Annette9114

  • HT1386 When I try to sync my ipod it comes up with a message saying "iTunes was unable to load data class information from Sync Services. Reconnect or try again later". I have reconnected and tried later numerous times! Has anyone else had this problem?

    When I try to sync my iPod touch it comes up with a message saying "iTunes was unable to load data class information from Sync Services. Reconnect or try again later". I have reconnected and tried again later numerous times and it hasn't worked! Has anybody else had this problem and knows how to fix it??? Help me!

    Try here:
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert
    If not successful see the previous discussion on the right side of this page with the green checkmark.

  • I have tried to sync my iPad to iTunes but got an error message saying that i\tunes was unable to load data class information from Sync Services. Any advice would be gratefully received.

    I have tried to sync my iPad to my iTunes following an update to the latest IOS system. I keep getting an error message: "Unable to load data class information from Sync Services"
    Any help would be much appreciated.
    Mike

    Hey Mike Urwin
    Start with the article below for troubleshooting syncing issues with Sync Services.
    Advanced troubleshooting for Sync Services on Windows with Microsoft Outlook 2003, Outlook 2007, or Outlook 2010
    http://support.apple.com/kb/TS2776
    Regards,
    -Norm G.

  • How do i fix ... iTunes was unable to load data class imformation from class sync services reconnect or try again later ? i have itunes 10.5.1

    how do i fix ...... Itunes was unable to load data class information from class sync services?  i have windows vista 64 bit itunes 10.5.1. can anyone help me 

    http://support.apple.com/kb/TS2690

  • Unable to install Adobe Photoshop Elements 13, from disc. The disc is rejected in DVD RW drive, no dialogue box comes up. The  DVD driver is up to date and have updated flash player.

    Unable to install Adobe Photoshop Elements 13, from disc. The disc is rejected in DVD RW drive, no dialogue box comes up. The DVD driver is up to date and have updated flash player.

    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • I have itunes 10.6.1.7. Whenever I try to sync my ipod touch 4g on windows 7 it says unable to load data class. I cant even go to preferences to reset the data sync because it keeps freezing. Can I have some help?

    When I turn on itunes it starts to back up on step 2 and then just takes forever showing a candy cane bar thing.

    Try here:
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert

  • Powerpivot for sharepoint error: Unable to refresh data for a data connection in the workbook

    Hello,
     I have three errors when i try to use a simple powerpivot workbook published in sharepoint: (nothing on google has help me..)
    1-Unable to refresh data for a data connection in the workbook.
    Try again or contact your system administrator. The following connections failed to refresh:
    PowerPivot Data
    2-The embedded PowerPivot data in the workbook cannot be loaded due to a version mismatch
    3-01/21/2012 17:26:47.08  w3wp.exe (0x1950)                        0x0AD0 Excel Services Application     Excel
    Calculation Services     bccc Medium   Session.HandleTrimmedWorkbookReloading: userOperation ApplySlicerSelectionOperation requires BaseWorkbook: "http://crm2011:2020/Marketing%20Reports/test2_excel32bits.xlsx"
    [0x409] [Saturday, 21 January 2012 09:40:18] [BaseWB ID: 2] to be untrimmed if it is currently trimmed. The workbook is currently NOT trimmed. fb614a65-e398-4b97-a98d-fb7b23eab39f
    01/21/2012 17:26:47.08  w3wp.exe (0x1950)                        0x0AD0 Excel Services Application     Excel Calculation
    Services     f1va Medium   CWorkbookWrapper::CWorkbookWrapper: Created with ID=4 fb614a65-e398-4b97-a98d-fb7b23eab39f
    01/21/2012 17:26:47.09  w3wp.exe (0x1950)                        0x0AD0 Excel Services Application     Excel Calculation
    Services     eq3r Medium   ConnectionRequest.ConnectionRequest: New connection request. SessionId=1.V21.4PI+fCwIq52LH++nOoMzs90.5.en-US5.en-US73.-0060#0000-10-00-05T03:00:00:0000#+0000#0000-03-00-05T02:00:00:0000#-006036.bfceb31b-7122-46ca-9e2a-ae52cefcfcaf1.N,
    WorkbookVersion=ConnectionInfo.WorkbookVersion: Uri=http://crm2011:2020/Marketing Reports/test2_excel32bits.xlsx, Version=Saturday, 21 January 2012 09:40:18 fb614a65-e398-4b97-a98d-fb7b23eab39f
    01/21/2012 17:26:47.12  w3wp.exe (0x1950)                        0x0AD0 Excel Services Application     Excel Calculation
    Services     aysl Medium   Succeeded to initialize a chart. fb614a65-e398-4b97-a98d-fb7b23eab39f
    01/21/2012 17:26:47.12  w3wp.exe (0x1950)                        0x0AD0 Excel Services Application     Excel Calculation
    Services     8xk9 Medium   ExternalSource.ExecuteOperation: We exhausted all available connection information. Exception: Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionInfoException: Exception of type
    'Microsoft.Office.Excel.Server.CalculationServer.Interop.ConnectionInfoException' was thrown.     at Microsoft.Office.Excel.Server.CalculationServer.ConnectionInfoManager.GetConnectionInfo(Request request, String externalSourceName, Int32
    externalSourceIndex, Boolean& shouldReportFailure)     at Microsoft.Office.Excel.Server.CalculationServer.ExternalSource.ExecuteOperation(Request request, ExternalSourceStateInfo externalSourceStateInfo, ExternalSourceStateInfo prevExternalSourceStateInfo,
    Int32 index, ConnectionInfoManager connectionInfoManager, ExternalDataScenario scenario, DataOperation dataOpe... fb614a65-e398-4b97-a98d-fb7b23eab39f
    01/21/2012 17:26:47.12* w3wp.exe (0x1950)                        0x0AD0 Excel Services Application     Excel Calculation
    Services     8xk9 Medium   ...ration, Boolean verifyPreOperationConnection), Data Connection Name: PowerPivot Data, SessionId: 1.V21.4PI+fCwIq52LH++nOoMzs90.5.en-US5.en-US73.-0060#0000-10-00-05T03:00:00:0000#+0000#0000-03-00-05T02:00:00:0000#-006036.bfceb31b-7122-46ca-9e2a-ae52cefcfcaf1.N,
    UserId: 0#.w|contoso\manager fb614a65-e398-4b97-a98d-fb7b23eab39f
    My server and client olap versions are the same: MSOLAP.5, i used sql server 2008 R2 SP1 and sharepoint 2010 SP1 and reboot or iisreset have no effect
    Thanks in advance for your help

    Hello Challen Fu
    I would be so grateful if you could please help me out
    I have been trying to find a solution to the same error message
    In my case, the power pivot reports were working before on a regular team  site , but then two things changed:
    a)  I  created a toplevel site using the BI Center template. Now I am using a Business Intelligence template , created a power pivot gallery library and uploaded a few powerpivot reports
    b)  On the  backend, the database instance was upgrated to SQL Server 2012 
         Front end Server VDSP01  remains  SQL Server 2008 R 2 where Sharepoint 2010  was installed as a FARM  
    Now, the reports will display in sharepoing however they will not refresh. the error message i get is the same.
     Scenario recap:
    a- Server VDSP01  uses SQL Server 2008 R 2 where Sharepoint 2010  was installed as a FARM
    b- On the back end,  the database instance name was replaced with SQL 2012 Server:
               from SQL Server 2008 R 2 (instance DBDEV-COTS\COTS)
               to     SQL Server 2012 ( instance VTSQL01\COTS)
    c-  I was told that:
         From VDSP01, they ran
    CliConfg.exe   to create SQL Server Alias :
           where    BEFORE: vdsharepoint -->  DBDEV-COTS\COTS
                and  AFTER    : vdsharepoint -->  VTSQL01\COTS
     I appreciate in advance any help you can provide<v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe" stroked="f">
      <v:stroke joinstyle="miter">
      <v:formulas>  <v:f eqn="if lineDrawn pixelLineWidth 0">
      <v:f eqn="sum @0 1 0">
      <v:f eqn="sum 0 0 @1">
      <v:f eqn="prod @2 1 2">
      <v:f eqn="prod @3 21600 pixelWidth">
      <v:f eqn="prod @3 21600 pixelHeight">
      <v:f eqn="sum @0 0 1">
      <v:f eqn="prod @6 1 2">
      <v:f eqn="prod @7 21600 pixelWidth">
      <v:f eqn="sum @8 21600 0">
      <v:f eqn="prod @7 21600 pixelHeight">
     <v:f eqn="sum @10 21600 0">
    </v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:formulas>
     <v:path gradientshapeok="t" o:connecttype="rect" o:extrusionok="f">
    <o:lock aspectratio="t" v:ext="edit">
    </o:lock></v:path></v:stroke></v:shapetype> <v:shape alt="" id="Picture_x0020_2" o:spid="_x0000_i1025" style="width:630pt;height:475.5pt;" type="#_x0000_t75">
    <v:imagedata o:href="cid:[email protected]" src="file:///C:\Users\wlarange\AppData\Local\Temp\msohtmlclip1\01\clip_image001.jpg">
    </v:imagedata></v:shape>
    wanda larangeira

  • Unable to display data in BI publisher Report

    Hi,
    We are developing BI publisher reports in siebel 8.1.1.
    We are able to preview data perfectly with the rtf which we developed and by loading sample data file generated based on integration object.
    we uploaded the template file into the application associated with the integration object and generated xliff and tagged it to a view.
    When we navigated to that view and trying to run the report. the report is generating but unable to view data in that report .
    on checking siebel log we found the below error....
    ObjMgrLog     Error     1     000000024b97169c:0     2010-03-10 20:24:01     (bcfile.cpp (5808)) SBL-SVC-00185: Error occurred while deleting file 'Error occurred while deleting file 'C:\Siebel81\Client\Local\files\S_XMLP_REPOUTPT_17XF-3PM_.SAF'.'.
    did anyone of you faced this kind of issue....?
    Please help .
    Maneesh

    Thanks for you reply,
    Our scenario is this report is basically a dissconnected mode report... we are developing these reports for mobile clients.
    We dint face this kind of issue while developing other reports.
    So please let us know if you have any idea on why we are facing this issue.
    Regards,
    Maneesh

  • Unable to capture data from drop down list in custom added field in migo tcode at item level

    Hi guys,
    need bit help in resolving query related to custom added field in Tcode migo.
    i have added a field in migo at item level ,in this i have used drop down list
    to get data but unable to capture data from drop down list.gown through
    many blogs in scn but unable to resolve.
    Please help me out in this.
    Thanks,
    Umakant.

    Hi,
    U can use following code to fill the list box
    write this code in PBO
    In layout editor please select listbox in dropdown attribute of input field and put some fctcode attribute
    TYPE-POOLS vrm.
      DATA values TYPE vrm_values WITH HEADER LINE.
      TABLES: <ur custom Database table>.
      clear values, values[].
      SELECT * FROM <ur custom Database table>.
        values-text = <TABLE FIELD TO DISPLAY IN DROPDOWN> .
        values-key = <TABLE KEY FIELD TO DISPLAY IN DROPDOWN>.
        APPEND values.
      ENDSELECT.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = '<SCREEN INPUT FIELD NAME>'
          values          = values[]
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
    Also please define the following before accessing the listbox value
    data: <listbox input field name> type <table field name>,
            <inputfield name where text to display> type string  in top include
    In PAI, select the text from the table into <inputfield name where text to display>  depending on value selected which will be called when enter key is pressed or any vale is selected

  • OraRRP Error with "Unable to copy data file;Error code 2, check disk space"

    Hi,
    Some users get this message -"Unable to copy data file;Error code 2, check disk space" when run report with orarrp, but most users do not get it.
    I check free space at both server and client side, they are very sufficient.
    I also checked directory exists for REPORTXX_TMP variable.
    My user call reports via URL (rwservlet) and it occur for all reports.
    How I can solve this problem?
    Thanks in advance.
    Tawatchai R.

    Hi,
    have the same problem now. One user has temporarily problems to download .rrpa files via URL (rwservlet) request. Error code: -"Unable to copy data file;Error code 2, check disk space". Did you get a solution??
    Thanks in advance. Axel

  • DropDrown unable to get data in ALV

    Hi,
    I'm trying to put an dropdown by key (or index) into an ALV but I'm unable to get data in the dropdown. Can someone please help me with this?
    I was watching this threads on topics at the forum, but I can not solve this problem.
    Copy my code.
      DATA: lr_col                            TYPE REF TO cl_salv_wd_column,
                 lr_dropdown                  TYPE REF TO cl_salv_wd_uie_dropdown_by_key,
                 l_cmp_usage                TYPE REF TO if_wd_component_usage,
                 l_alv_model                   TYPE REF TO cl_salv_wd_config_table,
                 l_ref_interfacecontroller  TYPE REF TO iwci_salv_wd_table.
      l_cmp_usage = wd_this->wd_cpuse_doc_measure( ).
      IF l_cmp_usage->has_active_component( ) IS INITIAL.
        l_cmp_usage->create_component( ).
      ENDIF.
      l_ref_interfacecontroller = wd_this->wd_cpifc_doc_measure( ).
      l_alv_model = l_ref_interfacecontroller->get_model( ).
      l_alv_model = l_ref_interfacecontroller->get_model( ).
      l_alv_model->if_salv_wd_table_settings~set_read_only( abap_false ).
      lr_col = l_alv_model->if_salv_wd_column_settings~get_column(
        id = 'VALEUR_DIFF' ).
      CREATE OBJECT lr_dropdown
        EXPORTING
          selected_key_fieldname = 'VALEUR_DIFF '.
      lr_col->set_cell_editor( lr_dropdown ).
      DATA:
      lo_nd_ctx_tab TYPE REF TO if_wd_context_node,
      lo_ndinfo_ctx_tab TYPE REF TO if_wd_context_node_info,
      lt_value_set TYPE TABLE OF wdr_context_attr_value,
      ls_value_set TYPE wdr_context_attr_value.
      ls_value_set-value = '01'.
      ls_value_set-text = 'One'.
      APPEND ls_value_set TO lt_value_set.
      ls_value_set-value = '02'.
      ls_value_set-text = 'Two'.
      APPEND ls_value_set TO lt_value_set.
      lo_nd_ctx_tab = wd_context->get_child_node( 'DOC_MEASURE' ).
      lo_ndinfo_ctx_tab = lo_nd_ctx_tab->get_node_info( ).
      lo_ndinfo_ctx_tab->set_attribute_value_set(
        name = 'VALEUR_DIFF' value_set = lt_value_set ).
      DATA: lt_valueset TYPE TABLE OF wdr_context_attr_value,
                ls_valueset TYPE wdr_context_attr_value,
                lr_node TYPE REF TO if_wd_context_node,
                lr_nodeinfo TYPE REF TO if_wd_context_node_info.
      lr_node = wd_context->get_child_node( 'DOC_MEASURE' ).
      lr_nodeinfo = lr_node->get_node_info( ).
      lr_nodeinfo->set_attribute_value_set(
      EXPORTING
        name = 'VALEUR_DIFF'
        value_set = lt_valueset
    Thanks.
    Matías.

    Hi,
    In your code, you are trying to do set_attribute_value_set twice. If you read your code carefully, you are setting the values once using lt_value_set where you have correctly filled the values. But after this, you are again trying using lt_valueset without filling any values. This is why your previous value-list gets overwritten and you see nothing in the dropdown. Remove the following lines in your code and it will work fine.
    DATA: lt_valueset TYPE TABLE OF wdr_context_attr_value,
    ls_valueset TYPE wdr_context_attr_value,
    lr_node TYPE REF TO if_wd_context_node,
    lr_nodeinfo TYPE REF TO if_wd_context_node_info.
    lr_node = wd_context->get_child_node( 'DOC_MEASURE' ).
    lr_nodeinfo = lr_node->get_node_info( ).
    lr_nodeinfo->set_attribute_value_set(
    EXPORTING
    name = 'VALEUR_DIFF'
    value_set = lt_valueset
    Please get back if you are facing any more issues.
    Regards,
    Nithya

Maybe you are looking for

  • Error Message and warning message in PO creation

    Hi,    I have one requirement like when user create PO with 'critical material',while saving PO,user  should get message "critical material". For this ,in the enhancement MM06E005,EXIT_SAPMM06E_012(functional module), I have written piece of code *cr

  • Just got new T530 with wrong wireless card. Which model of Intel 6300?

    Hey all, been surfing the google god for a few days but can't seem to find a secure answer that makes me happy. Just got a new T530 model 2359 laptop for my new job. Other then one stuck pixel that refuses to go away im pretty happy with it as I upgr

  • ITunes 7 and very loud buzz during music playback

    I upgraded to iTunes 7 and now when I play music on my iMac G4 I occasionally get a very loud buzz breaking into the music. It seems totally unpredictable and it sounds like a very loud, annoying alarm. I think it only appears in the left-hand speake

  • Single Payment Receipts against multipule customer invoices

    Hi All, I need your help to slove this business senario, here i have one payment receipts i need to clear against multiple customer invoice, how to clear the single payment receipt for multiple customer invocies, But customer will not infore which in

  • How do I get music and movies from iPod to my computer?

    Hi How can I put all of my music and movies that are on my iPod onto my computer? They were all on my computer before but became erased. Thanks!