Are Pivot and Unpivot supported in SSRS

We're upgrading from SSRS 2005 to 2008 R2.  I'm rewriting some of my reports and using Unpivot. In SQL it works fine when I run it against the database.  But in SSRS (BIDS 2008) when I paste the working SQL statement into the Query Builder, I get
an error that "The UNPIVOT SQL construct or statement is not supported".  If i click OK and preview my report, it does run.  So, I'm not sure why I'm getting this error.  Has anyone had experience with this?
Milissa Hartwell

Thats a known issue with query designer in SSRS. You dont need to worry much on it as report still works fine. If you're so concerned on the pop up make query into a stored procedure and call stored procedure from SSRS dataset query. Then you wont get
any of these issue.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • Evaluated order of Pivot and UnPivot in select statement

    My research which evaluated order of select statement is below.
    1 from
    2 where (Join condition)
    3 start with
    4 connect by
    5 where (filter of rows)
    6 group by
    7 having
    8 model
    9 select
    10 order byMy question is Where Pivot clause and UnPivot clause ?
    http://download.oracle.com/docs/cd/E16338_01/server.112/e10592/statements_10002.htm

    Provided that you can specify columns created by the PIVOT clause both in the select and in the Order By clause, I think the pivot must be executed before them:
    SQL> r
      1  select job, d10,d20,d30 from emp
      2  pivot (sum(sal) for deptno in (10 as D10, 20 as d20, 30 as d30))
      3* order by d20
    JOB              D10        D20        D30
    CLERK                       800
    CLERK                      1100
    MANAGER                    2975
    ANALYST                    3000
    ANALYST                    3000
    SALESMAN                              1600
    PRESIDENT       5000
    MANAGER         2450
    SALESMAN                              1500
    SALESMAN                              1250
    CLERK           1300
    MANAGER                               2850
    SALESMAN                              1250
    CLERK                                  950
    Selezionate 14 righe.
    Piano di esecuzione
    Plan hash value: 1739977809
    | Id  | Operation            | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT     |      |    14 |   518 |     5  (40)| 00:00:01 |
    |   1 |  SORT ORDER BY       |      |    14 |   518 |     5  (40)| 00:00:01 |
    |   2 |   HASH GROUP BY PIVOT|      |    14 |   518 |     5  (40)| 00:00:01 |
    |   3 |    TABLE ACCESS FULL | EMP  |    14 |   518 |     3   (0)| 00:00:01 |
    -----------------------------------------------------------------------------Max

  • PIVOT and UNPIVOT

    I have a column called Qty and AMt
    QTY     AMT
    1          2
    1           1
    2           2
    I need to pivot/unpivot this in such a way that I need a collumn called Measurecode and Measure
    MeasureCode         Measure
    QTY                            1
    AMT                             2
    QTY                             1
    AMT                              1
    QTY                              2
    AMT                              2
    How do I do this?
    SPPandey

    You must have a column that uniquely identifies each row in the original table. Otherwise, after unpivot shuffle rows may occur. For example, if you need sorting by Measure column.
    -- code #1
    ;with QA as (
    SELECT ID, 1 as Seq, QTY, AMT
    from table
    union all
    SELECT ID, 2, QTY, AMT
    from table
    SELECT ID,
    MeasureCode= case when Seq=1 then 'QTY' else 'AMT' end,
    Measure= case when Seq=1 then QTY else AMT end
    from QA
    order by ID, MeasureCode desc;
    or
    -- code #2
    SELECT ID, MeasureCode, Measure
    from table
    unpivot (Measure for MeasureCode in (QTY, AMT)) as U;
    If there is no column that identifies the rows, you can create temporary column with sequence before the unpivot:
    -- code #2 v2
    SELECT Seq, MeasureCode, Measure
    from (SELECT Seq= row_number() over (order by (SELECT 0)), QTY, AMT from table) as S
    unpivot (Measure for MeasureCode in (QTY, AMT)) as U;
    José Diz     Belo Horizonte, MG - Brasil

  • Pivot and Unpivot in Oracle 10g

    Hi,
    This is my table structure
    CREATE TABLE TESTTABLE
    REVENUE1 NUMBER,
    REVENUE2 NUMBER,
    REVENUE3 NUMBER,
    YEAR DATE
    insert into testtable(revenue1, revenue2, revenue3, year) values(100,200,300,'1-Jan-2009') ;
    insert into testtable(revenue1, revenue2, revenue3, year) values(250,350,450,'1-Jan-2010') ;
    insert into testtable(revenue1, revenue2, revenue3, year) values(300,400,500,'1-Jan-2011') ;
    The resultant should be on oracle 10g.
    The result should be like
    1-Jan-2009 1-Jan-2010 1-Jan-2011
    Revenue1 100 250 300
    Revenue2 200 350 400
    Revenue3 300 450 500
    Thanks in advance

    Hi,
    Naveen wrote:
    ...Thanks for the reply but this will not make the year as the column header it will be shown as a row in the result set.That's exactly what I thought you wanted, based on your first message:
    Naveen wrote:
    The result should be like
    1-Jan-2009 1-Jan-2010 1-Jan-2011
    Revenue1 100 250 300
    Revenue2 200 350 400
    Revenue3 300 450 500It would have been clearer if you had said: "The result set should be like these 3 rows:
    {code}
    Label 1-Jan-2009 1-Jan-2010 1-Jan-2011
    Revenue1 100 250 300
    Revenue2 200 350 400
    Revenue3 300 450 500
    {code}
    When posting formatted text (such as results) on this site, type these 6 characters:
    \(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
    Column names are hard-coded into the query.  To get variable data, such as '1-Jan-2009' as a column header, you must use dynamic SQL.  This is probably best done in your front-end.  SQL*Plus, for example, has substitution variables, that you can define with data from your table at run-time using the COLUMN ... NEW_VALUE command.  (SQL*Plus also has a COLUMN ... HEADING command that can do what you want, , but it doesn't simplify this particular problem.)
    What front-end tool are you using?  Can you use SQL*Plus?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • I am having difficulty: we are running a windows server 2003 - mail and outlook support 2007 and upwards, how do I get the brand new apple machines to work with the 2003 version of server

    I am having difficulty: we are running a windows server 2003 - mail and outlook support 2007 and upwards, how do I get the brand new apple machines to work with the 2003 version of server

    I may be way out, but do you know about this product, would it help integrate the Macs for you.
    https://www.thursby.com/sites/default/files/images/ADmitMacv8_SPD.pdf

  • I have a problem with my Iphone 4s since I did my first update at your Itunes, the bluetooth and the WiFi it is not workinhg anymore.  It is sad that companies like apple are not able to support thier sofware and business.  I went to a apple store at Sout

    I have a problem with my Iphone 4s since I did my first update at your Itunes, the bluetooth and the WiFi it is not workinhg anymore.
    It is sad that companies like apple are not able to support thier sofware and business.
    I went to a apple store at South Park, Charlotte NC,
    and found out the worst customer service (in my case)
    They don't have answers and don't understand about  "dont let any customer go away sad or mad"
    I explain to them that I did everything they said to fix the problem, even to dounload the iOS 6.1.3
    that was supposed to fix the problem.
    they said fix the problem in other phones but not in mine.
    So here I am with no wifi and bluetooth, with apple technicians and experts that don't know what to do with the problem that the sofware they developed cause in my iphone 4s.
    and the solution is for me to pay $199.00 US dollars for a problem that I did not cause.
    wich means to buy something else from apple to fix a problem that it is not my fault.
    Great! what a convenient solution.
    I would like to have an answer from you guys and see if someone there have a better answer for me that shows support, values and integrity as a grest company with solutions for your customers.
    Dont think that I want a new phone, I want mine fixed if is possible.
    Thank you very much and God Bless you!

    Apple isnt here. this is a user based forum for technical questions. The solution is to restart, reset, and restore as new which is in the manual after that get it replaced for hard ware failure. if your within your one year warranty its replaced if it is out of the warranty then it is 199$

  • What are the API's and OS Supported by Oracle TimesTen

    1.) What are all the API supported by oracle TimesTen?
    is the below are correct and whether other than this is there any other API supports oracle TimesTen
    JDBC,
    ODBC,
    OLAP,
    ADO.net,
    C++...............
    2.) What are the Platform supports?
    is the below are correct and whether other than this is there any other OS supports oracle TimesTen
    Linux x86-32 and x86-64:
    Oracle Linux 4 and 5
    Red Hat Enterprise Linux 4 and 5
    SUSE Enterprise Server 10 and 11
    MontaVista Linux CGE 5.0 and 6.0
    Asianux 3.0
    Microsoft Windows x86-32 and x86-64:
    Windows XP, Windows Vista, Windows Server 2003, Windows Server 2003 Release 2, Windows Server 2008, Windows 7
    Solaris SPARC 64-bit:
    Oracle Solaris 10
    Solaris x86-64:
    Oracle Solaris 10
    IBM AIX 64-bit:
    AIX 6.1 and 7.1
    Solaris SPARC 32-bit (client only):
    Oracle Solaris 10
    IBM AIX 32-bit (client only):
    AIX 6.1 and 7.1
    3.) What is the latest Version in Oracle TimesTen?
    4.) Maximum number of rows in a table.     2 Power 28 = 268,435,256 for 32 Bit     / (2 power 31-1) = 2,147,483,647 for 64 Bit
    if the Row value exceeds more than the specified value what will happen ? whether we need to have multiple tables
    Say TableA reaches 268,435,256 values and if few more rows are added then the value can be kept in new table TableB and so on..... or how?
    Thanks

    Dear 933663,
    1. What are all the API supported by oracle TimesTen?
    JDBC
    ODBC
    ADO.net
    OCI
    PRO*C
    +
    PL/SQL
    SQL
    2. What are the Platform supports?
    TimesTen 11.2.2.2.0 supports - Windows (32-bit, 64-bit), Linux x86 (32-bit, 64-bit), Solaris Sparc (64-bit), Solaris x86 (64-bit), IBM AIX Power (64-bit) (http://www.oracle.com/technetwork/products/timesten/downloads/index.html)
    The detailed information I could find only in 11.2.1 documentation (http://docs.oracle.com/cd/E18283_01/timesten.112/e13063/install.htm):
    Microsoft Windows 2000, Windows XP, Windows Vista and Windows Server 2003 and 2008 for Intel IA-32 and EM64T and AMD64 CPUs.
    Asianux 2.0 and 3.0 for Intel IA-32 and EM64T and AMD64 CPUs.
    SuSE LINUX Enterprise Server 10 for Intel IA-32 and EM64T and AMD64 CPUs.
    SuSE LINUX Enterprise Server 10 for Itanium2 CPUs
    Solaris 9 and 10 for UltraSparc CPUs
    Solaris 10 for AMD64 CPUs
    Red Hat Enterprise Linux 4 and 5 for Intel Itanium2 CPUs.
    Red Hat Enterprise Linux 4 and 5 for Intel IA-32 and EM64T and AMD64 CPUs.
    Oracle Enterprise Linux 4 and 5 for Intel IA-32 and EM64T and AMD64 CPUs.
    MontaVista Linux Carrier Grade Edition Release 4.0 and 5.0 for Intel IA-32, EM64T and AMD64 CPUs.
    HP-UX 11i v2 and 11iv3 for PA-RISC
    HP-UX 11i v2 and 11iv3 for Itanium2
    AIX 5L 5.3 and 6.1 for POWER CPUs
    3.) What is the latest Version in Oracle TimesTen?
    11.2.2.2.0 (http://www.oracle.com/technetwork/products/timesten/downloads/index.html)
    4) Maximum number of rows in a table. 2 Power 28 = 268,435,256 for 32 Bit / (2 power 31-1) = 2,147,483,647 for 64 Bit
    Actually, I couldn't find any information about rows limits for TimesTen tables and I've never faced with this problem.
    Best regards,
    Gennady

  • What are the Premier, Extended and Sustaining Support Dates for Beehive?

    If you look at the Oracle Lifetime Support Policy for Oracle Fusion Middleware (found at http://www.oracle.com/us/support/lifetime-support/lifetime-support-software-342730.html), Beehive is not listed. What are the dates that Premier and Extended support end for the various versions of Beehive?

    Oracle Beehive has been added to the online Oracle Lifetime Support policy document
    http://www.oracle.com/us/support/library/lifetime-support-technology-069183.pdf

  • When I publish a SWF/HTML5 module with Captivate 8 and try to run it using IE9 - I get the following error "The content you are viewing is not supported in the current Document Mode" - anyone know why?

    When I publish a SWF/HTML5 module with Captivate 8 and try to run it using IE9 - I get the following error "The content you are viewing is not supported in the current Document Mode" - anyone know why?

    TLCMediaDesign wrote:
    I've seen a lot of threads about getting rid of these kind of messages. Those messages are there for a reason most of the time. If you have CSS animations or other HTML5 standards that cannot be rendered in IE9 they won't magically start working becuse you got rid of a message. I use IE9 since that is the minimum standard for the client. I have never seen that message publishing to HTML5 content.
    IMO, if your client has IE9 I think that you should develop with IE9 in mind not IE11.
    When you say "develop with IE9 in mind not IE11" do you mean use SWF instead of HTML5? I used the standard question types, and a converted PowerPoint presentation. I didn't add anything out of the ordinary.

  • Safari browser version you are running does not support community tool bar. what's that mean and where is it coming from or how do I get rid of it ?

    I keep getting the message "Safari browser version you are useing does not support community tool bar." Where is this coming from and how do I get rid of it ?

    That toolbar/ct plugin causes problems for all who install it!
    Close Safari, then locate and delete the following files and it should be gone:
    /Library/Application Support/Conduit
    /Library/InputManagers/CTLoader
    /Library/Receipts/ctloader.pkg
    /Library/Receipts/<Toolbar name>.pkg
    /Library/Application Support/SIMBL/Plugins/CT2285220.bundle
    /Users/<User name>/Library/Application Support/Conduit
    where / is the root library on your Hard Disk.
    If you are running Snow Leopard you should also look here:
    Library/launchAgents/com.conduit.loader.agent.plist
    Library/Application support/conduit plugins
    Note: Safari does not support any third-party toolbars except those supplied as an extension to Safari via the Extension Gallery.

  • My Google tool bars are gone and info. says 5.0 does not support...I want to return to 4.0

    I had a Google tool bar with Google Bookmarks, auto fill, spell check and several other "buttons" all are gone and information I located said that Firefox 5.0 does not support...I am not happy...I used these tool bars all the time. I want to return to Firefox 4.0

    I am very unhappy...will probably return to internet explorer...I used my google tool bar all the time...it was the most used and most important part of my computer.

  • IPhoto says themes are missing and it won't print. All the support says to reload the application but I didn't get disks with the iMac. What do I do now.

    iPhoto says themes are missing and it won't print. All the support says to reload the application but I didn't get disks with the iMac. What do I do now.

    This is the ipod touch forum.
    Try posting in the ipod nano forum.

  • I was using my bros account for icloud, he changed & forgot the pass now i want to sign out & put mine but i'm not able to do that and he couldnt recover bcz he did it long time ago and apple support are not sending a recovery email to his email?

    i was using my bros account for icloud, he changed & forgot the pass now i want to sign out & put mine but i'm not able to do that and he couldnt recover bcz he did it long time ago and apple support are not sending a recovery email to his email... what shall i do now to sign out?

    Tell him to contact the Apple account security team for his country and ask for assistance changing the password: http://support.apple.com/kb/HT5699.  If his country isn't listed, he can try contacting iTunes store support by filling out this form: https://www.apple.com/emea/support/itunes/contact.html.

  • Can't install windows support softwares?? it just said some files are corrupted and ask me to download a fresh copy, but i have tried many times and still failed!

    Please help!!!!

    i have a question about the update server!! apples server is a specific sours right!? form where you download the updates if there are any. and all apples when check for updates are using the server as a sours to download those updates. lets pretend its a road splited into 2 ways, the left sight gose to apples ubdate server, the right sight gose to sowehere else i dont know where, so is it somehow possible that in network settings the server option changed to another location,meaning when i'm checking for update or want to download, the internet is not connecting the apples server  like changed its way to onother sours which is not providing apples support, and now i can't connect to the apple update server. i know sounds rediculuse but any way as i'm not good in those things so asking to those who might know.
    thanks in advance

  • What kind of online backup tools does iCS have? And are other backup mechanisms supported?

    What kind of online backup tools does iCS have?
    And are other backup mechanisms supported?
    <P>
    With iCS2.x, the admin utilities provide `csbackup` command to backup
    individual calendar or the whole calendar database. Solstice/Legato
    backup functionality is also available. The advantage with the Legato
    backup is that the administrator can, in addition, perform backup per user.
    (Legato backup utilizes csbackup and csrestore for calendar backup/restore.)
    Please refer to the section on Backup and Restore Procedures in the
    iPlanet Calendar Server Administration Guide:
    http://developer.iplanet.com/docs/manuals/calendar/ics20/calag/calagadm.htm#1062608
    Although it is not yet documented in the 2.x Admin guide, <b>`csbackup -l`</b>
    is the command used for initiating Legato backup directory structure (refer to
    Step 1 under Backing Up Calendar Server Data).

    What kind of online backup tools does iCS have?
    And are other backup mechanisms supported?
    <P>
    With iCS2.x, the admin utilities provide `csbackup` command to backup
    individual calendar or the whole calendar database. Solstice/Legato
    backup functionality is also available. The advantage with the Legato
    backup is that the administrator can, in addition, perform backup per user.
    (Legato backup utilizes csbackup and csrestore for calendar backup/restore.)
    Please refer to the section on Backup and Restore Procedures in the
    iPlanet Calendar Server Administration Guide:
    http://developer.iplanet.com/docs/manuals/calendar/ics20/calag/calagadm.htm#1062608
    Although it is not yet documented in the 2.x Admin guide, <b>`csbackup -l`</b>
    is the command used for initiating Legato backup directory structure (refer to
    Step 1 under Backing Up Calendar Server Data).

Maybe you are looking for

  • How can i design a electronic circuit in lab view

    i am measuring void fraction (air bubble) in a air water pipe flow . i wish to know can i apply signaling condition by using any of labview controls. where can i find electronic items such as resistors capicators etc in Labview

  • Busy access number UK

    Hello, Yesterday I registered a phone to go number and the number access is busy. Should I wait a little bit to it to work? Thanks a lot. 

  • Browser for low-end laptop

    Hi, my girlfriends laptop is running arch linux (I installed it for her a year ago...). The problem is that it's not a high performance machine but rather low-end instead. It's an "Acer Extensa 5635Z" (Intel Pentium Dual Core T4200, Intel GMA, 2 gig

  • Correlated Subquery for joining summary table original data table

    I want to list a set of fields from an inner-query that correspond to calculated fields on an outer-query. A set of date fields on the outer-query signify a range to correlate records on the inner-query. Records on the inner-query have a single date

  • LINQ to SQL - UPDATE Foreign Key

    Hi, I'm doing a project with LINQ to SQL. I'm mapping the database in code. I have 2 tables: Cargo(CodCargo PK, Cargo)                         Utilizador(CodUtilizador PK, Utilizador, CodCargo FK.  Cargo:  1 - Client  2 - Provider  3 - Administrator