Showing posts with label reporting. Show all posts
Showing posts with label reporting. Show all posts

Thursday, March 29, 2012

distributed queries

Hi all,
Do you know that can we use 'distributed queries' in reporting services to
create rdl report or use linked server as datasource.
please advise if any direction, many thanks.
e.g.
SELECT s.sales_amount
FROM access_server...region AS r,
oracle_server..sales_owner.sale AS s,
sql_server.customer_db.dbo.customer AS c
where r.region_id=s.region_id
and s.customer_id=c.customer_id
and r.region_name='Southwest'
and c.customer_name='ABC Steel'Any legal queries can be used. To do something like this you need to switch
from graphical mode to non-graphical mode. There is a button to the right of
the ... that accomplishes this. Just hover your mouse over the buttons to
find the right one.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"frankie lo" <frankiecblo@.hotmail.com> wrote in message
news:uuPcIYvFIHA.536@.TK2MSFTNGP06.phx.gbl...
> Hi all,
> Do you know that can we use 'distributed queries' in reporting services to
> create rdl report or use linked server as datasource.
> please advise if any direction, many thanks.
> e.g.
> SELECT s.sales_amount
> FROM access_server...region AS r,
> oracle_server..sales_owner.sale AS s,
> sql_server.customer_db.dbo.customer AS c
> where r.region_id=s.region_id
> and s.customer_id=c.customer_id
> and r.region_name='Southwest'
> and c.customer_name='ABC Steel'
>|||Hi Bruce,
I am not sure I undeestand the step(s) to generate the report. do you know
any example or document from microsoft.
Any way, thanks a lot for your help.
"Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
news:OyxhCWwFIHA.4808@.TK2MSFTNGP05.phx.gbl...
> Any legal queries can be used. To do something like this you need to
> switch from graphical mode to non-graphical mode. There is a button to the
> right of the ... that accomplishes this. Just hover your mouse over the
> buttons to find the right one.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "frankie lo" <frankiecblo@.hotmail.com> wrote in message
> news:uuPcIYvFIHA.536@.TK2MSFTNGP06.phx.gbl...
>> Hi all,
>> Do you know that can we use 'distributed queries' in reporting services
>> to create rdl report or use linked server as datasource.
>> please advise if any direction, many thanks.
>> e.g.
>> SELECT s.sales_amount
>> FROM access_server...region AS r,
>> oracle_server..sales_owner.sale AS s,
>> sql_server.customer_db.dbo.customer AS c
>> where r.region_id=s.region_id
>> and s.customer_id=c.customer_id
>> and r.region_name='Southwest'
>> and c.customer_name='ABC Steel'
>>
>|||Your problem is that RS graphical editor does not support this sort of
thing.
What you need to do is two steps. First, you cannot use the Report Wizard.
You need to create an empty report. Right mouse click on Reports, Add -> New
Item. Select Report. You get a blank report.
Second, Click on the dataset tab. Add a new dataset (drop down
combobox),Switch to non-graphical mode. Put in your SQL code.
Go to the dataset tab in the report designer, then do as I mentioned.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"frankie lo" <frankiecblo@.hotmail.com> wrote in message
news:O1xpvIyFIHA.4584@.TK2MSFTNGP03.phx.gbl...
> Hi Bruce,
> I am not sure I undeestand the step(s) to generate the report. do you know
> any example or document from microsoft.
> Any way, thanks a lot for your help.
> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
> news:OyxhCWwFIHA.4808@.TK2MSFTNGP05.phx.gbl...
>> Any legal queries can be used. To do something like this you need to
>> switch from graphical mode to non-graphical mode. There is a button to
>> the right of the ... that accomplishes this. Just hover your mouse over
>> the buttons to find the right one.
>>
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>> "frankie lo" <frankiecblo@.hotmail.com> wrote in message
>> news:uuPcIYvFIHA.536@.TK2MSFTNGP06.phx.gbl...
>> Hi all,
>> Do you know that can we use 'distributed queries' in reporting services
>> to create rdl report or use linked server as datasource.
>> please advise if any direction, many thanks.
>> e.g.
>> SELECT s.sales_amount
>> FROM access_server...region AS r,
>> oracle_server..sales_owner.sale AS s,
>> sql_server.customer_db.dbo.customer AS c
>> where r.region_id=s.region_id
>> and s.customer_id=c.customer_id
>> and r.region_name='Southwest'
>> and c.customer_name='ABC Steel'
>>
>>
>|||Ho Bruce,
Thanks for your direction, i have tried it, it real works ;-)
"Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
news:eNLHfnyFIHA.4140@.TK2MSFTNGP03.phx.gbl...
> Your problem is that RS graphical editor does not support this sort of
> thing.
> What you need to do is two steps. First, you cannot use the Report Wizard.
> You need to create an empty report. Right mouse click on Reports, Add ->
> New Item. Select Report. You get a blank report.
> Second, Click on the dataset tab. Add a new dataset (drop down
> combobox),Switch to non-graphical mode. Put in your SQL code.
> Go to the dataset tab in the report designer, then do as I mentioned.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "frankie lo" <frankiecblo@.hotmail.com> wrote in message
> news:O1xpvIyFIHA.4584@.TK2MSFTNGP03.phx.gbl...
>> Hi Bruce,
>> I am not sure I undeestand the step(s) to generate the report. do you
>> know any example or document from microsoft.
>> Any way, thanks a lot for your help.
>> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
>> news:OyxhCWwFIHA.4808@.TK2MSFTNGP05.phx.gbl...
>> Any legal queries can be used. To do something like this you need to
>> switch from graphical mode to non-graphical mode. There is a button to
>> the right of the ... that accomplishes this. Just hover your mouse over
>> the buttons to find the right one.
>>
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>> "frankie lo" <frankiecblo@.hotmail.com> wrote in message
>> news:uuPcIYvFIHA.536@.TK2MSFTNGP06.phx.gbl...
>> Hi all,
>> Do you know that can we use 'distributed queries' in reporting services
>> to create rdl report or use linked server as datasource.
>> please advise if any direction, many thanks.
>> e.g.
>> SELECT s.sales_amount
>> FROM access_server...region AS r,
>> oracle_server..sales_owner.sale AS s,
>> sql_server.customer_db.dbo.customer AS c
>> where r.region_id=s.region_id
>> and s.customer_id=c.customer_id
>> and r.region_name='Southwest'
>> and c.customer_name='ABC Steel'
>>
>>
>>
>

distributed install - connection error

we have a sql server 2005 reporting services distributed installation

db server has: sqldb01\dev, sqldb01\tst, sqldb01\beta

web server is TestWeb01. This had dev, tst, beta installations of report server

all reports are working ok except on beta. Beta was setup just a couple days ago so it has not worked thus far.

all reports use a shared data source on beta(just like on dev and tst)

here is the error on beta for all the reports:

any idea? (SQLDB01_DEV is not the shared data source name. SQLDB01_DEV was used by the developer when creating the report. But this should not matter right? The report should ignore this and use the shared data source i assume?)

  • An error has occurred during report processing.

  • Cannot create a connection to data source 'SQLDB01_DEV'.

  • For more information about this error navigate to the report server on the local server machine, or enable remote errors

  • It is the problem. You need to go the report properties page after deployment to confirm that it's looking at the shared datasource.|||

    yes. after deployment from TST to BETA(using the rdl file), i went into each report and set it to use shared datasource i created there on BETA.

    so it should use the shared datasource. It does that ok on DEV & TST (well the reports run fine on DEV & TST anyway)

    so why is BETA giving that error? If it used the shared datasource then it should ignore the SQLDB01_DEV data source that the developer created when desiging the report...right?

    |||

    is this by any chance also the name of the source database?

    what is your shared data source on beta pointing to?

    have you tested this connection using another means? e.g. management studio.

    |||

    developer created datasource name is SQLDB01_DEV

    shared datasource name is resload.mms

    all looks ok from Report Manager and Management Studio

    except the reports gives that error.

    sql
  • Thursday, March 22, 2012

    Distinct Filter in SQL Reporting Services

    Hello All,

    I've got a stored proc that I can't change that creates a quite large
    dataset and takes in 5 parameters. I need to be able to have each of
    the parameters selectable from a drop down box so that as you go
    through the list of parameters you restrict the results. I have it
    able to load the parameters but I end up with this:

    Location-
    LONDON
    LONDON
    LONDON
    NEW YORK
    NEW YORK
    NEW YORK
    NEW YORK
    TORONTO
    TORONTO
    ...

    Any idea how i can filter the list of locations by distinct? from
    within SQL Reporting Services. I tried a temp tbl in query analyser
    and that works but SQL reporting services doesn't like it.Nevermind, It seemed to work the second time i tried to run the query
    in reporting services.

    BEGIN

    CREATE TABLE #temptbl2
    (
    EnddateVARCHAR(50),
    ProjectNumber VARCHAR(50),
    ProjectManager VARCHAR(50),
    resourceManager VARCHAR(50),
    CostCentreVARCHAR(50),
    WorkInProgressFLOAT
    )

    INSERT INTO #temptbl2
    EXECUTE jmpwipreportbasic '09/09/2009'

    SELECT DISTINCT costcentre FROM #temptbl2

    DROP TABLE #temptbl2

    END

    Maybe this will help someone else.

    Wednesday, March 21, 2012

    Disregard: SSIS as data source for reporting?

    I'm trying to develop a report using an SSIS DataReaderDestination as the reports data souce. When I attempt to create the report DataSet, SSIS is not an option for the Data Source parameter....

    Is there an OLE DB or .NET provider for SSIS that I need to install apart from installing reporting services?Had the wrong edition. Never let your architects download things for you :)|||

    Hello,
    I am experiencing the same problem you described. I have Visual Studio Team Suite installed with SQL Server 2005 Developer Edition. I would expect this setup should allow me to use any of the functionality available in Integration Services. What edition did you have to install to get the SSIS option to appear?

    Thanks for your help.

    Disregard: SSIS as data source for reporting?

    I'm trying to develop a report using an SSIS DataReaderDestination as the reports data souce. When I attempt to create the report DataSet, SSIS is not an option for the Data Source parameter....

    Is there an OLE DB or .NET provider for SSIS that I need to install apart from installing reporting services?Had the wrong edition. Never let your architects download things for you :)|||

    Hello,
    I am experiencing the same problem you described. I have Visual Studio Team Suite installed with SQL Server 2005 Developer Edition. I would expect this setup should allow me to use any of the functionality available in Integration Services. What edition did you have to install to get the SSIS option to appear?

    Thanks for your help.

    Displaying xml with xslt in RS

    Hi,

    I've got an xml and an xslt - I want to get that into reporting services. Right now I have a link to the xml file in a 'report', which will open it correctly and format with the xslt. I'd like it to display without going to an external link.

    I know how to use an xml datasource, but I need the xslt applied, since it has some nice formatting in it - so i don't think that will work.

    I'm trying to report on the results of a scripted ms baseline security analyzer of several servers - the style sheet lets you drill down and has links to the base reports.

    Thanks for your help.

    There is a way to apply xslt "automagically" in a report definition (check the Data Output tab of the Report Properties dialog) , although unfortunately you would probably have to rework your xslt a bit to use it. The reason is that the xml it is going to be applied to is the data XML of the report itself. You either need to define a report that will supply exactly the xml that you currently have as its data result, or you need to change the XSLT to fit the data xml you *will* get from some report.

    The key point heres are "from some report" and "data output of a report". You can't just take any xslt result and display it within a ReportViewer interface. Is that what you are trying to do?

    Note that it *is* possible to upload arbitrary files to Report Manager and then link to them, I think. But that's not the same thing as displaying those files within a reportviewer control interface.

    >L<

    |||

    "Note that it *is* possible to upload arbitrary files to Report Manager and then link to them, I think. But that's not the same thing as displaying those files within a reportviewer control interface."

    Yes, that sounds like it would be what I'm after - I really just need it there because all of our other reports are there, not because of any RS functionality. Now if I only knew the technical term for this to find it in the manual, I'd be set.

    "You either need to define a report that will supply exactly the xml that you currently have as its data result"

    Seems like this could work too - I'll have to look into it.

    Thanks for your help Lisa.

    |||

    >>Yes, that sounds like it would be what I'm after - I really just need it there because all of our other reports are there, not because of any RS functionality. Now if I only knew the technical term for this to find it in the manual, I'd be set.

    <rofl> Well I don't know the techical term but I can tell you that you upload the file using a button in the Report Manager that says... wait for it... Upload File. You give it a title, it becomes a browseable item in the Report manager interface (unless of course you mark it "hide in list view"), etc.

    You can do it programmatically as well, you might want to look at this http://www.sqldbatips.com/showarticle.asp?ID=62 or you can probably use the SOAP API for this as well.

    >L<

    displaying xml using reporting service web service

    I'm using VS2005 web developer. I can't display XML results when using the
    render method, although it renders fine.
    I'm using the SQL Server 2000 reporting services web service render method
    to get a byte array like this:
    result = rs.Render(reportPath, format, historyID, devInfo,
    parameters, _
    credentials, showHideToggle, encoding, mimeType,
    reportHistoryParameters, warnings, streamIDs)
    This is from the sample at
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RSPROG/htm/rsp_ref_soapapi_service_lz_6x0z.asp
    It works great if I assign HTML4.0 and EXCEL to the "format" variable.
    Then I put
    response.binarywrite(result)
    and it is just fine.
    When I try this with the XML format, it creates a file perfectly if I put
    Dim stream As FileStream = File.Create("report.xml", result.Length)
    but I don't know how to display the xml in a browser.
    Response.binarywrite(result) and Response.writefile("report.xml") gives me
    an error
    The XML page cannot be displayed.
    ...
    Cannot have a DOCTYPE declaration outside of a prolog
    I guess because the XML is written inside the html.
    I would appreciate any suggestions.
    Thanks
    BillCorrection - response.writefile(filename) works, but I don't want to have to
    create files on the server and clean them up all the time.
    Thanks
    Bill
    "bill" <belgie@.datamti.com> wrote in message
    news:ubuEOCnMGHA.2124@.TK2MSFTNGP14.phx.gbl...
    > I'm using VS2005 web developer. I can't display XML results when using
    > the render method, although it renders fine.
    > I'm using the SQL Server 2000 reporting services web service render method
    > to get a byte array like this:
    > result = rs.Render(reportPath, format, historyID, devInfo,
    > parameters, _
    > credentials, showHideToggle, encoding, mimeType,
    > reportHistoryParameters, warnings, streamIDs)
    > This is from the sample at
    > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RSPROG/htm/rsp_ref_soapapi_service_lz_6x0z.asp
    > It works great if I assign HTML4.0 and EXCEL to the "format" variable.
    > Then I put
    > response.binarywrite(result)
    > and it is just fine.
    > When I try this with the XML format, it creates a file perfectly if I put
    > Dim stream As FileStream = File.Create("report.xml", result.Length)
    > but I don't know how to display the xml in a browser.
    > Response.binarywrite(result) and Response.writefile("report.xml") gives
    > me an error
    > The XML page cannot be displayed.
    > ...
    > Cannot have a DOCTYPE declaration outside of a prolog
    > I guess because the XML is written inside the html.
    > I would appreciate any suggestions.
    > Thanks
    > Bill
    >

    Displaying XML Data

    There is a requirement that I need to display the XML data stored in
    database in one of the report. How can I display this data in Reporting
    Services with the color schema similar to IE (elements and attributes in
    different colors etc..)?
    Thanks,
    Live_Love_LaughThe displaying the XML data itself is not an issue. You can pass it to a
    custom function (preferebaly located in an external assembly) and apply a XSL
    transformation when the report is processed. What makes your task difficult
    is the color-coding. Unfortunately, version 1.0 doesn't support HTML markers,
    e.g. <b> for bold, <font> etc. To make the task even more difficult textboxes
    are rendered as table cells and don't have ids which makes it difficult to
    reference them by DHTML.
    One thing you can try is exporting the report as XML and associating an XSL
    stylesheet in the DataOutput properties which will render the report the way
    you want it.
    "Live_Love_Laugh" wrote:
    > There is a requirement that I need to display the XML data stored in
    > database in one of the report. How can I display this data in Reporting
    > Services with the color schema similar to IE (elements and attributes in
    > different colors etc..)?
    > Thanks,
    > Live_Love_Laugh
    >
    >|||I have the same requirement
    Did either of you succeed?
    If so can you tell me what you did or post an example?
    Thanks in advance
    "Teo Lachev" wrote:
    > The displaying the XML data itself is not an issue. etc
    > "Live_Love_Laugh" wrote:
    > > There is a requirement that I need to display the XML data stored in
    > > database in one of the report. How can I display this data in Reporting
    > > Services with the color schema similar to IE (elements and attributes in
    > > different colors etc..)?
    > >
    > > Thanks,
    > > Live_Love_Laughsql

    displaying vertical text in details section using sql reporting service

    Nico,
    U can change the "WritingMode" property of text box to set display
    vertically.
    I have another problem with the same, i want to display a text in the
    details section spanning multiple rows.
    below is example
    S_NO NAME VERTICAL_TEXT
    _______________________________
    1 ABC S
    2 CDE A
    3 FGH M
    4 IJK P
    L
    E
    Appreciate any help!!..
    VenkatCan anyone help on this?..
    venkat.oar@.gmail.com wrote:
    > Nico,
    > U can change the "WritingMode" property of text box to set display
    > vertically.
    > I have another problem with the same, i want to display a text in the
    > details section spanning multiple rows.
    > below is example
    > S_NO NAME VERTICAL_TEXT
    > _______________________________
    > 1 ABC S
    > 2 CDE A
    > 3 FGH M
    > 4 IJK P
    > L
    > E
    > Appreciate any help!!..
    > Venkat

    Monday, March 19, 2012

    Displaying Top N subtotal as well as grand total

    I am currently migrating Crystal Report XI reports over to the
    Reporting Services and came across a problem.
    The Crystal Report displays Top N records, subtotal of these Top N
    records, and the grand total of all the records. SQL stored procedure
    underneath returns all the records.
    >From what I have been reading in online groups and helps, these types
    of features are not directly supported in the Reporting Services. The
    workaround I have found so far involves returning two sets of results
    ("Top N" results and "All" results) and combining the two result
    sets.
    Since some query takes up significant amount of time, I would like to
    avoid calling the stored procedures twice if necessary. Does anyone
    know how I can avoid this and work with just one result set?
    Thanks in advance.
    ShoheiBring all the records and use filter "Top N" to filter for Top N records only.
    Amarnath [MVP]
    "Shohei.Yamauchi@.gmail.com" wrote:
    > I am currently migrating Crystal Report XI reports over to the
    > Reporting Services and came across a problem.
    > The Crystal Report displays Top N records, subtotal of these Top N
    > records, and the grand total of all the records. SQL stored procedure
    > underneath returns all the records.
    > >From what I have been reading in online groups and helps, these types
    > of features are not directly supported in the Reporting Services. The
    > workaround I have found so far involves returning two sets of results
    > ("Top N" results and "All" results) and combining the two result
    > sets.
    > Since some query takes up significant amount of time, I would like to
    > avoid calling the stored procedures twice if necessary. Does anyone
    > know how I can avoid this and work with just one result set?
    > Thanks in advance.
    > Shohei
    >|||If you are using SQL Server 2005, you can use ROW_NUMBER () in a Data
    set so that you can get top N

    Displaying Result

    hi there,

    is there any way in populating data like the example below using Reporting Services?

    SQL database table result:

    Category Name

    Group 1 John

    Group1 May

    Group2 Mary

    Display in Report

    Group 1 Group2

    John, May Mary

    regards

    angela

    Hi Angela

    If you want the array of names to be shown next to
    each other in instead of having to itterate for each item
    in the group you could do the following.

    Create a table report with 'group' as the group
    and 'Name' as detail

    In the expression for name you can the use the join function:

    =JOIN(Fields!Name, " ")

    This will append all the fields in the aggregation,
    if you group by the 'group' field it should effectively
    give only the names for that group, in the following formatt:

    Group Name
    -|
    Group1 | Angela Johan Beckham |
    --|-|
    Group2 | Andre Jaco Peter |
    --|-|

    Hope this helps

    Gerhard Davids

    |||

    Hi Gerhard Davids,

    the solution u provide returns an error like this:

    Overload resolution failed because no Public 'Join' can be called with these arguments:

    'Public Shared Function Join(sourceArray As String(),[Delimiter As String = ] as string......

    Regards

    angela

    |||

    HiAngela

    I'm sorry, I made a mistake: the join function is for
    joining selected parameter arrays in a multi-selected
    parameter. Your problem seems far more complex.

    I am trying to find a solution for you, and I will let
    you know as soon as I find one.

    Sorry for not being more helpfull.

    Gerhard Davids

    |||

    Hi Gerhard Davids,

    Thanks 4 ur help, my problem has been solved..but was done in a very tedious way by writing the stored procedure.

    regards

    angela

    Displaying reports

    Hi All
    I was wondering if there is any way of viewing reports created in reporting
    services over the web without having to use Sharepoint. I do not want the
    usual reports server view. I would like as close to the Sharepoint Report
    Viewer web part as possible.
    Many ThanksHi,
    You need to write your own web part, then will solve your prob, Just check
    this site as well. http://blogs.sqlxml.org/bryantlikes/default.aspx for
    sharepoint reporting viewer web parts.
    Amarnath
    "mackaycc" wrote:
    > Hi All
    > I was wondering if there is any way of viewing reports created in reporting
    > services over the web without having to use Sharepoint. I do not want the
    > usual reports server view. I would like as close to the Sharepoint Report
    > Viewer web part as possible.
    > Many Thanks|||Quote:
    "without having to use Sharepoint"
    ie. I want to be able to display it in a browser window (Without using
    Sharepoint or any web parts which run in Sharepoint)
    "Amarnath" wrote:
    > Hi,
    > You need to write your own web part, then will solve your prob, Just check
    > this site as well. http://blogs.sqlxml.org/bryantlikes/default.aspx for
    > sharepoint reporting viewer web parts.
    > Amarnath
    >
    > "mackaycc" wrote:
    > > Hi All
    > >
    > > I was wondering if there is any way of viewing reports created in reporting
    > > services over the web without having to use Sharepoint. I do not want the
    > > usual reports server view. I would like as close to the Sharepoint Report
    > > Viewer web part as possible.
    > >
    > > Many Thanks

    Sunday, March 11, 2012

    Displaying Price in Microsoft reporting services

    hai

    I am using Microsoft reporting services.
    I am using XSD as report datasource to bind data to the report
    In the report, i want to display Amount in french belgiun format in a column eg. 123.456,00 €
    While passing the value through datasource, i cant able to pass the value as decimal.
    I am only passing it as string. While exporting to excel ,i cant able to make calculations on this field
    because it is exported as string.
    Is there is any other way to dispaly the value as 123.456,00 € in the report and exported to excel as numeric
    to perform calculations
    Plz give your suggestions

    Regards,

    Sakthi

    hai

    I have solved this problem by using Laguage property for the report.

    You can change the report language to french -belgium

    And now you can able to display decimal value in french format

    Regards

    Sakthi

    Displaying Months

    I've got a report that needs to allow the user to see information for all 12 months of a year in a table in reporting services 2005. I was wondering if it was possible to dynamically display each month instead of having to make 12 table entries and manually typing in the month.

    any ideas or places to start looking would be helpfull

    Thanks

    If you're just trying to generate the month name based on the row, try this:

    DateTime.MinValue.AddMonths(RowNumber(Nothing)-1).ToString("MMMM")

    |||that didn't work when I ran it i got just january (i want all 12 months in their own fields) also when I looked at the exception i got an unreconized identifier on AddMonths|||I figured out how to fix this i just did a group by on the data using the DATEPART function in sql.

    Friday, March 9, 2012

    displaying lines in between data in the details section

    Hello,
    I am in the process of moving all my sql server reports to reporting
    services.
    First of all, I am creating a table from the toolbar menu and then
    moving the data fields to the reports. I need to insert a line in
    between rows of data in the detils section. It should look as follows:
    table Header
    Details 1 Jaideep 123 anydrive
    ---
    2 Pradeep 123 wynndrive
    ---
    table footer
    Thanks
    JaideepSelect the row in the table and in the properties dialog set the
    BorderStyle.Bottom to dashed
    Steve MunLeeuw
    "jai" <dbasybase@.gmail.com> wrote in message
    news:1161014400.693162.231240@.i42g2000cwa.googlegroups.com...
    > Hello,
    > I am in the process of moving all my sql server reports to reporting
    > services.
    > First of all, I am creating a table from the toolbar menu and then
    > moving the data fields to the reports. I need to insert a line in
    > between rows of data in the detils section. It should look as follows:
    > table Header
    > Details 1 Jaideep 123 anydrive
    > ---
    > 2 Pradeep 123 wynndrive
    > ---
    >
    > table footer
    > Thanks
    > Jaideep
    >

    Displaying HTML or other Rich Text Format content in Reporting Ser

    For a report I am creating, I need to display rich text format content, that
    will be saved in the database, on a reporting services report. This data
    will include bolds, bullets, italics, indents, etc.
    Is there a way to show this content formatted correctly in Reporting
    Services? We were planning on storing the data as HTML in the database but
    reporting services is displaying the actual HTML code and not the content.
    Does anyone have any ideas? Any help is greatly appreciated! ThanksSSRS only prints plain text. You can't display HTML or RTF.
    "giggleraz" <giggleraz@.discussions.microsoft.com> wrote in message
    news:B5F25DF8-285F-4052-A159-74E4863A9829@.microsoft.com...
    > For a report I am creating, I need to display rich text format content,
    that
    > will be saved in the database, on a reporting services report. This data
    > will include bolds, bullets, italics, indents, etc.
    > Is there a way to show this content formatted correctly in Reporting
    > Services? We were planning on storing the data as HTML in the database
    but
    > reporting services is displaying the actual HTML code and not the content.
    > Does anyone have any ideas? Any help is greatly appreciated! Thanks|||Does anyone know if this will be possible in SQL 2005 RS? Surely this is a
    basic requirement in a reporting tool
    "Brian Bischof" wrote:
    > SSRS only prints plain text. You can't display HTML or RTF.
    >
    > "giggleraz" <giggleraz@.discussions.microsoft.com> wrote in message
    > news:B5F25DF8-285F-4052-A159-74E4863A9829@.microsoft.com...
    > > For a report I am creating, I need to display rich text format content,
    > that
    > > will be saved in the database, on a reporting services report. This data
    > > will include bolds, bullets, italics, indents, etc.
    > > Is there a way to show this content formatted correctly in Reporting
    > > Services? We were planning on storing the data as HTML in the database
    > but
    > > reporting services is displaying the actual HTML code and not the content.
    > > Does anyone have any ideas? Any help is greatly appreciated! Thanks
    >
    >|||Not sure if this helps but what I had to do to get bullets was to start the
    old Windows character map...not sure if it still comes with XP but if you
    have an older version of windows such as 95 or 98 or 2000 you can start
    character map by "Start" RUN and typing charmap.exe
    Go to the Time New Roman font, scroll down about half way and you'll find a
    BULLET (code 2022), you can copy it then paste it into a Textbox object and
    it will display fine.
    "IWantItalics" wrote:
    > Does anyone know if this will be possible in SQL 2005 RS? Surely this is a
    > basic requirement in a reporting tool
    > "Brian Bischof" wrote:
    > > SSRS only prints plain text. You can't display HTML or RTF.
    > >
    > >
    > > "giggleraz" <giggleraz@.discussions.microsoft.com> wrote in message
    > > news:B5F25DF8-285F-4052-A159-74E4863A9829@.microsoft.com...
    > > > For a report I am creating, I need to display rich text format content,
    > > that
    > > > will be saved in the database, on a reporting services report. This data
    > > > will include bolds, bullets, italics, indents, etc.
    > > > Is there a way to show this content formatted correctly in Reporting
    > > > Services? We were planning on storing the data as HTML in the database
    > > but
    > > > reporting services is displaying the actual HTML code and not the content.
    > > > Does anyone have any ideas? Any help is greatly appreciated! Thanks
    > >
    > >
    > >

    Displaying Encoded Characters

    some special characters are saved in an encoded form. However reporting
    services does not convert it back to the regular form when it retreives it
    from the database, instead it would output get wierd characters.the code for keystrokes ALT 250 and others are whats being outputted not the
    correct symbol.
    "Marvin" wrote:
    > some special characters are saved in an encoded form. However reporting
    > services does not convert it back to the regular form when it retreives it
    > from the database, instead it would output get wierd characters.

    Wednesday, March 7, 2012

    Displaying Aggregate Values in Header on every page

    Hi all.
    Product: SQL Server 2000 Reporting Services Service Pack
    I am trying to display a calculated field in the Page Header for every page.
    I have tried the suggestions written, but the textbox only appears on the
    Page Header on the last page of the report.
    For example, textbox29 in the body of my report is:
    =First(Fields!Next_2_Years.Value, "AnalysisCngEECSalary")
    In the Page Header, I just display the textbox:
    =ReportItems!textbox29.value
    The result only appears on the last page of the report. How can this result
    appear on every page of the report? I tried using RepeatWith, but that did
    nothing. Please help. Thanks.
    --
    -RB
    :)Can someone please respond to this question? I appreciate it. Thanks.
    --
    -RB
    :)
    "capricorn" wrote:
    > Hi all.
    > Product: SQL Server 2000 Reporting Services Service Pack
    > I am trying to display a calculated field in the Page Header for every page.
    > I have tried the suggestions written, but the textbox only appears on the
    > Page Header on the last page of the report.
    > For example, textbox29 in the body of my report is:
    > =First(Fields!Next_2_Years.Value, "AnalysisCngEECSalary")
    > In the Page Header, I just display the textbox:
    > =ReportItems!textbox29.value
    > The result only appears on the last page of the report. How can this result
    > appear on every page of the report? I tried using RepeatWith, but that did
    > nothing. Please help. Thanks.
    > --
    > -RB
    > :)|||It sounds like you have a data region (matrix, table, list) above textbox29
    in the report layout that will grow to multiple pages at runtime. You could
    set the RepeatWith value of textbox29 to the name of that particular data
    region that expands over many pages - also try putting textbox29 right next
    to that data region. The value should then repeat on all these pages and
    will be available in the page header/footer also. BTW: you could set the
    textbox29 Visibility to be always hidden - the value will still show up in
    the page header/footer, but it will be hidden in the report body.
    -- Robert
    This posting is provided "AS IS" with no warranties, and confers no rights.
    "capricorn" <capricorn@.discussions.microsoft.com> wrote in message
    news:7A28CB6A-4E54-4A42-8C35-9D2894E11F3C@.microsoft.com...
    > Can someone please respond to this question? I appreciate it. Thanks.
    > --
    > -RB
    > :)
    >
    > "capricorn" wrote:
    >> Hi all.
    >> Product: SQL Server 2000 Reporting Services Service Pack
    >> I am trying to display a calculated field in the Page Header for every
    >> page.
    >> I have tried the suggestions written, but the textbox only appears on the
    >> Page Header on the last page of the report.
    >> For example, textbox29 in the body of my report is:
    >> =First(Fields!Next_2_Years.Value, "AnalysisCngEECSalary")
    >> In the Page Header, I just display the textbox:
    >> =ReportItems!textbox29.value
    >> The result only appears on the last page of the report. How can this
    >> result
    >> appear on every page of the report? I tried using RepeatWith, but that
    >> did
    >> nothing. Please help. Thanks.
    >> --
    >> -RB
    >> :)|||Robert,
    I tried putting textbox29 next to table1 with the repeatwith option pointing
    to table1 and this time the value of textbox29 only appears on this first
    page. I tried putting textbox29 before table1 and the value still only
    appears on the first page. The textbox value is not repeating with the table
    that is spanning multiple pages.
    --
    -RB
    :)
    "Robert Bruckner [MSFT]" wrote:
    > It sounds like you have a data region (matrix, table, list) above textbox29
    > in the report layout that will grow to multiple pages at runtime. You could
    > set the RepeatWith value of textbox29 to the name of that particular data
    > region that expands over many pages - also try putting textbox29 right next
    > to that data region. The value should then repeat on all these pages and
    > will be available in the page header/footer also. BTW: you could set the
    > textbox29 Visibility to be always hidden - the value will still show up in
    > the page header/footer, but it will be hidden in the report body.
    > -- Robert
    > This posting is provided "AS IS" with no warranties, and confers no rights.
    >
    > "capricorn" <capricorn@.discussions.microsoft.com> wrote in message
    > news:7A28CB6A-4E54-4A42-8C35-9D2894E11F3C@.microsoft.com...
    > > Can someone please respond to this question? I appreciate it. Thanks.
    > > --
    > > -RB
    > > :)
    > >
    > >
    > > "capricorn" wrote:
    > >
    > >> Hi all.
    > >> Product: SQL Server 2000 Reporting Services Service Pack
    > >> I am trying to display a calculated field in the Page Header for every
    > >> page.
    > >> I have tried the suggestions written, but the textbox only appears on the
    > >> Page Header on the last page of the report.
    > >>
    > >> For example, textbox29 in the body of my report is:
    > >> =First(Fields!Next_2_Years.Value, "AnalysisCngEECSalary")
    > >>
    > >> In the Page Header, I just display the textbox:
    > >> =ReportItems!textbox29.value
    > >>
    > >> The result only appears on the last page of the report. How can this
    > >> result
    > >> appear on every page of the report? I tried using RepeatWith, but that
    > >> did
    > >> nothing. Please help. Thanks.
    > >> --
    > >> -RB
    > >> :)
    >
    >|||Which output format are you using? Note: RepeatWith for duplicating items in
    the report body is only supported for physical page oriented renderers (such
    as PDF), but at this point not for interactive renderers such as HTML.
    I assume the textbox is sitting parallel to the table (not above and not
    below). The correct value of that textbox should still be available in the
    page header/footer.
    -- Robert
    This posting is provided "AS IS" with no warranties, and confers no rights.
    "capricorn" <capricorn@.discussions.microsoft.com> wrote in message
    news:1750AF6B-7CBE-4F21-9E98-26A60B93FF03@.microsoft.com...
    > Robert,
    > I tried putting textbox29 next to table1 with the repeatwith option
    > pointing
    > to table1 and this time the value of textbox29 only appears on this first
    > page. I tried putting textbox29 before table1 and the value still only
    > appears on the first page. The textbox value is not repeating with the
    > table
    > that is spanning multiple pages.
    > --
    > -RB
    > :)
    >
    > "Robert Bruckner [MSFT]" wrote:
    >> It sounds like you have a data region (matrix, table, list) above
    >> textbox29
    >> in the report layout that will grow to multiple pages at runtime. You
    >> could
    >> set the RepeatWith value of textbox29 to the name of that particular data
    >> region that expands over many pages - also try putting textbox29 right
    >> next
    >> to that data region. The value should then repeat on all these pages and
    >> will be available in the page header/footer also. BTW: you could set the
    >> textbox29 Visibility to be always hidden - the value will still show up
    >> in
    >> the page header/footer, but it will be hidden in the report body.
    >> -- Robert
    >> This posting is provided "AS IS" with no warranties, and confers no
    >> rights.
    >>
    >> "capricorn" <capricorn@.discussions.microsoft.com> wrote in message
    >> news:7A28CB6A-4E54-4A42-8C35-9D2894E11F3C@.microsoft.com...
    >> > Can someone please respond to this question? I appreciate it. Thanks.
    >> > --
    >> > -RB
    >> > :)
    >> >
    >> >
    >> > "capricorn" wrote:
    >> >
    >> >> Hi all.
    >> >> Product: SQL Server 2000 Reporting Services Service Pack
    >> >> I am trying to display a calculated field in the Page Header for every
    >> >> page.
    >> >> I have tried the suggestions written, but the textbox only appears on
    >> >> the
    >> >> Page Header on the last page of the report.
    >> >>
    >> >> For example, textbox29 in the body of my report is:
    >> >> =First(Fields!Next_2_Years.Value, "AnalysisCngEECSalary")
    >> >>
    >> >> In the Page Header, I just display the textbox:
    >> >> =ReportItems!textbox29.value
    >> >>
    >> >> The result only appears on the last page of the report. How can this
    >> >> result
    >> >> appear on every page of the report? I tried using RepeatWith, but that
    >> >> did
    >> >> nothing. Please help. Thanks.
    >> >> --
    >> >> -RB
    >> >> :)
    >>|||Robert,
    I am looking at the Preview page within the Designer. As you suggested, I
    put the textbox next to the table and the textbox value is available on the
    Page Header of the first page. The textbox value does not repeat on
    subsequent page headers.
    --
    -RB
    :)
    "Robert Bruckner [MSFT]" wrote:
    > Which output format are you using? Note: RepeatWith for duplicating items in
    > the report body is only supported for physical page oriented renderers (such
    > as PDF), but at this point not for interactive renderers such as HTML.
    > I assume the textbox is sitting parallel to the table (not above and not
    > below). The correct value of that textbox should still be available in the
    > page header/footer.
    > -- Robert
    > This posting is provided "AS IS" with no warranties, and confers no rights.
    > "capricorn" <capricorn@.discussions.microsoft.com> wrote in message
    > news:1750AF6B-7CBE-4F21-9E98-26A60B93FF03@.microsoft.com...
    > > Robert,
    > > I tried putting textbox29 next to table1 with the repeatwith option
    > > pointing
    > > to table1 and this time the value of textbox29 only appears on this first
    > > page. I tried putting textbox29 before table1 and the value still only
    > > appears on the first page. The textbox value is not repeating with the
    > > table
    > > that is spanning multiple pages.
    > > --
    > > -RB
    > > :)
    > >
    > >
    > > "Robert Bruckner [MSFT]" wrote:
    > >
    > >> It sounds like you have a data region (matrix, table, list) above
    > >> textbox29
    > >> in the report layout that will grow to multiple pages at runtime. You
    > >> could
    > >> set the RepeatWith value of textbox29 to the name of that particular data
    > >> region that expands over many pages - also try putting textbox29 right
    > >> next
    > >> to that data region. The value should then repeat on all these pages and
    > >> will be available in the page header/footer also. BTW: you could set the
    > >> textbox29 Visibility to be always hidden - the value will still show up
    > >> in
    > >> the page header/footer, but it will be hidden in the report body.
    > >>
    > >> -- Robert
    > >> This posting is provided "AS IS" with no warranties, and confers no
    > >> rights.
    > >>
    > >>
    > >> "capricorn" <capricorn@.discussions.microsoft.com> wrote in message
    > >> news:7A28CB6A-4E54-4A42-8C35-9D2894E11F3C@.microsoft.com...
    > >> > Can someone please respond to this question? I appreciate it. Thanks.
    > >> > --
    > >> > -RB
    > >> > :)
    > >> >
    > >> >
    > >> > "capricorn" wrote:
    > >> >
    > >> >> Hi all.
    > >> >> Product: SQL Server 2000 Reporting Services Service Pack
    > >> >> I am trying to display a calculated field in the Page Header for every
    > >> >> page.
    > >> >> I have tried the suggestions written, but the textbox only appears on
    > >> >> the
    > >> >> Page Header on the last page of the report.
    > >> >>
    > >> >> For example, textbox29 in the body of my report is:
    > >> >> =First(Fields!Next_2_Years.Value, "AnalysisCngEECSalary")
    > >> >>
    > >> >> In the Page Header, I just display the textbox:
    > >> >> =ReportItems!textbox29.value
    > >> >>
    > >> >> The result only appears on the last page of the report. How can this
    > >> >> result
    > >> >> appear on every page of the report? I tried using RepeatWith, but that
    > >> >> did
    > >> >> nothing. Please help. Thanks.
    > >> >> --
    > >> >> -RB
    > >> >> :)
    > >>
    > >>
    > >>
    >
    >

    Displaying ADO MDX query results in reports

    I'm working on an application to display sales data using sql server
    2000 reporting services.
    The data is in an MS Analysis Services cube, so I'm using MDX queries
    in the data set.
    The queries all have a similar format of the form:
    SELECT
    {[Measures].Members} ON COLUMNS,
    { MyDimension.members} ON ROWS
    FROM MyCube
    where the items in the COLUMNS clause are allways the same and
    MyDimension might be SalesBranch, ProductCategory, etc.
    When Reporting services works out the fields for the returned data set
    it appears to be flattening out the MyDimension structure and using the
    dimension level names for field names.
    eg
    <Fields>
    <Field Name="Manufacturer">
    <DataField>[Manufacturer_Model].[Manu].[MEMBER_CAPTION]</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="Measures_Oe_Id">
    <DataField>[Measures].[Oe Id]</DataField>
    <rd:TypeName>System.Object</rd:TypeName>
    </Field>
    <Field Name="Measures_Oe_Realval_A">
    <DataField>[Measures].[Oe Realval A]</DataField>
    <rd:TypeName>System.Object</rd:TypeName>
    </Field>
    </Fields>
    In the report layout I can select these fields and display them as
    expected.
    However the drawback is that since dimension level names are encoded
    into report field names I have to have a separate report for each
    dimension I want to put on the ROWS. ie one .RDL file for SalesBranch,
    one for ProductCategory etc.
    If this was SQL it would not be a problem because in the SQL SELECT
    statement the column names could be fixed using "SELECT colname AS
    othercolname ", but, being new to MDX, I can't find how to do this.
    Does anyone know how to achieve this in MDX / ADO MD ? ie how to give
    an MDX column an alias
    Thanks
    SteveHi Steve. I'm not quite clear on what you're trying to do. If, for
    example, you had StateCode, CountryCode on your rows, you'd want them both
    to be in the same column? Can you be more specific? From your
    explanation, I can't think of a business reason why I'd want to do this.
    -T
    "steve caa" <steve_caa@.hotmail.co.uk> wrote in message
    news:1147778689.038349.64180@.j33g2000cwa.googlegroups.com...
    > I'm working on an application to display sales data using sql server
    > 2000 reporting services.
    > The data is in an MS Analysis Services cube, so I'm using MDX queries
    > in the data set.
    > The queries all have a similar format of the form:
    > SELECT
    > {[Measures].Members} ON COLUMNS,
    > { MyDimension.members} ON ROWS
    > FROM MyCube
    > where the items in the COLUMNS clause are allways the same and
    > MyDimension might be SalesBranch, ProductCategory, etc.
    > When Reporting services works out the fields for the returned data set
    > it appears to be flattening out the MyDimension structure and using the
    > dimension level names for field names.
    > eg
    > <Fields>
    > <Field Name="Manufacturer">
    > <DataField>[Manufacturer_Model].[Manu].[MEMBER_CAPTION]</DataField>
    > <rd:TypeName>System.String</rd:TypeName>
    > </Field>
    > <Field Name="Measures_Oe_Id">
    > <DataField>[Measures].[Oe Id]</DataField>
    > <rd:TypeName>System.Object</rd:TypeName>
    > </Field>
    > <Field Name="Measures_Oe_Realval_A">
    > <DataField>[Measures].[Oe Realval A]</DataField>
    > <rd:TypeName>System.Object</rd:TypeName>
    > </Field>
    > </Fields>
    > In the report layout I can select these fields and display them as
    > expected.
    > However the drawback is that since dimension level names are encoded
    > into report field names I have to have a separate report for each
    > dimension I want to put on the ROWS. ie one .RDL file for SalesBranch,
    > one for ProductCategory etc.
    > If this was SQL it would not be a problem because in the SQL SELECT
    > statement the column names could be fixed using "SELECT colname AS
    > othercolname ", but, being new to MDX, I can't find how to do this.
    > Does anyone know how to achieve this in MDX / ADO MD ? ie how to give
    > an MDX column an alias
    > Thanks
    > Steve
    >|||Hi Tim
    Thanks for the reply.
    I'm really trying to be lazy and reuse the same RDL for a number of
    different reports.
    I'm generating the MDX query from parameters in a form that contains a
    report viewer. The items selected to appear along columns will always
    be the same but the dimension that appears on the rows will vary
    depending on whether the user wants to see sales by branch or by
    product. The depth of the dimension on the rows will allways be same ie
    I'm only showing branch name, not branch name and region.
    If the user selects performance by sales branch the MDX looks like
    SELECT
    {[Measures].Members} ON COLUMNS,
    { [Branch].members} ON ROWS
    FROM MyCube
    and the report displays the branch name in the first column and the
    measures along the other columns
    similarly if the user selects performance by product the MDX looks like
    SELECT
    {[Measures].Members} ON COLUMNS,
    { [Product].members} ON ROWS
    FROM MyCube
    and the report displays the product name in the leftmost column and the
    measures along the other columns
    Now, the reports are identical apart from the first column, so I
    thought if there was a way to make the columns have defined names I
    could reuse the same RDL for any number of reports.
    In the reporting services designer, on the data tab, executing a query
    fills the data grid and displays field names in the first row.
    The field names appear to be based on the column or row names in the
    MDX query eg when I select the performance by branch report, the column
    in the data grid that displays the branch name is called
    "[Branch].[Branch ID].[MEMBER CAPTION]", when I select the performance
    by product report, the column in the data grid that displays the
    product name is called "[Product].[Product ID].[MEMBER CAPTION]" .
    In the designers layout tab these field names are linked to the cells
    they are to be displayed in, but since the field names are different
    for the different MDX queries I'm generating I need to have a different
    RDL file for each query.
    In SQL I'd be able to alias the columns so they had the same name eg
    SELECT SalesBranch as FirstColumn, MeasureA, MeasureB From Sales
    and
    SELECT ProductName as FirstColumn, MeasureA, MeasureB From Sales.
    So my question is :
    is there a way for MDX to do what the SQL statements above are doing?
    ie make the recordsets returned by ADO allways have predefined field
    names.
    Thanks
    Steve|||Oh! Well in that case, create a custom set and use it in a dynamic query...
    Build it first in the query builder to get the columns, then change the text
    to this:
    = "WITH SET [Branch] AS
    '" & Parameters!TheBranchToShow.Value & ".ALLMEMBERS'
    SELECT {[Measures].Members} ON COLUMNS,
    { [Branch] } ON ROWS
    FROM MyCube"
    HTH
    "steve caa" <steve_caa@.hotmail.co.uk> wrote in message
    news:1147871527.003112.157400@.38g2000cwa.googlegroups.com...
    > Hi Tim
    > Thanks for the reply.
    > I'm really trying to be lazy and reuse the same RDL for a number of
    > different reports.
    > I'm generating the MDX query from parameters in a form that contains a
    > report viewer. The items selected to appear along columns will always
    > be the same but the dimension that appears on the rows will vary
    > depending on whether the user wants to see sales by branch or by
    > product. The depth of the dimension on the rows will allways be same ie
    > I'm only showing branch name, not branch name and region.
    > If the user selects performance by sales branch the MDX looks like
    > SELECT
    > {[Measures].Members} ON COLUMNS,
    > { [Branch].members} ON ROWS
    > FROM MyCube
    > and the report displays the branch name in the first column and the
    > measures along the other columns
    > similarly if the user selects performance by product the MDX looks like
    > SELECT
    > {[Measures].Members} ON COLUMNS,
    > { [Product].members} ON ROWS
    > FROM MyCube
    > and the report displays the product name in the leftmost column and the
    > measures along the other columns
    > Now, the reports are identical apart from the first column, so I
    > thought if there was a way to make the columns have defined names I
    > could reuse the same RDL for any number of reports.
    > In the reporting services designer, on the data tab, executing a query
    > fills the data grid and displays field names in the first row.
    > The field names appear to be based on the column or row names in the
    > MDX query eg when I select the performance by branch report, the column
    > in the data grid that displays the branch name is called
    > "[Branch].[Branch ID].[MEMBER CAPTION]", when I select the performance
    > by product report, the column in the data grid that displays the
    > product name is called "[Product].[Product ID].[MEMBER CAPTION]" .
    > In the designers layout tab these field names are linked to the cells
    > they are to be displayed in, but since the field names are different
    > for the different MDX queries I'm generating I need to have a different
    > RDL file for each query.
    >
    > In SQL I'd be able to alias the columns so they had the same name eg
    > SELECT SalesBranch as FirstColumn, MeasureA, MeasureB From Sales
    > and
    > SELECT ProductName as FirstColumn, MeasureA, MeasureB From Sales.
    > So my question is :
    > is there a way for MDX to do what the SQL statements above are doing?
    > ie make the recordsets returned by ADO allways have predefined field
    > names.
    > Thanks
    > Steve
    >|||Good idea.
    This seems to work in the MDX Sample query tool, but in Reporting
    Services designer it still mangles the structure of the underlying
    dimension into the column headings, not the MDX SET name. I tried a
    simple vb.NET app and it does the same so it's an ADO MDX issue, not
    Reporting Services
    Looks like I'll have to do it the long way.
    Thanks
    Steve|||The trick is to return the dimension names as measures, and then use the
    measures in your report instead of the dimension names.
    You start out with a usual query, and add Currentmember.Name,
    currentmember.Level.Ordinal and Currentmember.UniqueName as measures.
    with member [Measures].[MyMeasure] as '[Store].currentmember.name' member
    [Measures].[MyMeasure2] as '[Store].currentmember.Level.Ordinal' member
    [Measures].[MyMeasure3] as '[Store].currentmember.UniqueName'
    Then add x number of columns, for measures that you want to reuse.
    member [Measures].[MyMeasure4] as '[Measures].[Unit Sales]' member
    [Measures].[MyMeasure5] as '[Measures].[Store Cost]' member
    [Measures].[MyMeasure6] as '[Measures].[Store Sales]'
    Then select all the measures (both the dimension name ones, and the ones
    based on the old measures)
    I added a filter to mine, you don't need to do that.
    The resulting MDX query looks like this:
    with member [Measures].[MyMeasure] as '[Store].currentmember.name' member
    [Measures].[MyMeasure2] as '[Store].currentmember.Level.Ordinal' member
    [Measures].[MyMeasure3] as '[Store].currentmember.UniqueName' member
    [Measures].[MyMeasure4] as '[Measures].[Unit Sales]' member
    [Measures].[MyMeasure5] as '[Measures].[Store Cost]' member
    [Measures].[MyMeasure6] as '[Measures].[Store Sales]' select
    {[Measures].[MyMeasure], [Measures].[MyMeasure2], [Measures].[MyMeasure3],
    [Measures].[MyMeasure4], [Measures].[MyMeasure5], [Measures].[MyMeasure6]}
    on columns, {filter([Store].members, [Measures].[Store Cost]> 25000) } on
    rows from [Sales]
    After you've generated all the fields, change it as usual to a parameterized
    query:
    ="with member [Measures].[MyMeasure] as '[" & Parameters!Dimension.Value &
    "].currentmember.name' member [Measures].[MyMeasure2] as '[" &
    Parameters!Dimension.Value & "].currentmember.Level.Ordinal' member
    [Measures].[MyMeasure3] as '[" & Parameters!Dimension.Value &
    "].currentmember.UniqueName' member [Measures].[MyMeasure4] as
    '[Measures].[Unit Sales]' member [Measures].[MyMeasure5] as
    '[Measures].[Store Cost]' member [Measures].[MyMeasure6] as
    '[Measures].[Store Sales]' select {[Measures].[MyMeasure],
    [Measures].[MyMeasure2], [Measures].[MyMeasure3], [Measures].[MyMeasure4],
    [Measures].[MyMeasure5], [Measures].[MyMeasure6]} on columns, {filter([" &
    Parameters!Dimension.Value & "].members," & Parameters!Measure.Value & " > "
    & Parameters!Amount.Value & ") } on rows from [Sales]"
    And now you just add the dimensions you need as a set of report parameters
    ( drop down list with all the dimension unique names) and other parameters
    you need, and try it out. :)
    The drawback is that it gets kind of flat, but you can do quite a lot of
    tricks with formating the different levels.
    This is a sample that works against Foodmart2000:
    <?xml version="1.0" encoding="utf-8"?>
    <Report
    xmlns="http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition"
    xmlns:rd="">http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <rd:GridSpacing>0.25cm</rd:GridSpacing>
    <RightMargin>2.5cm</RightMargin>
    <Body>
    <ReportItems>
    <Textbox Name="textbox4">
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingBottom>2pt</PaddingBottom>
    <PaddingTop>2pt</PaddingTop>
    <PaddingRight>2pt</PaddingRight>
    </Style>
    <ZIndex>1</ZIndex>
    <Top>0.25cm</Top>
    <rd:DefaultName>textbox4</rd:DefaultName>
    <Height>0.63492cm</Height>
    <Width>13.25cm</Width>
    <CanGrow>true</CanGrow>
    <Value>="Generic report based on " & Parameters!Dimension.Value</Value>
    </Textbox>
    <Table Name="table1">
    <Height>1.90476cm</Height>
    <Style />
    <Header>
    <TableRows>
    <TableRow>
    <Height>0.63492cm</Height>
    <TableCells>
    <TableCell>
    <ReportItems>
    <Textbox Name="textbox1">
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <BorderStyle>
    <Bottom>Solid</Bottom>
    <Top>Solid</Top>
    <Left>Solid</Left>
    </BorderStyle>
    <PaddingBottom>2pt</PaddingBottom>
    <PaddingTop>2pt</PaddingTop>
    <PaddingRight>2pt</PaddingRight>
    <FontWeight>700</FontWeight>
    </Style>
    <ZIndex>11</ZIndex>
    <rd:DefaultName>textbox1</rd:DefaultName>
    <CanGrow>true</CanGrow>
    <Value>= Parameters!Dimension.Value</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    <TableCell>
    <ReportItems>
    <Textbox Name="textbox2">
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <BorderStyle>
    <Bottom>Solid</Bottom>
    <Top>Solid</Top>
    <Right>Solid</Right>
    </BorderStyle>
    <TextAlign>Right</TextAlign>
    <PaddingBottom>2pt</PaddingBottom>
    <PaddingTop>2pt</PaddingTop>
    <PaddingRight>2pt</PaddingRight>
    <FontWeight>700</FontWeight>
    </Style>
    <ZIndex>10</ZIndex>
    <rd:DefaultName>textbox2</rd:DefaultName>
    <CanGrow>true</CanGrow>
    <Value>Unit sales</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    <TableCell>
    <ReportItems>
    <Textbox Name="textbox3">
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <BorderStyle>
    <Bottom>Solid</Bottom>
    <Top>Solid</Top>
    <Right>Solid</ight>
    </BorderStyle>
    <TextAlign>Right</TextAlign>
    <PaddingBottom>2pt</PaddingBottom>
    <PaddingTop>2pt</PaddingTop>
    <PaddingRight>2pt</PaddingRight>
    <FontWeight>700</FontWeight>
    </Style>
    <ZIndex>9</ZIndex>
    <rd:DefaultName>textbox3</rd:DefaultName>
    <CanGrow>true</CanGrow>
    <Value>Store Cost</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    <TableCell>
    <ReportItems>
    <Textbox Name="textbox10">
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <BorderStyle>
    <Bottom>Solid</Bottom>
    <Top>Solid</Top>
    <Right>Solid</Right>
    </BorderStyle>
    <TextAlign>Right</TextAlign>
    <PaddingBottom>2pt</PaddingBottom>
    <PaddingTop>2pt</PaddingTop>
    <PaddingRight>2pt</PaddingRight>
    <FontWeight>700</FontWeight>
    </Style>
    <ZIndex>8</ZIndex>
    <rd:DefaultName>textbox10</rd:DefaultName>
    <CanGrow>true</CanGrow>
    <Value>Store Sales</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    </TableCells>
    </TableRow>
    </TableRows>
    <RepeatOnNewPage>true</RepeatOnNewPage>
    </Header>
    <Details>
    <TableRows>
    <TableRow>
    <Height>0.63492cm</Height>
    <TableCells>
    <TableCell>
    <ReportItems>
    <Textbox Name="Measures_MyMeasure">
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <BackgroundColor>=IIF(Fields!Measures_MyMeasure2.Value = "0", "LightBlue",
    IIF(Fields!Measures_MyMeasure2.Value = "2", "LightGreen",
    IIF(Fields!Measures_MyMeasure2.Value = "3", "LightYellow",
    "White")))</BackgroundColor>
    <BorderStyle>
    <Left>Solid</Left>
    </BorderStyle>
    <PaddingBottom>2pt</PaddingBottom>
    <PaddingTop>2pt</PaddingTop>
    <PaddingRight>2pt</PaddingRight>
    </Style>
    <ZIndex>3</ZIndex>
    <rd:DefaultName>Measures_MyMeasure</rd:DefaultName>
    <CanGrow>true</CanGrow>
    <Value>=Fields!Measures_MyMeasure.Value</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    <TableCell>
    <ReportItems>
    <Textbox Name="Measures_MyMeasure4">
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <Format>N0</Format>
    <BackgroundColor>=IIF(Fields!Measures_MyMeasure2.Value = "0", "LightBlue",
    IIF(Fields!Measures_MyMeasure2.Value = "2", "LightGreen",
    IIF(Fields!Measures_MyMeasure2.Value = "3", "LightYellow",
    "White")))</BackgroundColor>
    <BorderStyle>
    <Right>Solid</Right>
    </BorderStyle>
    <TextAlign>Right</TextAlign>
    <PaddingBottom>2pt</PaddingBottom>
    <PaddingTop>2pt</PaddingTop>
    <PaddingRight>2pt</PaddingRight>
    </Style>
    <ZIndex>2</ZIndex>
    <rd:DefaultName>Measures_MyMeasure4</rd:DefaultName>
    <CanGrow>true</CanGrow>
    <Value>=Fields!Measures_MyMeasure4.Value</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    <TableCell>
    <ReportItems>
    <Textbox Name="Measures_MyMeasure5">
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <Format>N0</Format>
    <BackgroundColor>=IIF(Fields!Measures_MyMeasure2.Value = "0", "LightBlue",
    IIF(Fields!Measures_MyMeasure2.Value = "2", "LightGreen",
    IIF(Fields!Measures_MyMeasure2.Value = "3", "LightYellow",
    "White")))</BackgroundColor>
    <BorderStyle>
    <Right>Solid</Right>
    </BorderStyle>
    <TextAlign>Right</TextAlign>
    <PaddingBottom>2pt</PaddingBottom>
    <PaddingTop>2pt</PaddingTop>
    <PaddingRight>2pt</PaddingRight>
    </Style>
    <ZIndex>1</ZIndex>
    <rd:DefaultName>Measures_MyMeasure5</rd:DefaultName>
    <CanGrow>true</CanGrow>
    <Value>=Fields!Measures_MyMeasure5.Value</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    <TableCell>
    <ReportItems>
    <Textbox Name="Measures_MyMeasure6">
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <Format>N0</Format>
    <BackgroundColor>=IIF(Fields!Measures_MyMeasure2.Value = "0", "LightBlue",
    IIF(Fields!Measures_MyMeasure2.Value = "2", "LightGreen",
    IIF(Fields!Measures_MyMeasure2.Value = "3", "LightYellow",
    "White")))</BackgroundColor>
    <BorderStyle>
    <Right>Solid</Right>
    </BorderStyle>
    <TextAlign>Right</TextAlign>
    <PaddingBottom>2pt</PaddingBottom>
    <PaddingTop>2pt</PaddingTop>
    <PaddingRight>2pt</PaddingRight>
    </Style>
    <rd:DefaultName>Measures_MyMeasure6</rd:DefaultName>
    <CanGrow>true</CanGrow>
    <Value>=Fields!Measures_MyMeasure6.Value</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    </TableCells>
    </TableRow>
    </TableRows>
    <Grouping Name="table1_Details_Group">
    <GroupExpressions>
    <GroupExpression>=Fields!Measures_MyMeasure3.Value</GroupExpression>
    </GroupExpressions>
    </Grouping>
    </Details>
    <DataSetName>DataSet1</DataSetName>
    <Top>1.25cm</Top>
    <Width>13.63624cm</Width>
    <Footer>
    <TableRows>
    <TableRow>
    <Height>0.63492cm</Height>
    <TableCells>
    <TableCell>
    <ReportItems>
    <Textbox Name="textbox7">
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <BorderStyle>
    <Top>Solid</Top>
    </BorderStyle>
    <PaddingBottom>2pt</PaddingBottom>
    <PaddingTop>2pt</PaddingTop>
    <PaddingRight>2pt</PaddingRight>
    </Style>
    <ZIndex>7</ZIndex>
    <rd:DefaultName>textbox7</rd:DefaultName>
    <CanGrow>true</CanGrow>
    <Value />
    </Textbox>
    </ReportItems>
    </TableCell>
    <TableCell>
    <ReportItems>
    <Textbox Name="textbox8">
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <BorderStyle>
    <Top>Solid</Top>
    </BorderStyle>
    <PaddingBottom>2pt</PaddingBottom>
    <PaddingTop>2pt</PaddingTop>
    <PaddingRight>2pt</PaddingRight>
    </Style>
    <ZIndex>6</ZIndex>
    <rd:DefaultName>textbox8</rd:DefaultName>
    <CanGrow>true</CanGrow>
    <Value />
    </Textbox>
    </ReportItems>
    </TableCell>
    <TableCell>
    <ReportItems>
    <Textbox Name="textbox9">
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <BorderStyle>
    <Top>Solid</Top>
    </BorderStyle>
    <PaddingBottom>2pt</PaddingBottom>
    <PaddingTop>2pt</PaddingTop>
    <PaddingRight>2pt</PaddingRight>
    </Style>
    <ZIndex>5</ZIndex>
    <rd:DefaultName>textbox9</rd:DefaultName>
    <CanGrow>true</CanGrow>
    <Value />
    </Textbox>
    </ReportItems>
    </TableCell>
    <TableCell>
    <ReportItems>
    <Textbox Name="textbox12">
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <BorderStyle>
    <Top>Solid</Top>
    </BorderStyle>
    <PaddingBottom>2pt</PaddingBottom>
    <PaddingTop>2pt</PaddingTop>
    <PaddingRight>2pt</PaddingRight>
    </Style>
    <ZIndex>4</ZIndex>
    <rd:DefaultName>textbox12</rd:DefaultName>
    <CanGrow>true</CanGrow>
    <Value />
    </Textbox>
    </ReportItems>
    </TableCell>
    </TableCells>
    </TableRow>
    </TableRows>
    <RepeatOnNewPage>true</RepeatOnNewPage>
    </Footer>
    <TableColumns>
    <TableColumn>
    <Width>5.33333cm</Width>
    </TableColumn>
    <TableColumn>
    <Width>2.75cm</Width>
    <Visibility>
    <Hidden>=IIF( Parameters!ShowAll.Value = False, IIF(Parameters!Measure.Label
    = "Unit Sales", False, True), False)</Hidden>
    </Visibility>
    </TableColumn>
    <TableColumn>
    <Width>2.77645cm</Width>
    <Visibility>
    <Hidden>=IIF( Parameters!ShowAll.Value = False, IIF(Parameters!Measure.Label
    = "Store Cost", False, True), False)</Hidden>
    </Visibility>
    </TableColumn>
    <TableColumn>
    <Width>2.77646cm</Width>
    <Visibility>
    <Hidden>=IIF( Parameters!ShowAll.Value = False, IIF(Parameters!Measure.Label
    = "Store Sales", False, True), False)</Hidden>
    </Visibility>
    </TableColumn>
    </TableColumns>
    </Table>
    </ReportItems>
    <Style />
    <Height>15cm</Height>
    <ColumnSpacing>1cm</ColumnSpacing>
    </Body>
    <TopMargin>2.5cm</TopMargin>
    <DataSources>
    <DataSource Name="FoodMart 2000">
    <rd:DataSourceID>8a442390-ee54-4c51-b68a-8a19b447060d</rd:DataSourceID>
    <DataSourceReference>FoodMart 2000</DataSourceReference>
    </DataSource>
    </DataSources>
    <Width>16cm</Width>
    <DataSets>
    <DataSet Name="DataSet1">
    <Fields>
    <Field Name="Store_Store_Country">
    <DataField>[Store].[Store Country].[MEMBER_CAPTION]</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="Store_Store_State">
    <DataField>[Store].[Store State].[MEMBER_CAPTION]</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="Store_Store_City">
    <DataField>[Store].[Store City].[MEMBER_CAPTION]</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="Store_Store_Name">
    <DataField>[Store].[Store Name].[MEMBER_CAPTION]</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="Measures_MyMeasure">
    <DataField>[Measures].[MyMeasure]</DataField>
    <rd:TypeName>System.Object</rd:TypeName>
    </Field>
    <Field Name="Measures_MyMeasure2">
    <DataField>[Measures].[MyMeasure2]</DataField>
    <rd:TypeName>System.Object</rd:TypeName>
    </Field>
    <Field Name="Measures_MyMeasure3">
    <DataField>[Measures].[MyMeasure3]</DataField>
    <rd:TypeName>System.Object</rd:TypeName>
    </Field>
    <Field Name="Measures_MyMeasure4">
    <DataField>[Measures].[MyMeasure4]</DataField>
    <rd:TypeName>System.Object</rd:TypeName>
    </Field>
    <Field Name="Measures_MyMeasure5">
    <DataField>[Measures].[MyMeasure5]</DataField>
    <rd:TypeName>System.Object</rd:TypeName>
    </Field>
    <Field Name="Measures_MyMeasure6">
    <DataField>[Measures].[MyMeasure6]</DataField>
    <rd:TypeName>System.Object</rd:TypeName>
    </Field>
    </Fields>
    <Query>
    <DataSourceName>FoodMart 2000</DataSourceName>
    <CommandText>="with member [Measures].[MyMeasure] as '[" &
    Parameters!Dimension.Value & "].currentmember.name' member
    [Measures].[MyMeasure2] as '[" & Parameters!Dimension.Value &
    "].currentmember.Level.Ordinal' member [Measures].[MyMeasure3] as '[" &
    Parameters!Dimension.Value & "].currentmember.UniqueName' member
    [Measures].[MyMeasure4] as '[Measures].[Unit Sales]' member
    [Measures].[MyMeasure5] as '[Measures].[Store Cost]' member
    [Measures].[MyMeasure6] as '[Measures].[Store Sales]' select
    {[Measures].[MyMeasure], [Measures].[MyMeasure2], [Measures].[MyMeasure3],
    [Measures].[MyMeasure4], [Measures].[MyMeasure5], [Measures].[MyMeasure6]}
    on columns, {filter([" & Parameters!Dimension.Value & "].members,"
    & Parameters!Measure.Value & " > " & Parameters!Amount.Value
    & ") } on rows from [Sales]"</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    </DataSet>
    </DataSets>
    <LeftMargin>2.5cm</LeftMargin>
    <rd:SnapToGrid>true</rd:SnapToGrid>
    <PageHeight>29.7cm</PageHeight>
    <rd:DrawGrid>true</rd:DrawGrid>
    <PageWidth>21cm</PageWidth>
    <rd:ReportID>247133a5-6ff9-4041-b398-bb2f76911f3e</rd:ReportID>
    <BottomMargin>2.5cm</BottomMargin>
    <ReportParameters>
    <ReportParameter Name="Dimension">
    <DataType>String</DataType>
    <Prompt>Choose dimension</Prompt>
    <ValidValues>
    <ParameterValues>
    <ParameterValue>
    <Value>Store</Value>
    </ParameterValue>
    <ParameterValue>
    <Value>Store Type</Value>
    </ParameterValue>
    <ParameterValue>
    <Value>Store Size in SQFT</Value>
    </ParameterValue>
    <ParameterValue>
    <Value>Time</Value>
    </ParameterValue>
    <ParameterValue>
    <Value>Product</Value>
    </ParameterValue>
    <ParameterValue>
    <Value>Gender</Value>
    </ParameterValue>
    <ParameterValue>
    <Value>Promotions</Value>
    </ParameterValue>
    </ParameterValues>
    </ValidValues>
    </ReportParameter>
    <ReportParameter Name="Measure">
    <DataType>String</DataType>
    <DefaultValue>
    <Values>
    <Value>="[Measures].[Unit Sales]"</Value>
    </Values>
    </DefaultValue>
    <Prompt>Choose measure</Prompt>
    <ValidValues>
    <ParameterValues>
    <ParameterValue>
    <Value>[Measures].[Unit Sales]</Value>
    <Label>Unit Sales</Label>
    </ParameterValue>
    <ParameterValue>
    <Value>[Measures].[Store Cost]</Value>
    <Label>Store Cost</Label>
    </ParameterValue>
    <ParameterValue>
    <Value>[Measures].[Store Sales]</Value>
    <Label>Store Sales</Label>
    </ParameterValue>
    </ParameterValues>
    </ValidValues>
    </ReportParameter>
    <ReportParameter Name="Amount">
    <DataType>Integer</DataType>
    <DefaultValue>
    <Values>
    <Value>0</Value>
    </Values>
    </DefaultValue>
    <AllowBlank>true</AllowBlank>
    <Prompt>More than</Prompt>
    </ReportParameter>
    <ReportParameter Name="ShowAll">
    <DataType>Boolean</DataType>
    <DefaultValue>
    <Values>
    <Value>true</Value>
    </Values>
    </DefaultValue>
    <AllowBlank>true</AllowBlank>
    <Prompt>Show all</Prompt>
    </ReportParameter>
    </ReportParameters>
    <Language>nb-NO</Language>
    </Report>|||Hi Kaisa,
    I want same what steve want. I have two column in my report. First is
    Dimension and second is measure. I have tryed what you suggested but not
    working. can you please check where i am doing wrong?
    I have two dimension:
    [Dim Station].[Station Name].[Station Name]
    [Dim Free Test].[Free Test].[Free Test]
    and one measure:
    [Measures].[Total Test Count]
    My Cube Name is:
    [OLAP Test Cube]
    I want [Dim Station] and [Dim Free Test] dimension dynamically. I don't want
    any filter if it require for Dynamic queyr then ok.
    when i execute following query in Query builder then it giving me error. can
    you please check this where i am wrong?
    Query:
    with member [Measures].[MyMeasure] as '[Dim Station].currentmember.name'
    member [Measures].[MyMeasure2] as '[Dim Station].currentmember.Level.Ordinal'
    member [Measures].[MyMeasure3] as '[Dim Station].currentmember.UniqueName'
    member [Measures].[MyMeasure4] as '[Measures].[Total Test Count]'
    select {[Measures].[MyMeasure], [Measures].[MyMeasure2],
    [Measures].[MyMeasure3],
    [Measures].[MyMeasure4]}
    on columns, {filter([Dim Station].members, [Measures].[Total Test Count]]>
    0) } on
    rows from [OLAP Test Cube]
    Regards,
    Dinesh Patel
    "Kaisa M. Lindahl Lervik" wrote:
    > The trick is to return the dimension names as measures, and then use the
    > measures in your report instead of the dimension names.
    > You start out with a usual query, and add Currentmember.Name,
    > currentmember.Level.Ordinal and Currentmember.UniqueName as measures.
    > with member [Measures].[MyMeasure] as '[Store].currentmember.name' member
    > [Measures].[MyMeasure2] as '[Store].currentmember.Level.Ordinal' member
    > [Measures].[MyMeasure3] as '[Store].currentmember.UniqueName'
    > Then add x number of columns, for measures that you want to reuse.
    > member [Measures].[MyMeasure4] as '[Measures].[Unit Sales]' member
    > [Measures].[MyMeasure5] as '[Measures].[Store Cost]' member
    > [Measures].[MyMeasure6] as '[Measures].[Store Sales]'
    > Then select all the measures (both the dimension name ones, and the ones
    > based on the old measures)
    > I added a filter to mine, you don't need to do that.
    > The resulting MDX query looks like this:
    > with member [Measures].[MyMeasure] as '[Store].currentmember.name' member
    > [Measures].[MyMeasure2] as '[Store].currentmember.Level.Ordinal' member
    > [Measures].[MyMeasure3] as '[Store].currentmember.UniqueName' member
    > [Measures].[MyMeasure4] as '[Measures].[Unit Sales]' member
    > [Measures].[MyMeasure5] as '[Measures].[Store Cost]' member
    > [Measures].[MyMeasure6] as '[Measures].[Store Sales]' select
    > {[Measures].[MyMeasure], [Measures].[MyMeasure2], [Measures].[MyMeasure3],
    > [Measures].[MyMeasure4], [Measures].[MyMeasure5], [Measures].[MyMeasure6]}
    > on columns, {filter([Store].members, [Measures].[Store Cost]> 25000) } on
    > rows from [Sales]
    >
    > After you've generated all the fields, change it as usual to a parameterized
    > query:
    > ="with member [Measures].[MyMeasure] as '[" & Parameters!Dimension.Value &
    > "].currentmember.name' member [Measures].[MyMeasure2] as '[" &
    > Parameters!Dimension.Value & "].currentmember.Level.Ordinal' member
    > [Measures].[MyMeasure3] as '[" & Parameters!Dimension.Value &
    > "].currentmember.UniqueName' member [Measures].[MyMeasure4] as
    > '[Measures].[Unit Sales]' member [Measures].[MyMeasure5] as
    > '[Measures].[Store Cost]' member [Measures].[MyMeasure6] as
    > '[Measures].[Store Sales]' select {[Measures].[MyMeasure],
    > [Measures].[MyMeasure2], [Measures].[MyMeasure3], [Measures].[MyMeasure4],
    > [Measures].[MyMeasure5], [Measures].[MyMeasure6]} on columns, {filter([" &
    > Parameters!Dimension.Value & "].members," & Parameters!Measure.Value & " > "
    > & Parameters!Amount.Value & ") } on rows from [Sales]"
    > And now you just add the dimensions you need as a set of report parameters
    > ( drop down list with all the dimension unique names) and other parameters
    > you need, and try it out. :)
    > The drawback is that it gets kind of flat, but you can do quite a lot of
    > tricks with formating the different levels.
    > This is a sample that works against Foodmart2000:
    > <?xml version="1.0" encoding="utf-8"?>
    > <Report
    > xmlns="http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition"
    > xmlns:rd="">http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    > <rd:GridSpacing>0.25cm</rd:GridSpacing>
    > <RightMargin>2.5cm</RightMargin>
    > <Body>
    > <ReportItems>
    > <Textbox Name="textbox4">
    > <Style>
    > <PaddingLeft>2pt</PaddingLeft>
    > <PaddingBottom>2pt</PaddingBottom>
    > <PaddingTop>2pt</PaddingTop>
    > <PaddingRight>2pt</PaddingRight>
    > </Style>
    > <ZIndex>1</ZIndex>
    > <Top>0.25cm</Top>
    > <rd:DefaultName>textbox4</rd:DefaultName>
    > <Height>0.63492cm</Height>
    > <Width>13.25cm</Width>
    > <CanGrow>true</CanGrow>
    > <Value>="Generic report based on " & Parameters!Dimension.Value</Value>
    > </Textbox>
    > <Table Name="table1">
    > <Height>1.90476cm</Height>
    > <Style />
    > <Header>
    > <TableRows>
    > <TableRow>
    > <Height>0.63492cm</Height>
    > <TableCells>
    > <TableCell>
    > <ReportItems>
    > <Textbox Name="textbox1">
    > <Style>
    > <PaddingLeft>2pt</PaddingLeft>
    > <BorderStyle>
    > <Bottom>Solid</Bottom>
    > <Top>Solid</Top>
    > <Left>Solid</Left>
    > </BorderStyle>
    > <PaddingBottom>2pt</PaddingBottom>
    > <PaddingTop>2pt</PaddingTop>
    > <PaddingRight>2pt</PaddingRight>
    > <FontWeight>700</FontWeight>
    > </Style>
    > <ZIndex>11</ZIndex>
    > <rd:DefaultName>textbox1</rd:DefaultName>
    > <CanGrow>true</CanGrow>
    > <Value>= Parameters!Dimension.Value</Value>
    > </Textbox>
    > </ReportItems>
    > </TableCell>
    > <TableCell>
    > <ReportItems>
    > <Textbox Name="textbox2">
    > <Style>
    > <PaddingLeft>2pt</PaddingLeft>
    > <BorderStyle>
    > <Bottom>Solid</Bottom>
    > <Top>Solid</Top>
    > <Right>Solid</Right>
    > </BorderStyle>
    > <TextAlign>Right</TextAlign>
    > <PaddingBottom>2pt</PaddingBottom>
    > <PaddingTop>2pt</PaddingTop>
    > <PaddingRight>2pt</PaddingRight>
    > <FontWeight>700</FontWeight>
    > </Style>
    > <ZIndex>10</ZIndex>
    > <rd:DefaultName>textbox2</rd:DefaultName>
    > <CanGrow>true</CanGrow>
    > <Value>Unit sales</Value>
    > </Textbox>
    > </ReportItems>
    > </TableCell>
    > <TableCell>
    > <ReportItems>
    > <Textbox Name="textbox3">
    > <Style>
    > <PaddingLeft>2pt</PaddingLeft>
    > <BorderStyle>
    > <Bottom>Solid</Bottom>
    > <Top>Solid</Top>
    > <Right>Solid</ight>
    > </BorderStyle>
    > <TextAlign>Right</TextAlign>
    > <PaddingBottom>2pt</PaddingBottom>
    > <PaddingTop>2pt</PaddingTop>
    > <PaddingRight>2pt</PaddingRight>
    > <FontWeight>700</FontWeight>
    > </Style>
    > <ZIndex>9</ZIndex>
    > <rd:DefaultName>textbox3</rd:DefaultName>
    > <CanGrow>true</CanGrow>
    > <Value>Store Cost</Value>
    > </Textbox>
    > </ReportItems>
    > </TableCell>
    > <TableCell>
    > <ReportItems>
    > <Textbox Name="textbox10">
    > <Style>
    > <PaddingLeft>2pt</PaddingLeft>
    > <BorderStyle>
    > <Bottom>Solid</Bottom>
    > <Top>Solid</Top>
    > <Right>Solid</Right>
    > </BorderStyle>
    > <TextAlign>Right</TextAlign>
    > <PaddingBottom>2pt</PaddingBottom>
    > <PaddingTop>2pt</PaddingTop>
    > <PaddingRight>2pt</PaddingRight>
    > <FontWeight>700</FontWeight>
    > </Style>
    > <ZIndex>8</ZIndex>
    > <rd:DefaultName>textbox10</rd:DefaultName>
    > <CanGrow>true</CanGrow>
    > <Value>Store Sales</Value>
    > </Textbox>
    > </ReportItems>
    > </TableCell>
    > </TableCells>|||I am working with AS2005 and RS2005 I have created one report also. can you
    please check this code.
    I am trying to change query to below but giving error:
    ="with member [Measures].[MyMeasure] as '" & Parameters!Dimension.Value &
    ".currentmember.name'
    member [Measures].[MyMeasure2] as '" & Parameters!Dimension.Value &
    ".currentmember.Level.Ordinal'
    member [Measures].[MyMeasure3] as '" & Parameters!Dimension.Value &
    ".currentmember.UniqueName'
    member [Measures].[MyMeasure4] as '[Measures].[Total Test Count]'
    select {[Measures].[MyMeasure], [Measures].[MyMeasure2],
    [Measures].[MyMeasure3],
    [Measures].[MyMeasure4]}
    on columns, {" & Parameters!Dimension.Value & ".members} on
    rows from [OLAP Test Cube]"
    my report code is below:
    <?xml version="1.0" encoding="utf-8"?>
    <Report
    xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"
    xmlns:rd="">http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <DataSources>
    <DataSource Name="SLCTestDB">
    <DataSourceReference>SLCTestDB</DataSourceReference>
    <rd:DataSourceID>44e60797-bd99-4681-9499-7e848244229e</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <BottomMargin>1in</BottomMargin>
    <RightMargin>1in</RightMargin>
    <ReportParameters>
    <ReportParameter Name="Dimension">
    <DataType>String</DataType>
    <DefaultValue>
    <Values>
    <Value>[Free Test]</Value>
    </Values>
    </DefaultValue>
    <Prompt>Dimension</Prompt>
    <ValidValues>
    <ParameterValues>
    <ParameterValue>
    <Value>[Station Name]</Value>
    <Label>station</Label>
    </ParameterValue>
    <ParameterValue>
    <Value>[Free Test]</Value>
    <Label>Free</Label>
    </ParameterValue>
    </ParameterValues>
    </ValidValues>
    </ReportParameter>
    </ReportParameters>
    <rd:DrawGrid>true</rd:DrawGrid>
    <InteractiveWidth>8.5in</InteractiveWidth>
    <rd:SnapToGrid>true</rd:SnapToGrid>
    <Body>
    <ReportItems>
    <Textbox Name="textbox1">
    <rd:DefaultName>textbox1</rd:DefaultName>
    <ZIndex>1</ZIndex>
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingBottom>2pt</PaddingBottom>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>700</FontWeight>
    <FontSize>20pt</FontSize>
    <Color>SteelBlue</Color>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    </Style>
    <CanGrow>true</CanGrow>
    <Height>0.36in</Height>
    <Value>Report3</Value>
    </Textbox>
    <Table Name="table1">
    <DataSetName>SLCTestDB</DataSetName>
    <Top>0.36in</Top>
    <TableGroups>
    <TableGroup>
    <Header>
    <TableRows>
    <TableRow>
    <TableCells>
    <TableCell>
    <ReportItems>
    <Textbox Name="MyMeasure">
    <rd:DefaultName>MyMeasure</rd:DefaultName>
    <ZIndex>3</ZIndex>
    <Style>
    <BorderStyle>
    <Default>Solid</Default>
    </BorderStyle>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingBottom>2pt</PaddingBottom>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>700</FontWeight>
    <BorderColor>
    <Default>LightGrey</Default>
    </BorderColor>
    <BackgroundColor>#6e9eca</BackgroundColor>
    <Color>White</Color>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    </Style>
    <CanGrow>true</CanGrow>
    <Value>=Fields!MyMeasure.Value</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    <TableCell>
    <ReportItems>
    <Textbox Name="textbox5">
    <rd:DefaultName>textbox5</rd:DefaultName>
    <ZIndex>2</ZIndex>
    <Style>
    <BorderStyle>
    <Default>Solid</Default>
    </BorderStyle>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingBottom>2pt</PaddingBottom>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>700</FontWeight>
    <BorderColor>
    <Default>LightGrey</Default>
    </BorderColor>
    <BackgroundColor>#6e9eca</BackgroundColor>
    <Color>White</Color>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    </Style>
    <CanGrow>true</CanGrow>
    <Value>
    </Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    </TableCells>
    <Height>0.21in</Height>
    </TableRow>
    </TableRows>
    </Header>
    <Sorting>
    <SortBy>
    <SortExpression>=Fields!MyMeasure.Value</SortExpression>
    <Direction>Ascending</Direction>
    </SortBy>
    </Sorting>
    <Grouping Name="table1_MyMeasure">
    <GroupExpressions>
    <GroupExpression>=Fields!MyMeasure.Value</GroupExpression>
    </GroupExpressions>
    </Grouping>
    </TableGroup>
    </TableGroups>
    <Width>4.5in</Width>
    <Details>
    <TableRows>
    <TableRow>
    <TableCells>
    <TableCell>
    <ReportItems>
    <Textbox Name="textbox3">
    <rd:DefaultName>textbox3</rd:DefaultName>
    <ZIndex>1</ZIndex>
    <Style>
    <BorderStyle>
    <Default>Solid</Default>
    </BorderStyle>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingBottom>2pt</PaddingBottom>
    <FontFamily>Tahoma</FontFamily>
    <BorderColor>
    <Default>LightGrey</Default>
    </BorderColor>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    </Style>
    <CanGrow>true</CanGrow>
    <Value>
    </Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    <TableCell>
    <ReportItems>
    <Textbox Name="MyMeasure4">
    <rd:DefaultName>MyMeasure4</rd:DefaultName>
    <Style>
    <BorderStyle>
    <Default>Solid</Default>
    </BorderStyle>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingBottom>2pt</PaddingBottom>
    <FontFamily>Tahoma</FontFamily>
    <BorderColor>
    <Default>LightGrey</Default>
    </BorderColor>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    </Style>
    <CanGrow>true</CanGrow>
    <Value>=Fields!MyMeasure4.Value</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    </TableCells>
    <Height>0.21in</Height>
    </TableRow>
    </TableRows>
    </Details>
    <Header>
    <TableRows>
    <TableRow>
    <TableCells>
    <TableCell>
    <ReportItems>
    <Textbox Name="textbox2">
    <rd:DefaultName>textbox2</rd:DefaultName>
    <ZIndex>5</ZIndex>
    <Style>
    <BorderStyle>
    <Default>Solid</Default>
    </BorderStyle>
    <TextAlign>Right</TextAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingBottom>2pt</PaddingBottom>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>700</FontWeight>
    <FontSize>11pt</FontSize>
    <BorderColor>
    <Default>LightGrey</Default>
    </BorderColor>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <Color>White</Color>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    </Style>
    <CanGrow>true</CanGrow>
    <Value>My Measure</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    <TableCell>
    <ReportItems>
    <Textbox Name="textbox4">
    <rd:DefaultName>textbox4</rd:DefaultName>
    <ZIndex>4</ZIndex>
    <Style>
    <BorderStyle>
    <Default>Solid</Default>
    </BorderStyle>
    <TextAlign>Right</TextAlign>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingBottom>2pt</PaddingBottom>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>700</FontWeight>
    <FontSize>11pt</FontSize>
    <BorderColor>
    <Default>LightGrey</Default>
    </BorderColor>
    <BackgroundColor>SteelBlue</BackgroundColor>
    <Color>White</Color>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    </Style>
    <CanGrow>true</CanGrow>
    <Value>My Measure4</Value>
    </Textbox>
    </ReportItems>
    </TableCell>
    </TableCells>
    <Height>0.22in</Height>
    </TableRow>
    </TableRows>
    <RepeatOnNewPage>true</RepeatOnNewPage>
    </Header>
    <TableColumns>
    <TableColumn>
    <Width>2.875in</Width>
    </TableColumn>
    <TableColumn>
    <Width>1.625in</Width>
    </TableColumn>
    </TableColumns>
    </Table>
    </ReportItems>
    <Height>1in</Height>
    </Body>
    <rd:ReportID>be7b0e20-a01a-40a4-8c2a-23748db01c34</rd:ReportID>
    <LeftMargin>1in</LeftMargin>
    <DataSets>
    <DataSet Name="SLCTestDB">
    <Query>
    <rd:SuppressAutoUpdate>true</rd:SuppressAutoUpdate>
    <CommandText>with member [Measures].[MyMeasure] as '[Free
    Test].currentmember.name'
    member [Measures].[MyMeasure2] as '[Free Test].currentmember.Level.Ordinal'
    member [Measures].[MyMeasure3] as '[Free Test].currentmember.UniqueName'
    member [Measures].[MyMeasure4] as '[Measures].[Total Test Count]'
    select {[Measures].[MyMeasure], [Measures].[MyMeasure2],
    [Measures].[MyMeasure3],
    [Measures].[MyMeasure4]} on columns,
    {[Free Test].members} on
    rows from [OLAP Test Cube]</CommandText>
    <DataSourceName>SLCTestDB</DataSourceName>
    <rd:MdxQuery><QueryDefinition
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="<CommandType>MDX</CommandType><Type>Query</Type><QuerySpecification">http://schemas.microsoft.com/AnalysisServices/QueryDefinition"><CommandType>MDX</CommandType><Type>Query</Type><QuerySpecification
    xsi:type="MDXQuerySpecification"><Select><Items><Item><ID
    xsi:type="Level"><DimensionName>Dim Free
    Test</DimensionName><HierarchyName>Free
    Test</HierarchyName><HierarchyUniqueName>[Dim Free Test].[Free
    Test]</HierarchyUniqueName><LevelName>Free Test</LevelName><UniqueName>[Dim
    Free Test].[Free Test].[Free Test]</UniqueName></ID><ItemCaption>Free
    Test</ItemCaption></Item><Item><ID
    xsi:type="Measure"><MeasureName>MyMeasure</MeasureName><UniqueName>[Measures].[MyMeasure]</UniqueName></ID><ItemCaption>MyMeasure</ItemCaption><FormattedValue>true</FormattedValue></Item><Item><ID
    xsi:type="Measure"><MeasureName>MyMeasure2</MeasureName><UniqueName>[Measures].[MyMeasure2]</UniqueName></ID><ItemCaption>MyMeasure2</ItemCaption><FormattedValue>true</FormattedValue></Item><Item><ID
    xsi:type="Measure"><MeasureName>MyMeasure3</MeasureName><UniqueName>[Measures].[MyMeasure3]</UniqueName></ID><ItemCaption>MyMeasure3</ItemCaption><FormattedValue>true</FormattedValue></Item><Item><ID
    xsi:type="Measure"><MeasureName>MyMeasure4</MeasureName><UniqueName>[Measures].[MyMeasure4]</UniqueName></ID><ItemCaption>MyMeasure4</ItemCaption><FormattedValue>true</FormattedValue></Item></Items></Select><From>OLAP
    Test Cube</From><Filter><FilterItems /></Filter><Calculations /><Aggregates
    /><QueryProperties /></QuerySpecification><Query><Statement>with member
    [Measures].[MyMeasure] as '[Free Test].currentmember.name'
    member [Measures].[MyMeasure2] as '[Free Test].currentmember.Level.Ordinal'
    member [Measures].[MyMeasure3] as '[Free Test].currentmember.UniqueName'
    member [Measures].[MyMeasure4] as '[Measures].[Total Test Count]'
    select {[Measures].[MyMeasure], [Measures].[MyMeasure2],
    [Measures].[MyMeasure3],
    [Measures].[MyMeasure4]} on columns,
    {[Free Test].members} on
    rows from [OLAP Test Cube]</Statement><ParameterDefinitions
    /></Query></QueryDefinition></rd:MdxQuery>
    </Query>
    <Fields>
    <Field Name="Free_Test">
    <rd:TypeName>System.String</rd:TypeName>
    <DataField><?xml version="1.0" encoding="utf-8"?><Field
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="Level"
    UniqueName="[Dim Free Test].[Free Test].[Free Test]" /></DataField>
    </Field>
    <Field Name="MyMeasure">
    <rd:TypeName>System.Int32</rd:TypeName>
    <DataField><?xml version="1.0" encoding="utf-8"?><Field
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="Measure"
    UniqueName="[Measures].[MyMeasure]" /></DataField>
    </Field>
    <Field Name="MyMeasure2">
    <rd:TypeName>System.Int32</rd:TypeName>
    <DataField><?xml version="1.0" encoding="utf-8"?><Field
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="Measure"
    UniqueName="[Measures].[MyMeasure2]" /></DataField>
    </Field>
    <Field Name="MyMeasure3">
    <rd:TypeName>System.Int32</rd:TypeName>
    <DataField><?xml version="1.0" encoding="utf-8"?><Field
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="Measure"
    UniqueName="[Measures].[MyMeasure3]" /></DataField>
    </Field>
    <Field Name="MyMeasure4">
    <rd:TypeName>System.Int32</rd:TypeName>
    <DataField><?xml version="1.0" encoding="utf-8"?><Field
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="Measure"
    UniqueName="[Measures].[MyMeasure4]" /></DataField>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <Width>5in</Width>
    <InteractiveHeight>11in</InteractiveHeight>
    <Language>en-US</Language>
    <TopMargin>1in</TopMargin>
    </Report>
    "Dinesh Patel" wrote:
    > Hi Kaisa,
    > I want same what steve want. I have two column in my report. First is
    > Dimension and second is measure. I have tryed what you suggested but not
    > working. can you please check where i am doing wrong?
    > I have two dimension:
    > [Dim Station].[Station Name].[Station Name]
    > [Dim Free Test].[Free Test].[Free Test]
    > and one measure:
    > [Measures].[Total Test Count]
    > My Cube Name is:
    > [OLAP Test Cube]
    > I want [Dim Station] and [Dim Free Test] dimension dynamically. I don't want
    > any filter if it require for Dynamic queyr then ok.
    > when i execute following query in Query builder then it giving me error. can
    > you please check this where i am wrong?
    > Query:
    > with member [Measures].[MyMeasure] as '[Dim Station].currentmember.name'
    > member [Measures].[MyMeasure2] as '[Dim Station].currentmember.Level.Ordinal'
    > member [Measures].[MyMeasure3] as '[Dim Station].currentmember.UniqueName'
    > member [Measures].[MyMeasure4] as '[Measures].[Total Test Count]'
    > select {[Measures].[MyMeasure], [Measures].[MyMeasure2],
    > [Measures].[MyMeasure3],
    > [Measures].[MyMeasure4]}
    > on columns, {filter([Dim Station].members, [Measures].[Total Test Count]]>
    > 0) } on
    > rows from [OLAP Test Cube]
    > Regards,
    > Dinesh Patel
    > "Kaisa M. Lindahl Lervik" wrote:
    > > The trick is to return the dimension names as measures, and then use the
    > > measures in your report instead of the dimension names.
    > >
    > > You start out with a usual query, and add Currentmember.Name,
    > > currentmember.Level.Ordinal and Currentmember.UniqueName as measures.
    > >
    > > with member [Measures].[MyMeasure] as '[Store].currentmember.name' member
    > > [Measures].[MyMeasure2] as '[Store].currentmember.Level.Ordinal' member
    > > [Measures].[MyMeasure3] as '[Store].currentmember.UniqueName'
    > >
    > > Then add x number of columns, for measures that you want to reuse.
    > > member [Measures].[MyMeasure4] as '[Measures].[Unit Sales]' member
    > > [Measures].[MyMeasure5] as '[Measures].[Store Cost]' member
    > > [Measures].[MyMeasure6] as '[Measures].[Store Sales]'
    > >
    > > Then select all the measures (both the dimension name ones, and the ones
    > > based on the old measures)
    > > I added a filter to mine, you don't need to do that.
    > >
    > > The resulting MDX query looks like this:
    > >
    > > with member [Measures].[MyMeasure] as '[Store].currentmember.name' member
    > > [Measures].[MyMeasure2] as '[Store].currentmember.Level.Ordinal' member
    > > [Measures].[MyMeasure3] as '[Store].currentmember.UniqueName' member
    > > [Measures].[MyMeasure4] as '[Measures].[Unit Sales]' member
    > > [Measures].[MyMeasure5] as '[Measures].[Store Cost]' member
    > > [Measures].[MyMeasure6] as '[Measures].[Store Sales]' select
    > > {[Measures].[MyMeasure], [Measures].[MyMeasure2], [Measures].[MyMeasure3],
    > > [Measures].[MyMeasure4], [Measures].[MyMeasure5], [Measures].[MyMeasure6]}
    > > on columns, {filter([Store].members, [Measures].[Store Cost]> 25000) } on
    > > rows from [Sales]
    > >
    > >
    > > After you've generated all the fields, change it as usual to a parameterized
    > > query:
    > >
    > > ="with member [Measures].[MyMeasure] as '[" & Parameters!Dimension.Value &
    > > "].currentmember.name' member [Measures].[MyMeasure2] as '[" &
    > > Parameters!Dimension.Value & "].currentmember.Level.Ordinal' member
    > > [Measures].[MyMeasure3] as '[" & Parameters!Dimension.Value &
    > > "].currentmember.UniqueName' member [Measures].[MyMeasure4] as
    > > '[Measures].[Unit Sales]' member [Measures].[MyMeasure5] as
    > > '[Measures].[Store Cost]' member [Measures].[MyMeasure6] as
    > > '[Measures].[Store Sales]' select {[Measures].[MyMeasure],
    > > [Measures].[MyMeasure2], [Measures].[MyMeasure3], [Measures].[MyMeasure4],
    > > [Measures].[MyMeasure5], [Measures].[MyMeasure6]} on columns, {filter([" &
    > > Parameters!Dimension.Value & "].members," & Parameters!Measure.Value & " > "
    > > & Parameters!Amount.Value & ") } on rows from [Sales]"
    > >
    > > And now you just add the dimensions you need as a set of report parameters
    > > ( drop down list with all the dimension unique names) and other parameters
    > > you need, and try it out. :)
    > >
    > > The drawback is that it gets kind of flat, but you can do quite a lot of
    > > tricks with formating the different levels.
    > >
    > > This is a sample that works against Foodmart2000:
    > > <?xml version="1.0" encoding="utf-8"?>
    > >
    > > <Report
    > > xmlns="http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition"
    > > xmlns:rd="">http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    > >
    > > <rd:GridSpacing>0.25cm</rd:GridSpacing>
    > >
    > > <RightMargin>2.5cm</RightMargin>
    > >
    > > <Body>
    > >
    > > <ReportItems>
    > >
    > > <Textbox Name="textbox4">
    > >
    > > <Style>
    > >
    > > <PaddingLeft>2pt</PaddingLeft>
    > >
    > > <PaddingBottom>2pt</PaddingBottom>
    > >
    > > <PaddingTop>2pt</PaddingTop>
    > >
    > > <PaddingRight>2pt</PaddingRight>
    > >
    > > </Style>
    > >
    > > <ZIndex>1</ZIndex>
    > >
    > > <Top>0.25cm</Top>
    > >
    > > <rd:DefaultName>textbox4</rd:DefaultName>
    > >
    > > <Height>0.63492cm</Height>
    > >
    > > <Width>13.25cm</Width>
    > >
    > > <CanGrow>true</CanGrow>
    > >
    > > <Value>="Generic report based on " & Parameters!Dimension.Value</Value>
    > >
    > > </Textbox>
    > >
    > > <Table Name="table1">
    > >
    > > <Height>1.90476cm</Height>
    > >
    > > <Style />
    > >
    > > <Header>
    > >
    > > <TableRows>
    > >
    > > <TableRow>
    > >
    > > <Height>0.63492cm</Height>
    > >
    > > <TableCells>
    > >
    > > <TableCell>
    > >
    > > <ReportItems>
    > >
    > > <Textbox Name="textbox1">
    > >
    > > <Style>
    > >
    > > <PaddingLeft>2pt</PaddingLeft>
    > >
    > > <BorderStyle>
    > >
    > > <Bottom>Solid</Bottom>
    > >
    > > <Top>Solid</Top>
    > >
    > > <Left>Solid</Left>
    > >
    > > </BorderStyle>
    > >
    > > <PaddingBottom>2pt</PaddingBottom>
    > >
    > > <PaddingTop>2pt</PaddingTop>
    > >
    > > <PaddingRight>2pt</PaddingRight>
    > >
    > > <FontWeight>700</FontWeight>
    > >
    > > </Style>
    > >
    > > <ZIndex>11</ZIndex>
    > >
    > > <rd:DefaultName>textbox1</rd:DefaultName>
    > >
    > > <CanGrow>true</CanGrow>
    > >
    > > <Value>= Parameters!Dimension.Value</Value>
    > >
    > > </Textbox>
    > >
    > > </ReportItems>
    > >
    > > </TableCell>
    > >
    > > <TableCell>
    > >
    > > <ReportItems>
    > >
    > > <Textbox Name="textbox2">
    > >
    > > <Style>
    > >
    > > <PaddingLeft>2pt</PaddingLeft>
    > >
    > > <BorderStyle>
    > >
    > > <Bottom>Solid</Bottom>
    > >
    > > <Top>Solid</Top>
    > >
    > > <Right>Solid</Right>
    > >
    > > </BorderStyle>
    > >
    > > <TextAlign>Right</TextAlign>
    > >
    > > <PaddingBottom>2pt</PaddingBottom>
    > >
    > > <PaddingTop>2pt</PaddingTop>
    > >
    > > <PaddingRight>2pt</PaddingRight>
    > >
    > > <FontWeight>700</FontWeight>
    > >
    > > </Style>
    > >
    > > <ZIndex>10</ZIndex>
    > >
    > > <rd:DefaultName>textbox2</rd:DefaultName>
    > >
    > > <CanGrow>true</CanGrow>
    > >
    > > <Value>Unit sales</Value>
    > >
    > > </Textbox>
    > >
    > > </ReportItems>
    > >
    > > </TableCell>
    > >
    > > <TableCell>
    > >
    > > <ReportItems>
    > >
    > > <Textbox Name="textbox3">
    > >
    > > <Style>
    > >
    > > <PaddingLeft>2pt</PaddingLeft>
    > >
    > > <BorderStyle>
    > >
    > > <Bottom>Solid</Bottom>
    > >
    > > <Top>Solid</Top>
    > >
    > > <Right>Solid</ight>
    > >
    > > </BorderStyle>
    > >
    > > <TextAlign>Right</TextAlign>
    > >
    > > <PaddingBottom>2pt</PaddingBottom>
    > >
    > > <PaddingTop>2pt</PaddingTop>
    > >
    > > <PaddingRight>2pt</PaddingRight>
    > >
    > > <FontWeight>700</FontWeight>
    > >
    > > </Style>
    > >
    > > <ZIndex>9</ZIndex>
    > >
    > > <rd:DefaultName>textbox3</rd:DefaultName>
    > >
    > > <CanGrow>true</CanGrow>
    > >
    > > <Value>Store Cost</Value>
    > >
    > > </Textbox>
    > >
    > > </ReportItems>
    > >
    > > </TableCell>
    > >
    > > <TableCell>
    > >
    > > <ReportItems>
    > >
    > > <Textbox Name="textbox10">
    > >
    > > <Style>
    > >|||problem was solved.
    First execute following query and design the report.
    with member [Measures].[MyMeasure] as '[Free Test].currentmember.name'
    member [Measures].[MyMeasure2] as '[Free Test].currentmember.Level.Ordinal'
    member [Measures].[MyMeasure3] as '[Free Test].currentmember.UniqueName'
    member [Measures].[MyMeasure4] as '[Measures].[Total Test Count]'
    select {[Measures].[MyMeasure], [Measures].[MyMeasure2],
    [Measures].[MyMeasure3], [Measures].[MyMeasure4]} on columns, {[Free
    Test].members} on
    rows from [OLAP Test Cube]
    and then Edit Dataset using (â?¦) button and paste Dynamic query on Query
    String Textbox and click ok.
    ="with member [Measures].[MyMeasure] as '" & Parameters!Dimension.Value &
    ".currentmember.name'
    member [Measures].[MyMeasure2] as '" & Parameters!Dimension.Value &
    ".currentmember.Level.Ordinal'
    member [Measures].[MyMeasure3] as '" & Parameters!Dimension.Value &
    ".currentmember.UniqueName'
    member [Measures].[MyMeasure4] as '[Measures].[Total Test Count]'
    select {[Measures].[MyMeasure], [Measures].[MyMeasure2],
    [Measures].[MyMeasure3], [Measures].[MyMeasure4]}
    on columns, {" & Parameters!Dimension.Value & ".members} on
    rows from [OLAP Test Cube]"
    Regards,
    Dinesh Patel
    "Dinesh Patel" wrote:
    > I am working with AS2005 and RS2005 I have created one report also. can you
    > please check this code.
    > I am trying to change query to below but giving error:
    > ="with member [Measures].[MyMeasure] as '" & Parameters!Dimension.Value &
    > ".currentmember.name'
    > member [Measures].[MyMeasure2] as '" & Parameters!Dimension.Value &
    > ".currentmember.Level.Ordinal'
    > member [Measures].[MyMeasure3] as '" & Parameters!Dimension.Value &
    > ".currentmember.UniqueName'
    > member [Measures].[MyMeasure4] as '[Measures].[Total Test Count]'
    > select {[Measures].[MyMeasure], [Measures].[MyMeasure2],
    > [Measures].[MyMeasure3],
    > [Measures].[MyMeasure4]}
    > on columns, {" & Parameters!Dimension.Value & ".members} on
    > rows from [OLAP Test Cube]"
    >
    > my report code is below:
    >
    > <?xml version="1.0" encoding="utf-8"?>
    > <Report
    > xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"
    > xmlns:rd="">http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    > <DataSources>
    > <DataSource Name="SLCTestDB">
    > <DataSourceReference>SLCTestDB</DataSourceReference>
    > <rd:DataSourceID>44e60797-bd99-4681-9499-7e848244229e</rd:DataSourceID>
    > </DataSource>
    > </DataSources>
    > <BottomMargin>1in</BottomMargin>
    > <RightMargin>1in</RightMargin>
    > <ReportParameters>
    > <ReportParameter Name="Dimension">
    > <DataType>String</DataType>
    > <DefaultValue>
    > <Values>
    > <Value>[Free Test]</Value>
    > </Values>
    > </DefaultValue>
    > <Prompt>Dimension</Prompt>
    > <ValidValues>
    > <ParameterValues>
    > <ParameterValue>
    > <Value>[Station Name]</Value>
    > <Label>station</Label>
    > </ParameterValue>
    > <ParameterValue>
    > <Value>[Free Test]</Value>
    > <Label>Free</Label>
    > </ParameterValue>
    > </ParameterValues>
    > </ValidValues>
    > </ReportParameter>
    > </ReportParameters>
    > <rd:DrawGrid>true</rd:DrawGrid>
    > <InteractiveWidth>8.5in</InteractiveWidth>
    > <rd:SnapToGrid>true</rd:SnapToGrid>
    > <Body>
    > <ReportItems>
    > <Textbox Name="textbox1">
    > <rd:DefaultName>textbox1</rd:DefaultName>
    > <ZIndex>1</ZIndex>
    > <Style>
    > <PaddingLeft>2pt</PaddingLeft>
    > <PaddingBottom>2pt</PaddingBottom>
    > <FontFamily>Tahoma</FontFamily>
    > <FontWeight>700</FontWeight>
    > <FontSize>20pt</FontSize>
    > <Color>SteelBlue</Color>
    > <PaddingRight>2pt</PaddingRight>
    > <PaddingTop>2pt</PaddingTop>
    > </Style>
    > <CanGrow>true</CanGrow>
    > <Height>0.36in</Height>
    > <Value>Report3</Value>
    > </Textbox>
    > <Table Name="table1">
    > <DataSetName>SLCTestDB</DataSetName>
    > <Top>0.36in</Top>
    > <TableGroups>
    > <TableGroup>
    > <Header>
    > <TableRows>
    > <TableRow>
    > <TableCells>
    > <TableCell>
    > <ReportItems>
    > <Textbox Name="MyMeasure">
    > <rd:DefaultName>MyMeasure</rd:DefaultName>
    > <ZIndex>3</ZIndex>
    > <Style>
    > <BorderStyle>
    > <Default>Solid</Default>
    > </BorderStyle>
    > <PaddingLeft>2pt</PaddingLeft>
    > <PaddingBottom>2pt</PaddingBottom>
    > <FontFamily>Tahoma</FontFamily>
    > <FontWeight>700</FontWeight>
    > <BorderColor>
    > <Default>LightGrey</Default>
    > </BorderColor>
    > <BackgroundColor>#6e9eca</BackgroundColor>
    > <Color>White</Color>
    > <PaddingRight>2pt</PaddingRight>
    > <PaddingTop>2pt</PaddingTop>
    > </Style>
    > <CanGrow>true</CanGrow>
    > <Value>=Fields!MyMeasure.Value</Value>
    > </Textbox>
    > </ReportItems>
    > </TableCell>
    > <TableCell>
    > <ReportItems>
    > <Textbox Name="textbox5">
    > <rd:DefaultName>textbox5</rd:DefaultName>
    > <ZIndex>2</ZIndex>
    > <Style>
    > <BorderStyle>
    > <Default>Solid</Default>
    > </BorderStyle>
    > <PaddingLeft>2pt</PaddingLeft>
    > <PaddingBottom>2pt</PaddingBottom>
    > <FontFamily>Tahoma</FontFamily>
    > <FontWeight>700</FontWeight>
    > <BorderColor>
    > <Default>LightGrey</Default>
    > </BorderColor>
    > <BackgroundColor>#6e9eca</BackgroundColor>
    > <Color>White</Color>
    > <PaddingRight>2pt</PaddingRight>
    > <PaddingTop>2pt</PaddingTop>
    > </Style>
    > <CanGrow>true</CanGrow>
    > <Value>
    > </Value>
    > </Textbox>
    > </ReportItems>
    > </TableCell>
    > </TableCells>
    > <Height>0.21in</Height>
    > </TableRow>
    > </TableRows>
    > </Header>
    > <Sorting>
    > <SortBy>
    > <SortExpression>=Fields!MyMeasure.Value</SortExpression>
    > <Direction>Ascending</Direction>
    > </SortBy>
    > </Sorting>
    > <Grouping Name="table1_MyMeasure">
    > <GroupExpressions>
    > <GroupExpression>=Fields!MyMeasure.Value</GroupExpression>
    > </GroupExpressions>
    > </Grouping>
    > </TableGroup>
    > </TableGroups>
    > <Width>4.5in</Width>
    > <Details>
    > <TableRows>
    > <TableRow>
    > <TableCells>
    > <TableCell>
    > <ReportItems>
    > <Textbox Name="textbox3">
    > <rd:DefaultName>textbox3</rd:DefaultName>
    > <ZIndex>1</ZIndex>
    > <Style>
    > <BorderStyle>
    > <Default>Solid</Default>
    > </BorderStyle>
    > <PaddingLeft>2pt</PaddingLeft>
    > <PaddingBottom>2pt</PaddingBottom>
    > <FontFamily>Tahoma</FontFamily>
    > <BorderColor>
    > <Default>LightGrey</Default>
    > </BorderColor>
    > <PaddingRight>2pt</PaddingRight>
    > <PaddingTop>2pt</PaddingTop>
    > </Style>
    > <CanGrow>true</CanGrow>
    > <Value>
    > </Value>
    > </Textbox>
    > </ReportItems>
    > </TableCell>
    > <TableCell>
    > <ReportItems>
    > <Textbox Name="MyMeasure4">
    > <rd:DefaultName>MyMeasure4</rd:DefaultName>
    > <Style>
    > <BorderStyle>
    > <Default>Solid</Default>
    > </BorderStyle>
    > <PaddingLeft>2pt</PaddingLeft>
    > <PaddingBottom>2pt</PaddingBottom>
    > <FontFamily>Tahoma</FontFamily>
    > <BorderColor>
    > <Default>LightGrey</Default>
    > </BorderColor>
    > <PaddingRight>2pt</PaddingRight>
    > <PaddingTop>2pt</PaddingTop>
    > </Style>
    > <CanGrow>true</CanGrow>
    > <Value>=Fields!MyMeasure4.Value</Value>
    > </Textbox>
    > </ReportItems>
    > </TableCell>
    > </TableCells>
    > <Height>0.21in</Height>
    > </TableRow>
    > </TableRows>
    > </Details>
    > <Header>
    > <TableRows>
    > <TableRow>
    > <TableCells>
    > <TableCell>
    > <ReportItems>
    > <Textbox Name="textbox2">
    > <rd:DefaultName>textbox2</rd:DefaultName>
    > <ZIndex>5</ZIndex>
    > <Style>
    > <BorderStyle>
    > <Default>Solid</Default>
    > </BorderStyle>
    > <TextAlign>Right</TextAlign>
    > <PaddingLeft>2pt</PaddingLeft>
    > <PaddingBottom>2pt</PaddingBottom>
    > <FontFamily>Tahoma</FontFamily>
    > <FontWeight>700</FontWeight>
    > <FontSize>11pt</FontSize>
    > <BorderColor>
    > <Default>LightGrey</Default>
    > </BorderColor>
    > <BackgroundColor>SteelBlue</BackgroundColor>
    > <Color>White</Color>
    > <PaddingRight>2pt</PaddingRight>
    > <PaddingTop>2pt</PaddingTop>
    > </Style>
    > <CanGrow>true</CanGrow>
    > <Value>My Measure</Value>
    > </Textbox>
    > </ReportItems>
    > </TableCell>
    > <TableCell>
    > <ReportItems>
    > <Textbox Name="textbox4">
    > <rd:DefaultName>textbox4</rd:DefaultName>
    > <ZIndex>4</ZIndex>
    > <Style>
    > <BorderStyle>
    > <Default>Solid</Default>
    > </BorderStyle>
    > <TextAlign>Right</TextAlign>
    > <PaddingLeft>2pt</PaddingLeft>
    > <PaddingBottom>2pt</PaddingBottom>
    > <FontFamily>Tahoma</FontFamily>
    > <FontWeight>700</FontWeight>
    > <FontSize>11pt</FontSize>
    > <BorderColor>
    > <Default>LightGrey</Default>
    > </BorderColor>
    > <BackgroundColor>SteelBlue</BackgroundColor>
    > <Color>White</Color>
    > <PaddingRight>2pt</PaddingRight>
    > <PaddingTop>2pt</PaddingTop>
    > </Style>
    > <CanGrow>true</CanGrow>
    > <Value>My Measure4</Value>
    > </Textbox>
    > </ReportItems>
    > </TableCell>
    > </TableCells>
    > <Height>0.22in</Height>
    > </TableRow>
    > </TableRows>
    > <RepeatOnNewPage>true</RepeatOnNewPage>
    > </Header>
    > <TableColumns>
    > <TableColumn>
    > <Width>2.875in</Width>
    > </TableColumn>
    > <TableColumn>
    > <Width>1.625in</Width>
    > </TableColumn>
    > </TableColumns>
    > </Table>
    > </ReportItems>
    > <Height>1in</Height>
    > </Body>
    > <rd:ReportID>be7b0e20-a01a-40a4-8c2a-23748db01c34</rd:ReportID>
    > <LeftMargin>1in</LeftMargin>
    > <DataSets>
    > <DataSet Name="SLCTestDB">
    > <Query>|||I'm sorry I haven't replied to this earlier, but I'm happy you've solved it.
    I guess I was assuming you knew you had to use a non dynamic query to build
    the fields correctly. I'll remember to add this if I give advice on dynamic
    mdx again.
    Kaisa M. Lindahl Lervik
    "Dinesh Patel" <DineshPatel@.discussions.microsoft.com> wrote in message
    news:D1FC2757-F590-4881-924C-D01BE05F454F@.microsoft.com...
    > problem was solved.
    > First execute following query and design the report.
    > with member [Measures].[MyMeasure] as '[Free Test].currentmember.name'
    > member [Measures].[MyMeasure2] as '[Free
    > Test].currentmember.Level.Ordinal'
    > member [Measures].[MyMeasure3] as '[Free Test].currentmember.UniqueName'
    > member [Measures].[MyMeasure4] as '[Measures].[Total Test Count]'
    > select {[Measures].[MyMeasure], [Measures].[MyMeasure2],
    > [Measures].[MyMeasure3], [Measures].[MyMeasure4]} on columns, {[Free
    > Test].members} on
    > rows from [OLAP Test Cube]
    > and then Edit Dataset using (.) button and paste Dynamic query on Query
    > String Textbox and click ok.
    > ="with member [Measures].[MyMeasure] as '" & Parameters!Dimension.Value &
    > ".currentmember.name'
    > member [Measures].[MyMeasure2] as '" & Parameters!Dimension.Value &
    > ".currentmember.Level.Ordinal'
    > member [Measures].[MyMeasure3] as '" & Parameters!Dimension.Value &
    > ".currentmember.UniqueName'
    > member [Measures].[MyMeasure4] as '[Measures].[Total Test Count]'
    > select {[Measures].[MyMeasure], [Measures].[MyMeasure2],
    > [Measures].[MyMeasure3], [Measures].[MyMeasure4]}
    > on columns, {" & Parameters!Dimension.Value & ".members} on
    > rows from [OLAP Test Cube]"
    > Regards,
    > Dinesh Patel
    >
    > "Dinesh Patel" wrote:
    >> I am working with AS2005 and RS2005 I have created one report also. can
    >> you
    >> please check this code.
    >> I am trying to change query to below but giving error:
    >> ="with member [Measures].[MyMeasure] as '" & Parameters!Dimension.Value &
    >> ".currentmember.name'
    >> member [Measures].[MyMeasure2] as '" & Parameters!Dimension.Value &
    >> ".currentmember.Level.Ordinal'
    >> member [Measures].[MyMeasure3] as '" & Parameters!Dimension.Value &
    >> ".currentmember.UniqueName'
    >> member [Measures].[MyMeasure4] as '[Measures].[Total Test Count]'
    >> select {[Measures].[MyMeasure], [Measures].[MyMeasure2],
    >> [Measures].[MyMeasure3],
    >> [Measures].[MyMeasure4]}
    >> on columns, {" & Parameters!Dimension.Value & ".members} on
    >> rows from [OLAP Test Cube]"
    >>
    >> my report code is below:
    >>
    >> <?xml version="1.0" encoding="utf-8"?>
    >> <Report
    >> xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"
    >> xmlns:rd="">http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    >> <DataSources>
    >> <DataSource Name="SLCTestDB">
    >> <DataSourceReference>SLCTestDB</DataSourceReference>
    >> <rd:DataSourceID>44e60797-bd99-4681-9499-7e848244229e</rd:DataSourceID>
    >> </DataSource>
    >> </DataSources>
    >> <BottomMargin>1in</BottomMargin>
    >> <RightMargin>1in</RightMargin>
    >> <ReportParameters>
    >> <ReportParameter Name="Dimension">
    >> <DataType>String</DataType>
    >> <DefaultValue>
    >> <Values>
    >> <Value>[Free Test]</Value>
    >> </Values>
    >> </DefaultValue>
    >> <Prompt>Dimension</Prompt>
    >> <ValidValues>
    >> <ParameterValues>
    >> <ParameterValue>
    >> <Value>[Station Name]</Value>
    >> <Label>station</Label>
    >> </ParameterValue>
    >> <ParameterValue>
    >> <Value>[Free Test]</Value>
    >> <Label>Free</Label>
    >> </ParameterValue>
    >> </ParameterValues>
    >> </ValidValues>
    >> </ReportParameter>
    >> </ReportParameters>
    >> <rd:DrawGrid>true</rd:DrawGrid>
    >> <InteractiveWidth>8.5in</InteractiveWidth>
    >> <rd:SnapToGrid>true</rd:SnapToGrid>
    >> <Body>
    >> <ReportItems>
    >> <Textbox Name="textbox1">
    >> <rd:DefaultName>textbox1</rd:DefaultName>
    >> <ZIndex>1</ZIndex>
    >> <Style>
    >> <PaddingLeft>2pt</PaddingLeft>
    >> <PaddingBottom>2pt</PaddingBottom>
    >> <FontFamily>Tahoma</FontFamily>
    >> <FontWeight>700</FontWeight>
    >> <FontSize>20pt</FontSize>
    >> <Color>SteelBlue</Color>
    >> <PaddingRight>2pt</PaddingRight>
    >> <PaddingTop>2pt</PaddingTop>
    >> </Style>
    >> <CanGrow>true</CanGrow>
    >> <Height>0.36in</Height>
    >> <Value>Report3</Value>
    >> </Textbox>
    >> <Table Name="table1">
    >> <DataSetName>SLCTestDB</DataSetName>
    >> <Top>0.36in</Top>
    >> <TableGroups>
    >> <TableGroup>
    >> <Header>
    >> <TableRows>
    >> <TableRow>
    >> <TableCells>
    >> <TableCell>
    >> <ReportItems>
    >> <Textbox Name="MyMeasure">
    >> <rd:DefaultName>MyMeasure</rd:DefaultName>
    >> <ZIndex>3</ZIndex>
    >> <Style>
    >> <BorderStyle>
    >> <Default>Solid</Default>
    >> </BorderStyle>
    >> <PaddingLeft>2pt</PaddingLeft>
    >> <PaddingBottom>2pt</PaddingBottom>
    >> <FontFamily>Tahoma</FontFamily>
    >> <FontWeight>700</FontWeight>
    >> <BorderColor>
    >> <Default>LightGrey</Default>
    >> </BorderColor>
    >> <BackgroundColor>#6e9eca</BackgroundColor>
    >> <Color>White</Color>
    >> <PaddingRight>2pt</PaddingRight>
    >> <PaddingTop>2pt</PaddingTop>
    >> </Style>
    >> <CanGrow>true</CanGrow>
    >> <Value>=Fields!MyMeasure.Value</Value>
    >> </Textbox>
    >> </ReportItems>
    >> </TableCell>
    >> <TableCell>
    >> <ReportItems>
    >> <Textbox Name="textbox5">
    >> <rd:DefaultName>textbox5</rd:DefaultName>
    >> <ZIndex>2</ZIndex>
    >> <Style>
    >> <BorderStyle>
    >> <Default>Solid</Default>
    >> </BorderStyle>
    >> <PaddingLeft>2pt</PaddingLeft>
    >> <PaddingBottom>2pt</PaddingBottom>
    >> <FontFamily>Tahoma</FontFamily>
    >> <FontWeight>700</FontWeight>
    >> <BorderColor>
    >> <Default>LightGrey</Default>
    >> </BorderColor>
    >> <BackgroundColor>#6e9eca</BackgroundColor>
    >> <Color>White</Color>
    >> <PaddingRight>2pt</PaddingRight>
    >> <PaddingTop>2pt</PaddingTop>
    >> </Style>
    >> <CanGrow>true</CanGrow>
    >> <Value>
    >> </Value>
    >> </Textbox>
    >> </ReportItems>
    >> </TableCell>
    >> </TableCells>
    >> <Height>0.21in</Height>
    >> </TableRow>
    >> </TableRows>
    >> </Header>
    >> <Sorting>
    >> <SortBy>
    >> <SortExpression>=Fields!MyMeasure.Value</SortExpression>
    >> <Direction>Ascending</Direction>
    >> </SortBy>
    >> </Sorting>
    >> <Grouping Name="table1_MyMeasure">
    >> <GroupExpressions>
    >> <GroupExpression>=Fields!MyMeasure.Value</GroupExpression>
    >> </GroupExpressions>
    >> </Grouping>
    >> </TableGroup>
    >> </TableGroups>
    >> <Width>4.5in</Width>
    >> <Details>
    >> <TableRows>
    >> <TableRow>
    >> <TableCells>
    >> <TableCell>
    >> <ReportItems>
    >> <Textbox Name="textbox3">
    >> <rd:DefaultName>textbox3</rd:DefaultName>
    >> <ZIndex>1</ZIndex>
    >> <Style>
    >> <BorderStyle>
    >> <Default>Solid</Default>
    >> </BorderStyle>
    >> <PaddingLeft>2pt</PaddingLeft>
    >> <PaddingBottom>2pt</PaddingBottom>
    >> <FontFamily>Tahoma</FontFamily>
    >> <BorderColor>
    >> <Default>LightGrey</Default>
    >> </BorderColor>
    >> <PaddingRight>2pt</PaddingRight>
    >> <PaddingTop>2pt</PaddingTop>
    >> </Style>
    >> <CanGrow>true</CanGrow>
    >> <Value>
    >> </Value>
    >> </Textbox>
    >> </ReportItems>
    >> </TableCell>
    >> <TableCell>
    >> <ReportItems>
    >> <Textbox Name="MyMeasure4">
    >> <rd:DefaultName>MyMeasure4</rd:DefaultName>
    >> <Style>
    >> <BorderStyle>
    >> <Default>Solid</Default>
    >> </BorderStyle>
    >> <PaddingLeft>2pt</PaddingLeft>
    >> <PaddingBottom>2pt</PaddingBottom>
    >> <FontFamily>Tahoma</FontFamily>
    >> <BorderColor>
    >> <Default>LightGrey</Default>
    >> </BorderColor>
    >> <PaddingRight>2pt</PaddingRight>
    >> <PaddingTop>2pt</PaddingTop>
    >> </Style>
    >> <CanGrow>true</CanGrow>
    >> <Value>=Fields!MyMeasure4.Value</Value>
    >> </Textbox>
    >> </ReportItems>
    >> </TableCell>
    >> </TableCells>
    >> <Height>0.21in</Height>
    >> </TableRow>
    >> </TableRows>
    >> </Details>
    >> <Header>
    >> <TableRows>
    >> <TableRow>
    >> <TableCells>
    >> <TableCell>
    >> <ReportItems>
    >> <Textbox Name="textbox2">
    >> <rd:DefaultName>textbox2</rd:DefaultName>
    >> <ZIndex>5</ZIndex>
    >> <Style>
    >> <BorderStyle>
    >> <Default>Solid</Default>
    >> </BorderStyle>
    >> <TextAlign>Right</TextAlign>
    >> <PaddingLeft>2pt</PaddingLeft>
    >> <PaddingBottom>2pt</PaddingBottom>
    >> <FontFamily>Tahoma</FontFamily>
    >> <FontWeight>700</FontWeight>
    >> <FontSize>11pt</FontSize>
    >> <BorderColor>
    >> <Default>LightGrey</Default>
    >> </BorderColor>
    >> <BackgroundColor>SteelBlue</BackgroundColor>
    >> <Color>White</Color>
    >> <PaddingRight>2pt</PaddingRight>
    >> <PaddingTop>2pt</PaddingTop>
    >> </Style>
    >> <CanGrow>true</CanGrow>
    >> <Value>My Measure</Value>
    >> </Textbox>
    >> </ReportItems>
    >> </TableCell>
    >> <TableCell>
    >> <ReportItems>
    >> <Textbox Name="textbox4">
    >> <rd:DefaultName>textbox4</rd:DefaultName>
    >> <ZIndex>4</ZIndex>
    >> <Style>
    >> <BorderStyle>
    >> <Default>Solid</Default>
    >> </BorderStyle>
    >> <TextAlign>Right</TextAlign>
    >> <PaddingLeft>2pt</PaddingLeft>
    >> <PaddingBottom>2pt</PaddingBottom>
    >> <FontFamily>Tahoma</FontFamily>
    >> <FontWeight>700</FontWeight>
    >> <FontSize>11pt</FontSize>
    >> <BorderColor>
    >> <Default>LightGrey</Default>
    >> </BorderColor>
    >> <BackgroundColor>SteelBlue</BackgroundColor>
    >> <Color>White</Color>
    >> <PaddingRight>2pt</PaddingRight>
    >> <PaddingTop>2pt</PaddingTop>
    >> </Style>
    >> <CanGrow>true</CanGrow>
    >> <Value>My Measure4</Value>
    >> </Textbox>
    >> </ReportItems>
    >> </TableCell>
    >> </TableCells>
    >> <Height>0.22in</Height>
    >> </TableRow>
    >> </TableRows>
    >> <RepeatOnNewPage>true</RepeatOnNewPage>
    >> </Header>
    >> <TableColumns>
    >> <TableColumn>
    >> <Width>2.875in</Width>
    >> </TableColumn>
    >> <TableColumn>
    >> <Width>1.625in</Width>
    >> </TableColumn>
    >> </TableColumns>
    >> </Table>
    >> </ReportItems>
    >> <Height>1in</Height>
    >> </Body>
    >> <rd:ReportID>be7b0e20-a01a-40a4-8c2a-23748db01c34</rd:ReportID>
    >> <LeftMargin>1in</LeftMargin>
    >> <DataSets>
    >> <DataSet Name="SLCTestDB">
    >> <Query>|||I am not expert, i received this solution from net.
    Dinesh Patel
    "Kaisa M. Lindahl Lervik" wrote:
    > I'm sorry I haven't replied to this earlier, but I'm happy you've solved it.
    > I guess I was assuming you knew you had to use a non dynamic query to build
    > the fields correctly. I'll remember to add this if I give advice on dynamic
    > mdx again.
    > Kaisa M. Lindahl Lervik
    >
    > "Dinesh Patel" <DineshPatel@.discussions.microsoft.com> wrote in message
    > news:D1FC2757-F590-4881-924C-D01BE05F454F@.microsoft.com...
    > > problem was solved.
    > >
    > > First execute following query and design the report.
    > >
    > > with member [Measures].[MyMeasure] as '[Free Test].currentmember.name'
    > > member [Measures].[MyMeasure2] as '[Free
    > > Test].currentmember.Level.Ordinal'
    > > member [Measures].[MyMeasure3] as '[Free Test].currentmember.UniqueName'
    > > member [Measures].[MyMeasure4] as '[Measures].[Total Test Count]'
    > > select {[Measures].[MyMeasure], [Measures].[MyMeasure2],
    > > [Measures].[MyMeasure3], [Measures].[MyMeasure4]} on columns, {[Free
    > > Test].members} on
    > > rows from [OLAP Test Cube]
    > >
    > > and then Edit Dataset using (.) button and paste Dynamic query on Query
    > > String Textbox and click ok.
    > >
    > > ="with member [Measures].[MyMeasure] as '" & Parameters!Dimension.Value &
    > > ".currentmember.name'
    > >
    > > member [Measures].[MyMeasure2] as '" & Parameters!Dimension.Value &
    > > ".currentmember.Level.Ordinal'
    > > member [Measures].[MyMeasure3] as '" & Parameters!Dimension.Value &
    > > ".currentmember.UniqueName'
    > > member [Measures].[MyMeasure4] as '[Measures].[Total Test Count]'
    > > select {[Measures].[MyMeasure], [Measures].[MyMeasure2],
    > > [Measures].[MyMeasure3], [Measures].[MyMeasure4]}
    > > on columns, {" & Parameters!Dimension.Value & ".members} on
    > > rows from [OLAP Test Cube]"
    > >
    > > Regards,
    > > Dinesh Patel
    > >
    > >
    > > "Dinesh Patel" wrote:
    > >
    > >> I am working with AS2005 and RS2005 I have created one report also. can
    > >> you
    > >> please check this code.
    > >>
    > >> I am trying to change query to below but giving error:
    > >>
    > >> ="with member [Measures].[MyMeasure] as '" & Parameters!Dimension.Value &
    > >> ".currentmember.name'
    > >> member [Measures].[MyMeasure2] as '" & Parameters!Dimension.Value &
    > >> ".currentmember.Level.Ordinal'
    > >> member [Measures].[MyMeasure3] as '" & Parameters!Dimension.Value &
    > >> ".currentmember.UniqueName'
    > >> member [Measures].[MyMeasure4] as '[Measures].[Total Test Count]'
    > >>
    > >> select {[Measures].[MyMeasure], [Measures].[MyMeasure2],
    > >> [Measures].[MyMeasure3],
    > >> [Measures].[MyMeasure4]}
    > >> on columns, {" & Parameters!Dimension.Value & ".members} on
    > >> rows from [OLAP Test Cube]"
    > >>
    > >>
    > >>
    > >> my report code is below:
    > >>
    > >>
    > >> <?xml version="1.0" encoding="utf-8"?>
    > >> <Report
    > >> xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"
    > >> xmlns:rd="">http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    > >> <DataSources>
    > >> <DataSource Name="SLCTestDB">
    > >> <DataSourceReference>SLCTestDB</DataSourceReference>
    > >>
    > >> <rd:DataSourceID>44e60797-bd99-4681-9499-7e848244229e</rd:DataSourceID>
    > >> </DataSource>
    > >> </DataSources>
    > >> <BottomMargin>1in</BottomMargin>
    > >> <RightMargin>1in</RightMargin>
    > >> <ReportParameters>
    > >> <ReportParameter Name="Dimension">
    > >> <DataType>String</DataType>
    > >> <DefaultValue>
    > >> <Values>
    > >> <Value>[Free Test]</Value>
    > >> </Values>
    > >> </DefaultValue>
    > >> <Prompt>Dimension</Prompt>
    > >> <ValidValues>
    > >> <ParameterValues>
    > >> <ParameterValue>
    > >> <Value>[Station Name]</Value>
    > >> <Label>station</Label>
    > >> </ParameterValue>
    > >> <ParameterValue>
    > >> <Value>[Free Test]</Value>
    > >> <Label>Free</Label>
    > >> </ParameterValue>
    > >> </ParameterValues>
    > >> </ValidValues>
    > >> </ReportParameter>
    > >> </ReportParameters>
    > >> <rd:DrawGrid>true</rd:DrawGrid>
    > >> <InteractiveWidth>8.5in</InteractiveWidth>
    > >> <rd:SnapToGrid>true</rd:SnapToGrid>
    > >> <Body>
    > >> <ReportItems>
    > >> <Textbox Name="textbox1">
    > >> <rd:DefaultName>textbox1</rd:DefaultName>
    > >> <ZIndex>1</ZIndex>
    > >> <Style>
    > >> <PaddingLeft>2pt</PaddingLeft>
    > >> <PaddingBottom>2pt</PaddingBottom>
    > >> <FontFamily>Tahoma</FontFamily>
    > >> <FontWeight>700</FontWeight>
    > >> <FontSize>20pt</FontSize>
    > >> <Color>SteelBlue</Color>
    > >> <PaddingRight>2pt</PaddingRight>
    > >> <PaddingTop>2pt</PaddingTop>
    > >> </Style>
    > >> <CanGrow>true</CanGrow>
    > >> <Height>0.36in</Height>
    > >> <Value>Report3</Value>
    > >> </Textbox>
    > >> <Table Name="table1">
    > >> <DataSetName>SLCTestDB</DataSetName>
    > >> <Top>0.36in</Top>
    > >> <TableGroups>
    > >> <TableGroup>
    > >> <Header>
    > >> <TableRows>
    > >> <TableRow>
    > >> <TableCells>
    > >> <TableCell>
    > >> <ReportItems>
    > >> <Textbox Name="MyMeasure">
    > >> <rd:DefaultName>MyMeasure</rd:DefaultName>
    > >> <ZIndex>3</ZIndex>
    > >> <Style>
    > >> <BorderStyle>
    > >> <Default>Solid</Default>
    > >> </BorderStyle>
    > >> <PaddingLeft>2pt</PaddingLeft>
    > >> <PaddingBottom>2pt</PaddingBottom>
    > >> <FontFamily>Tahoma</FontFamily>
    > >> <FontWeight>700</FontWeight>
    > >> <BorderColor>
    > >> <Default>LightGrey</Default>
    > >> </BorderColor>
    > >> <BackgroundColor>#6e9eca</BackgroundColor>
    > >> <Color>White</Color>
    > >> <PaddingRight>2pt</PaddingRight>
    > >> <PaddingTop>2pt</PaddingTop>
    > >> </Style>
    > >> <CanGrow>true</CanGrow>
    > >> <Value>=Fields!MyMeasure.Value</Value>
    > >> </Textbox>
    > >> </ReportItems>
    > >> </TableCell>
    > >> <TableCell>
    > >> <ReportItems>
    > >> <Textbox Name="textbox5">
    > >> <rd:DefaultName>textbox5</rd:DefaultName>
    > >> <ZIndex>2</ZIndex>
    > >> <Style>
    > >> <BorderStyle>
    > >> <Default>Solid</Default>
    > >> </BorderStyle>
    > >> <PaddingLeft>2pt</PaddingLeft>
    > >> <PaddingBottom>2pt</PaddingBottom>
    > >> <FontFamily>Tahoma</FontFamily>
    > >> <FontWeight>700</FontWeight>
    > >> <BorderColor>
    > >> <Default>LightGrey</Default>
    > >> </BorderColor>
    > >> <BackgroundColor>#6e9eca</BackgroundColor>
    > >> <Color>White</Color>
    > >> <PaddingRight>2pt</PaddingRight>
    > >> <PaddingTop>2pt</PaddingTop>
    > >> </Style>
    > >> <CanGrow>true</CanGrow>
    > >> <Value>
    > >> </Value>
    > >> </Textbox>
    > >> </ReportItems>
    > >> </TableCell>
    > >> </TableCells>
    > >> <Height>0.21in</Height>
    > >> </TableRow>
    > >> </TableRows>
    > >> </Header>
    > >> <Sorting>
    > >> <SortBy>
    > >> <SortExpression>=Fields!MyMeasure.Value</SortExpression>
    > >> <Direction>Ascending</Direction>
    > >> </SortBy>
    > >> </Sorting>
    > >> <Grouping Name="table1_MyMeasure">
    > >> <GroupExpressions>
    > >>
    > >> <GroupExpression>=Fields!MyMeasure.Value</GroupExpression>
    > >> </GroupExpressions>
    > >> </Grouping>
    > >> </TableGroup>
    > >> </TableGroups>
    > >> <Width>4.5in</Width>
    > >> <Details>
    > >> <TableRows>
    > >> <TableRow>
    > >> <TableCells>
    > >> <TableCell>
    > >> <ReportItems>
    > >> <Textbox Name="textbox3">
    > >> <rd:DefaultName>textbox3</rd:DefaultName>
    > >> <ZIndex>1</ZIndex>
    > >> <Style>
    > >> <BorderStyle>
    > >> <Default>Solid</Default>
    > >> </BorderStyle>
    > >> <PaddingLeft>2pt</PaddingLeft>
    > >> <PaddingBottom>2pt</PaddingBottom>
    > >> <FontFamily>Tahoma</FontFamily>
    > >> <BorderColor>
    > >> <Default>LightGrey</Default>
    > >> </BorderColor>
    > >> <PaddingRight>2pt</PaddingRight>
    > >> <PaddingTop>2pt</PaddingTop>
    > >> </Style>
    > >> <CanGrow>true</CanGrow>
    > >> <Value>
    > >> </Value>
    > >> </Textbox>
    > >> </ReportItems>
    > >> </TableCell>
    > >> <TableCell>
    > >> <ReportItems>
    > >> <Textbox Name="MyMeasure4">
    > >> <rd:DefaultName>MyMeasure4</rd:DefaultName>
    > >> <Style>
    > >> <BorderStyle>
    > >> <Default>Solid</Default>
    > >> </BorderStyle>
    > >> <PaddingLeft>2pt</PaddingLeft>
    > >> <PaddingBottom>2pt</PaddingBottom>
    > >> <FontFamily>Tahoma</FontFamily>
    > >> <BorderColor>
    > >> <Default>LightGrey</Default>
    > >> </BorderColor>
    > >> <PaddingRight>2pt</PaddingRight>
    > >> <PaddingTop>2pt</PaddingTop>
    > >> </Style>
    > >> <CanGrow>true</CanGrow>
    > >> <Value>=Fields!MyMeasure4.Value</Value>
    > >> </Textbox>
    > >> </ReportItems>
    > >> </TableCell>
    > >> </TableCells>
    > >> <Height>0.21in</Height>
    > >> </TableRow>
    > >> </TableRows>
    > >> </Details>
    > >> <Header>
    > >> <TableRows>
    > >> <TableRow>
    > >> <TableCells>
    > >> <TableCell>
    > >> <ReportItems>
    > >> <Textbox Name="textbox2">
    > >> <rd:DefaultName>textbox2</rd:DefaultName>
    > >> <ZIndex>5</ZIndex>
    > >> <Style>
    > >> <BorderStyle>
    > >> <Default>Solid</Default>
    > >> </BorderStyle>
    > >> <TextAlign>Right</TextAlign>
    > >> <PaddingLeft>2pt</PaddingLeft>
    > >> <PaddingBottom>2pt</PaddingBottom>
    > >> <FontFamily>Tahoma</FontFamily>
    > >> <FontWeight>700</FontWeight>
    > >> <FontSize>11pt</FontSize>
    > >> <BorderColor>
    > >> <Default>LightGrey</Default>
    > >> </BorderColor>
    > >> <BackgroundColor>SteelBlue</BackgroundColor>
    > >> <Color>White</Color>
    > >> <PaddingRight>2pt</PaddingRight>
    > >> <PaddingTop>2pt</PaddingTop>
    > >> </Style>
    > >> <CanGrow>true</CanGrow>
    > >> <Value>My Measure</Value>
    > >> </Textbox>
    > >> </ReportItems>
    > >> </TableCell>
    > >> <TableCell>