Showing posts with label services. Show all posts
Showing posts with label services. Show all posts

Thursday, March 22, 2012

(Basic?) User-defined hierachy question

Hi Everyone,

I'm pretty new to developing with analysis services & OLAP, but was hoping someone here could point me in the right direction.

I have two dimension tables (Department, Employee), and one fact table (TelephoneCalls). Using a star schema, the two dimension tables are joined by their PK fields through the Fact table.

I'm wanting to drill down through the hierachies set up in Department, but also having the Employee branches populated at the right nodes. (ie a department may have a number of sub-departments, and also employees associated with it).

Based on this information, does anyone know how I could achieve this?

Much Appreciated,

Andrew

Is an employee associated with one and only one department when a telephone call occurs? If so, you may want to have a single dimension table for employee that associates the employee with a department. Otherwise, SSAS 2005 does not support cross-dimensional hierarchies. That said, you might find an interface that lets you structure something like this, and you can always do a cross-join of department and employee in MDX.

Hope that helps,
Bryan

|||

Unfortunately employee's have the freedom to jump around departments, so I can't make a single dimension table for it.

I'll try your suggestions to build it using MDX.

Thanks for your help.

Andrew

|||

"Jump around" as in "with each phone call" or just every few months or so? If it's the later, you might consider implementing a Type 2 slowly changing dimension.

B.

Tuesday, March 20, 2012

"Warning: Document contains one or more extremely long lines ..."

Hi,

i created a large Integration Services Package. When I start now the Project an open the Package, I get a Message

"Document contains one or more long lines of text. These lines will cause the editor to respond slowly when you open the file. Do you still want to open the file?"

What does this Message mean for me? Which mistake did I?

Thanks a lot

What was a bug prior to SP1. It is just a warning, so for the time being you can just ignore it. That should disappear from new created packages after you apply the latest SP

Here is another discussion about it:

http://forums.microsoft.com/MSDN/Search/Search.aspx?words=Warning%3A+Document+contains++extremely+&searchKey=&lcid=1033&searchscope=forumscope&siteid=1&ForumID=80&ForumGroupID=-1

sql

Monday, March 19, 2012

"service unavailable" error message

I recently changed the service account for the SSRS service, after which I restarted IIS & reporting services.

Now, I get an error message that says "Service Unavailable" whenever i try to load up http://localhost/Reports

Event viewer looks clean...what's wrong?After lots of playing around, I recreated the AppDomains for SSRS and it seemed to fix the problem..

Friday, March 16, 2012

"Remote access to report data sources and/or the report server database" is not suppor

I'm using SQL Express with Advance Services & I get this error when I try to deploy my reports. Why do I get this error

  • An error has occurred during report processing. (rsProcessingAborted)
  • Cannot create a connection to data source 'EDPSYS'. (rsErrorOpeningConnection)
  • The feature: "Remote access to report data sources and/or the report server database" is not supported in this edition of Reporting Services. (rsOperationNotSupported)

    Justin Song

    SQL Express does not allow access to data sources not on the local machine. You will need to point to local data in your report.|||

    I'm new user of Reporting Services. I'm trying use Samples (AdventureWorks) and can't use it because this error. How do I point to local data in this samples? I create a Data Source named AdventureWorks with this string:

    data source="(local)";persist security info=False;initial catalog=AdventureWorks

    but is not working...

    |||

    I've seen this problem before. The way I solved it previously was to update the connectionstring from an old-style ADO format to the new SQL 2005 format.

    Old:

    data source=(local);persist security info=False;initial catalog=AdventureWorks

    New:

    Server=(local); Database=AdventureWorks; Trusted_Connection=yes;

    Hope this helps. Mark

  • "Remote access to report data sources and/or the report server database" is not suppor

    I'm using SQL Express with Advance Services & I get this error when I try to deploy my reports. Why do I get this error

  • An error has occurred during report processing. (rsProcessingAborted)
  • Cannot create a connection to data source 'EDPSYS'. (rsErrorOpeningConnection)
  • The feature: "Remote access to report data sources and/or the report server database" is not supported in this edition of Reporting Services. (rsOperationNotSupported)

    Justin Song

    SQL Express does not allow access to data sources not on the local machine. You will need to point to local data in your report.|||

    I'm new user of Reporting Services. I'm trying use Samples (AdventureWorks) and can't use it because this error. How do I point to local data in this samples? I create a Data Source named AdventureWorks with this string:

    data source="(local)";persist security info=False;initial catalog=AdventureWorks

    but is not working...

    |||

    I've seen this problem before. The way I solved it previously was to update the connectionstring from an old-style ADO format to the new SQL 2005 format.

    Old:

    data source=(local);persist security info=False;initial catalog=AdventureWorks

    New:

    Server=(local); Database=AdventureWorks; Trusted_Connection=yes;

    Hope this helps. Mark

  • "Remote access to report data sources and/or the report server database" is not su

    I'm using SQL Express with Advance Services & I get this error when I try to deploy my reports. Why do I get this error

  • An error has occurred during report processing. (rsProcessingAborted)

  • Cannot create a connection to data source 'EDPSYS'. (rsErrorOpeningConnection)

  • The feature: "Remote access to report data sources and/or the report server database" is not supported in this edition of Reporting Services. (rsOperationNotSupported)

    Justin Song

    SQL Express does not allow access to data sources not on the local machine. You will need to point to local data in your report.|||

    I'm new user of Reporting Services. I'm trying use Samples (AdventureWorks) and can't use it because this error. How do I point to local data in this samples? I create a Data Source named AdventureWorks with this string:

    data source="(local)";persist security info=False;initial catalog=AdventureWorks

    but is not working...

    |||

    I've seen this problem before. The way I solved it previously was to update the connectionstring from an old-style ADO format to the new SQL 2005 format.

    Old:

    data source=(local);persist security info=False;initial catalog=AdventureWorks

    New:

    Server=(local); Database=AdventureWorks; Trusted_Connection=yes;

    Hope this helps. Mark

  • "project creation error" with Ivolva Component Wizards for Integration Services

    Hi,

    I'm just getting started with SSIS and want to create a custom data flow component. I found the Ivolva Digital "Component Wizards for Integration Services" which says it make starting your own custom task or data flow component a snap by providing a functional base project for your task or component.

    Therefore I installed the Component Wizards for Integration Services and everything seemed to install ok - when I started Visual Studio I had the "Custom Data Flow Component" and "Custom Task" templates available in the New Projects dialog.

    However, when I try to create a project of either of these types I get the message "Creating project 'CustomTask1'...project creation error" in the status bar, and can't get past the New Project dialog. (I can create all other project types ok, though).

    Can anyone offer any advice that might help me out here?

    Thanks in advance,
    Lawrie.

    You might contact Oleg who created the wizards. His contact information is on the website ivolva.com.

    As this isn't a Microsoft product, we don't support it.

    On the other hand, creating custom tasks is really quite simple and BOL gives solid recommendations on how to do it. The wizard didn't do that much other than set up a class library, add the imports/references and derive from a task. All stuff you can do in a matter of a minute or two.

    K

    Thursday, March 8, 2012

    "Less Than or Equal To" MDX query

    The following MDX query is generated by the Reporting Services? I need to edit the this MDX query so that it will accept the parameter value "Less Than Or Equal To" the @.AccountPeriodAccountPeriod parameter to filter teh cube data. Thanks.

    SELECT NON EMPTY { [Measures].[Costing], [Measures].[Distinct Count] } ON COLUMNS, NON EMPTY { ([AgencyID].[Agency Id].[Agency Id].ALLMEMBERS * [Account Period].[Account Period].[Account Period].ALLMEMBERS * [Account Period].[Prescription Date].[Prescription Date].ALLMEMBERS * [Drug].[Protocol Code].[Protocol Code].ALLMEMBERS * [Drug].[Drug Name].[Drug Name].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT (STRTOSET(@.AccountPeriodAccountPeriod, CONSTRAINED)) ON COLUMNS FROM ( SELECT ( STRTOSET(@.DrugDrugFirstWord, CONSTRAINED) ) ON COLUMNS FROM [Drug Cost By Account Period])) WHERE ( IIF( STRTOSET(@.DrugDrugFirstWord, CONSTRAINED).Count = 1, STRTOSET(@.DrugDrugFirstWord, CONSTRAINED), [Drug].[Drug First Word].currentmember ) ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS

    Assuming that there is an [AccountPeriod].[AccountPeriod] attribute, ordered ascending by time:

    SELECT (Filter([AccountPeriod].[AccountPeriod].[AccountPeriod].Members,

    Rank([AccountPeriod].[AccountPeriod].CurrentMember,

    [AccountPeriod].[AccountPeriod].[AccountPeriod].Members) < =

    Rank(STRTOSET(@.AccountPeriodAccountPeriod, CONSTRAINED).Item(0).Item(0),

    [AccountPeriod].[AccountPeriod].[AccountPeriod].Members)))

    |||Thank you Deepak Puri and it is worked beautifully. However I forgot to include one other condition that only the AgencyID has the Account Period equal to the @.AccountPeriod should be allowed in the final dataset. AgencyID is from another dimension different from the Account Period dimension. Thanks.|||

    If you want only those AgencyID members with [Measures].[Costing] data for the selected Account Period, try replacing:

    [AgencyID].[Agency Id].[Agency Id].ALLMEMBERS

    with:

    NonEmpty([AgencyID].[Agency Id].[Agency Id].ALLMEMBERS,

    {[Measures].[Costing]} *

    STRTOSET(@.AccountPeriodAccountPeriod, CONSTRAINED))

    "Keys lock row not found" error

    Jens

    I also am having trouble with the reporting services not being able to the report server databases. I get the error "Keys lock row not found". I can't find any citation to help me figure out what this means nor how to fix it. Any help you can give me would be greatly appreciated.

    Ron

    What version of Reporting Services are you using?

    How did you create your report server database? Did you make any changes to it manually using OSQL or Enterprise Manager or Management Studio?

    -Lukasz

    "Keys lock row not found" error

    Jens

    I also am having trouble with the reporting services not being able to the report server databases. I get the error "Keys lock row not found". I can't find any citation to help me figure out what this means nor how to fix it. Any help you can give me would be greatly appreciated.

    Ron

    What version of Reporting Services are you using?

    How did you create your report server database? Did you make any changes to it manually using OSQL or Enterprise Manager or Management Studio?

    -Lukasz

    "Invalid authorization specification"

    I use SQL Server 2005 Analysis Services Deployment Wizard to generate an xmla deployment script. I get the following error when I try to run it:

    <Exception xmlns="urn:schemas-microsoft-com:xml-analysis:exception" />
    <Messages xmlns="urn:schemas-microsoft-com:xml-analysis:exception">
    <Error ErrorCode="3238395904" Description="OLE DB error: OLE DB or ODBC error: Invalid authorization specification; 28000." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" />
    <Error ErrorCode="3239182436" Description="Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'Max Min Sales DM 1', Name of 'Max Min Sales DM 1'." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" />
    <Error ErrorCode="3240034316" Description="Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Product', Name of 'Product' was being processed." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" />
    <Error ErrorCode="3240034317" Description="Errors in the OLAP storage engine: An error occurred while the 'Brand Name' attribute of the 'Product' dimension from the 'MaxMinSalesDM' database was being processed." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" />
    </Messages>

    In the script, I see the following data sources:

    <DataSources>
    <DataSource xsi:type="RelationalDataSource">
    <ID>Max Min Sales DM</ID>
    <Name>Max Min Sales DM</Name>
    <ConnectionString>Provider=SQLNCLI.1;Data Source=localhost;Persist Security Info=True;Password=;User ID=;Initial Catalog=MaxMinSalesDM;DataTypeCompatibility=80</ConnectionString>
    <ImpersonationInfo>
    <ImpersonationMode>Default</ImpersonationMode>
    </ImpersonationInfo>
    <Timeout>PT0S</Timeout>
    </DataSource>
    <DataSource xsi:type="RelationalDataSource">
    <ID>Max Min Sales DM 1</ID>
    <Name>Max Min Sales DM 1</Name>
    <ConnectionString>Provider=SQLNCLI.1;Data Source=localhost;Persist Security Info=True;Password=;User ID=;Initial Catalog=MaxMinSalesDM;DataTypeCompatibility=80</ConnectionString>
    <ImpersonationInfo>
    <ImpersonationMode>Default</ImpersonationMode>
    </ImpersonationInfo>
    <Timeout>PT0S</Timeout>
    </DataSource>
    </DataSources>

    I am surprised the connection strings don't contain any username/password info since the data source objects have user/password info saved with them when I access the project through Visual Studio. I try manually adding in User ID and Password, rerun, and get a different error:

    <root xmlns="urn:schemas-microsoft-com:xml-analysis:empty">
    <Exception xmlns="urn:schemas-microsoft-com:xml-analysis:exception" />
    <Messages xmlns="urn:schemas-microsoft-com:xml-analysis:exception">
    <Error ErrorCode="3238395904" Description="OLE DB error: OLE DB or ODBC error: Communication link failure; 08S01; Shared Memory Provider: I/O Error detected in read/write operation [4]. ; 08S01; Login failed for user 'MinMaxUser'.; 28000." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" />
    <Error ErrorCode="3239182436" Description="Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'Max Min Sales DM 1', Name of 'Max Min Sales DM 1'." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" />
    <Error ErrorCode="3240034316" Description="Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Product', Name of 'Product' was being processed." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" />
    <Error ErrorCode="3240034317" Description="Errors in the OLAP storage engine: An error occurred while the 'Brand Name' attribute of the 'Product' dimension from the 'MaxMinSalesDM' database was being processed." Source="Microsoft SQL Server 2005 Analysis Services" HelpFile="" />
    </Messages>
    </root>

    Any ideas? Thanks in advance!

    This is quite common situation you are having: Analysis Server doesnt have permission to access SQL Server relational database.
    It takes little while to troubleshoot connectivity problems. You need to make sure you set correctly security credentials required for Anlaysis Server to access relational database.

    For one, try and make sure the account Analysis Server runs under can access SQL Server using windows authentication.

    There is quite a bit information out there on how to setup connectivity and connection security.

    HTH.

    Edward.
    --
    This posting is provided "AS IS" with no warranties, and confers no rights.

    Tuesday, March 6, 2012

    "File System" vs MSDB packages?

    Hello.
    I was hoping to learn more about the differences between MSDB and "File System" Integration Services (IS) packages.

    First, why do I have the option to choose?

    Second, is there a way in T-SQL to query any information on File System packages? With the MSDB packages, I can query msdb.dbo.sysdtspackages90 .

    Thanks for any info.

    Kirk has a good post on the pros and cons of saving to file or SQL Server here: http://www.sqljunkies.com/WebLog/knight_reign/archive/2005/05/05/13523.aspx

    There is no way, using T-SQL, to get information about file system packages. SQL Server does not know about such packages. The only slight caveat to this is that the file can be set to log to SQL Server - in which case there will be some info from the package in SQL Server - but SQL Server doesn't "know" about the package as such.

    -Jamie|||Kirk has a good discussion

    http://sqljunkies.com/WebLog/knight_reign/archive/2005/05/05/13523.aspx

    What type of info would you like from the package on disk?

    Allan

    "JFoushee@.discussions.microsoft.com"

    wrote in message

    news:c8e13f2e-2b59-4cb1-8b6a-5bb9e65b18b4@.discussions.microsoft.com:

    > Hello.

    > I was hoping to learn more about the differences between MSDB and "File

    > System" Integration Services (IS) packages.

    >

    > First, why do I have the option to choose?

    >

    > Second, is there a way in T-SQL to query any information on File System

    > packages? With the MSDB packages, I can query msdb.dbo.sysdtspackages90

    > .

    >

    > Thanks for any info.|||What type of info would you like from the package on disk?

    I was hoping to get directories and/or names of IS packages in the File System.

    I think the "root" File System folder is stored as a Registry key.
    However, the only place I found it was in HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\... , which suggests a per-user strategy. This doesn't make sense.|||There is no root package. The packages exist wherever you put them.

    -Jamie|||I thoroughly agree there is no "root" package.
    However, there is a root folder in Windows Explorer that corresponds to the File System folder in SSMS.
    (In my case, C:\Program Files\Microsoft SQL Server\90\DTS\Packages)
    This folder name is stored as a value in a Registry key.

    When I add a folder or package to either
    - C:\Program Files\Microsoft SQL Server\90\DTS\Packages in Windows Explorer
    - the "Stored Packages"\"File System" folder in SSMS,
    it will appear in the other.

    I accept Jamie's answer that I cannot use TSQL to view the "File System" folder contents.

    Wasn't sure if there some xp_cmdshell trickery that involves this Registry key, so that it would work for every SQL 2005 configuration. Probably not.

    "Execute Package Utility has encountered a problem and needs to close"

    I'm a SQL Server 2000 user trying to get my head around v2005, in particular the changes from DTS to Integration Services.

    I've build a few packages in BIDS and they work fine there, but saving them to either the file system or MSDB locations and running them in Management Studio results in:

    Execute Package Utility has encountered a problem and needs to close. We are sorry for the inconvenience.

    If I click on the debug button, I get this:

    An unhandled exception ('System.IO.FileNotFoundException') occurred in DTExecUI.exe [404].

    I've searched the Internet and found a few people who has also experienced this, but not received any answers.

    Is there a kind guru out there with some idea of what is going on? Preferably something that doesn't involve re-installing, because the database has already been configured for our Blackberry users and I can't re-do it now.
    I have the same problem... have you got a soln yet?

    Thanks|||I also get the same problem. Looking in the event log, it is appears it cant find a temp file...but that doesnt make sense to me. Any solutions?|||I had the same problem. It got fixed after applying SP2.

    Friday, February 24, 2012

    "Bad Request" error

    Hi,

    I've installed Reporting Services and configured it without any problem.
    When I browse to http://x.x.x.x/reports I'm getting "Bad Request" error.

    Is it related somehow to the IP mapping issue?
    Any other clues?

    Thanks,
    Mark

    ps
    SQL 2005 RTM
    W2K3 Std

    Mark,

    IP address should work fine. I just tried it, and I didn't have any problem. What happens when you use the NetBIOS name instead of the IP address?|||Mike - I have the same problem - did you ever figure it out?|||If you want to run Reporting Services under a different port than normal, you have to change these two config files:
    rsreportserver.config
    and
    RSWebApplication.config

    Enter the full path (like http://servername:port/ReportServer) to <ReportServerUrl> (delete <ReportServerVirtualDirectory> then!) or resp. <UrlRoot>

    The result is then
    <Configuration>
    <UI>
    <ReportServerUrl>http://mbs05:8088/reportserver</ReportServerUrl>
    <ReportServerVirtualDirectory></ReportServerVirtualDirectory>
    <ReportBuilderTrustLevel>FullTrust</ReportBuilderTrustLevel>
    </UI>
    .....

    and

    <Configuration>
    ... <Service>
    ....
    <MaxQueueThreads>0</MaxQueueThreads>
    <UrlRoot>http://mbs05:8088/reportserver</UrlRoot>
    <UnattendedExecutionAccount>
    ...

    Hope this helps,
    Martin

    PS: see also http://msdn2.microsoft.com/en-us/library/ms159261(SQL.90).aspx

    "Bad Request" error

    Hi,

    I've installed Reporting Services and configured it without any problem.
    When I browse to http://x.x.x.x/reports I'm getting "Bad Request" error.

    Is it related somehow to the IP mapping issue?
    Any other clues?

    Thanks,
    Mark

    ps
    SQL 2005 RTM
    W2K3 Std

    Mark,

    IP address should work fine. I just tried it, and I didn't have any problem. What happens when you use the NetBIOS name instead of the IP address?|||Mike - I have the same problem - did you ever figure it out?|||If you want to run Reporting Services under a different port than normal, you have to change these two config files:
    rsreportserver.config
    and
    RSWebApplication.config

    Enter the full path (like http://servername:port/ReportServer) to <ReportServerUrl> (delete <ReportServerVirtualDirectory> then!) or resp. <UrlRoot>

    The result is then
    <Configuration>
    <UI>
    <ReportServerUrl>http://mbs05:8088/reportserver</ReportServerUrl>
    <ReportServerVirtualDirectory></ReportServerVirtualDirectory>
    <ReportBuilderTrustLevel>FullTrust</ReportBuilderTrustLevel>
    </UI>
    .....

    and

    <Configuration>
    ... <Service>
    ....
    <MaxQueueThreads>0</MaxQueueThreads>
    <UrlRoot>http://mbs05:8088/reportserver</UrlRoot>
    <UnattendedExecutionAccount>
    ...

    Hope this helps,
    Martin

    PS: see also http://msdn2.microsoft.com/en-us/library/ms159261(SQL.90).aspx

    "Bad Request" error

    Hi,

    I've installed Reporting Services and configured it without any problem.
    When I browse to http://x.x.x.x/reports I'm getting "Bad Request" error.

    Is it related somehow to the IP mapping issue?
    Any other clues?

    Thanks,
    Mark

    ps
    SQL 2005 RTM
    W2K3 Std

    Mark,

    IP address should work fine. I just tried it, and I didn't have any problem. What happens when you use the NetBIOS name instead of the IP address?|||Mike - I have the same problem - did you ever figure it out?|||If you want to run Reporting Services under a different port than normal, you have to change these two config files:
    rsreportserver.config
    and
    RSWebApplication.config

    Enter the full path (like http://servername:port/ReportServer) to <ReportServerUrl> (delete <ReportServerVirtualDirectory> then!) or resp. <UrlRoot>

    The result is then
    <Configuration>
    <UI>
    <ReportServerUrl>http://mbs05:8088/reportserver</ReportServerUrl>
    <ReportServerVirtualDirectory></ReportServerVirtualDirectory>
    <ReportBuilderTrustLevel>FullTrust</ReportBuilderTrustLevel>
    </UI>
    .....

    and

    <Configuration>
    ... <Service>
    ....
    <MaxQueueThreads>0</MaxQueueThreads>
    <UrlRoot>http://mbs05:8088/reportserver</UrlRoot>
    <UnattendedExecutionAccount>
    ...

    Hope this helps,
    Martin

    PS: see also http://msdn2.microsoft.com/en-us/library/ms159261(SQL.90).aspx

    "Aggregate" function in reporting services

    I have the problem of aggregating semi-additive measures correct in higher levels in a matrix control of reporting services. I use the "Microsoft SQL Server Analysis Services" data provider. I have a calculated measure saved in the AS2005 cube which looks like:

    [Measure].[Net Sales (kg)] = iif( [Measures].[Sales Volume KG] = 0, 0, [Measures].[Net Sales (RLG)] / [Measures].[Sales Volume KG] )

    In the matrix, I have a 4 level Product Dimension on the rows (4 groups matrix1_level1 ..... matrix1_level4) and the visibility of the groups is toggled by each upper level, so I can drill in the product dimension. I place this measure in the data part of the matrix with (sum(Fields!Net_Sales__kg_.Value)). On the leave level all values ar correct. But on each other level, I see the sum of the sublevels.

    After a lot of pain researching, I found that I have to use the "aggregate" function instead of the "sum" function, because aggregate uses the aggregating which comes from the data provider and the "Microsoft SQL Server Analysis Services" data provider is able to do that. Thats all of documentation I found. I have played around with this function, but always when I use it, I get no values on all levels. I tried the "scope" parameter of the aggregat function, nothing changed.

    I tried aggreagate(Fields!Net_Sales__kg_.Value, "matrix1_level1"), aggreagate(Fields!Net_Sales__kg_.Value, "SalesCube") (SalesCub is the name of my Dataset in Reporting Services I use), aggreagate(Fields!Net_Sales__kg_.Value, "matrix1") and last but not least aggregate(Fields!Net_Sales__kg_.Value), all is the same, no values.

    It seems to me, that the aggragate function returns "Nothing", because than, according to the Online Help, no values will be shown. But according to some blogs and forum entries, the "Microsoft SQL Server Analysis Services (AdomdClient)" Data provider should deal with aggregate. Have I do some special entries in the "Advanced..." Settings of the data provider?

    Can someone tell me, what I'm doing wrong, and did someone know a good documentation (with examples) for the aggregate function on the internet. The Help-file doc is very, very poor!!!

    Thanks
    Hans

    I have solved it now by programming code under report properties and do my own aggregation. But I think this should be done automatically by the "aggregate" function. Does no one know a good site of documentation and what data providers can use them and how?

    Thanks
    Hans

    |||

    Can you please add some more details about your custom aggregation? I have a very similar problem and I need to work around it somehow...

    Thanks,

    Efi

    |||

    Hi Efi,

    I wrote a little Function in the Code-part of the Report Properties like:

    Public Function CalcLevelSum(fname as string, svkg as double, svm2 as double, sMeasure as double) as double
    Dim sret as double

    if fname = "AVWeight" then
    sret = iif(svm2 = 0, 0, svkg * 1000 / svm2)
    elseif right(fname, 3) = "kg)" then
    sret = iif(svkg = 0, 0, sMeasure / svkg)
    elseif right(fname, 3) = "m2)" then
    sret = iif(svm2 = 0, 0, sMeasure / svm2)
    else
    sret = sMeasure / 1000
    end if

    return sret

    End Function

    And in the cells I changed the generated Sum-Formula to

    =Code.CalcLevelSum(Parameters!SelectedMeasure.Value, Sum(Fields!Measures_Ym2SalesVolumeKG.Value), Sum(Fields!Measures_Ym2SalesVolumeM2.Value), Sum(CDbl(Fields!Measures_Ym2Amount.Value)))

    With this approach, I calculate on each hierarchie level the devided values by myself. I have done a further standardisation in my cube: all per kg-values have the letters (kg) at the end of the Measure-Name, and all m2 Values (m2). So I can easily determine if the value must be devided or not. The parameters are only the sums which I need for deviding.

    One necessary thing is the CDbl Casting of the measure Value. If you do not cast it with CDbl, you get an error!

    Hans

    "Aggregate" function in reporting services

    I have the problem of aggregating semi-additive measures correct in higher levels in a matrix control of reporting services. I use the "Microsoft SQL Server Analysis Services" data provider. I have a calculated measure saved in the AS2005 cube which looks like:

    [Measure].[Net Sales (kg)] = iif( [Measures].[Sales Volume KG] = 0, 0, [Measures].[Net Sales (RLG)] / [Measures].[Sales Volume KG] )

    In the matrix, I have a 4 level Product Dimension on the rows (4 groups matrix1_level1 ..... matrix1_level4) and the visibility of the groups is toggled by each upper level, so I can drill in the product dimension. I place this measure in the data part of the matrix with (sum(Fields!Net_Sales__kg_.Value)). On the leave level all values ar correct. But on each other level, I see the sum of the sublevels.

    After a lot of pain researching, I found that I have to use the "aggregate" function instead of the "sum" function, because aggregate uses the aggregating which comes from the data provider and the "Microsoft SQL Server Analysis Services" data provider is able to do that. Thats all of documentation I found. I have played around with this function, but always when I use it, I get no values on all levels. I tried the "scope" parameter of the aggregat function, nothing changed.

    I tried aggreagate(Fields!Net_Sales__kg_.Value, "matrix1_level1"), aggreagate(Fields!Net_Sales__kg_.Value, "SalesCube") (SalesCub is the name of my Dataset in Reporting Services I use), aggreagate(Fields!Net_Sales__kg_.Value, "matrix1") and last but not least aggregate(Fields!Net_Sales__kg_.Value), all is the same, no values.

    It seems to me, that the aggragate function returns "Nothing", because than, according to the Online Help, no values will be shown. But according to some blogs and forum entries, the "Microsoft SQL Server Analysis Services (AdomdClient)" Data provider should deal with aggregate. Have I do some special entries in the "Advanced..." Settings of the data provider?

    Can someone tell me, what I'm doing wrong, and did someone know a good documentation (with examples) for the aggregate function on the internet. The Help-file doc is very, very poor!!!

    Thanks
    Hans

    I have solved it now by programming code under report properties and do my own aggregation. But I think this should be done automatically by the "aggregate" function. Does no one know a good site of documentation and what data providers can use them and how?

    Thanks
    Hans

    |||

    Can you please add some more details about your custom aggregation? I have a very similar problem and I need to work around it somehow...

    Thanks,

    Efi

    |||

    Hi Efi,

    I wrote a little Function in the Code-part of the Report Properties like:

    Public Function CalcLevelSum(fname as string, svkg as double, svm2 as double, sMeasure as double) as double
    Dim sret as double

    if fname = "AVWeight" then
    sret = iif(svm2 = 0, 0, svkg * 1000 / svm2)
    elseif right(fname, 3) = "kg)" then
    sret = iif(svkg = 0, 0, sMeasure / svkg)
    elseif right(fname, 3) = "m2)" then
    sret = iif(svm2 = 0, 0, sMeasure / svm2)
    else
    sret = sMeasure / 1000
    end if

    return sret

    End Function

    And in the cells I changed the generated Sum-Formula to

    =Code.CalcLevelSum(Parameters!SelectedMeasure.Value, Sum(Fields!Measures_Ym2SalesVolumeKG.Value), Sum(Fields!Measures_Ym2SalesVolumeM2.Value), Sum(CDbl(Fields!Measures_Ym2Amount.Value)))

    With this approach, I calculate on each hierarchie level the devided values by myself. I have done a further standardisation in my cube: all per kg-values have the letters (kg) at the end of the Measure-Name, and all m2 Values (m2). So I can easily determine if the value must be devided or not. The parameters are only the sums which I need for deviding.

    One necessary thing is the CDbl Casting of the measure Value. If you do not cast it with CDbl, you get an error!

    Hans

    "Aggregate" function in reporting services

    I have the problem of aggregating semi-additive measures correct in higher levels in a matrix control of reporting services. I use the "Microsoft SQL Server Analysis Services" data provider. I have a calculated measure saved in the AS2005 cube which looks like:

    [Measure].[Net Sales (kg)] = iif( [Measures].[Sales Volume KG] = 0, 0, [Measures].[Net Sales (RLG)] / [Measures].[Sales Volume KG] )

    In the matrix, I have a 4 level Product Dimension on the rows (4 groups matrix1_level1 ..... matrix1_level4) and the visibility of the groups is toggled by each upper level, so I can drill in the product dimension. I place this measure in the data part of the matrix with (sum(Fields!Net_Sales__kg_.Value)). On the leave level all values ar correct. But on each other level, I see the sum of the sublevels.

    After a lot of pain researching, I found that I have to use the "aggregate" function instead of the "sum" function, because aggregate uses the aggregating which comes from the data provider and the "Microsoft SQL Server Analysis Services" data provider is able to do that. Thats all of documentation I found. I have played around with this function, but always when I use it, I get no values on all levels. I tried the "scope" parameter of the aggregat function, nothing changed.

    I tried aggreagate(Fields!Net_Sales__kg_.Value, "matrix1_level1"), aggreagate(Fields!Net_Sales__kg_.Value, "SalesCube") (SalesCub is the name of my Dataset in Reporting Services I use), aggreagate(Fields!Net_Sales__kg_.Value, "matrix1") and last but not least aggregate(Fields!Net_Sales__kg_.Value), all is the same, no values.

    It seems to me, that the aggragate function returns "Nothing", because than, according to the Online Help, no values will be shown. But according to some blogs and forum entries, the "Microsoft SQL Server Analysis Services (AdomdClient)" Data provider should deal with aggregate. Have I do some special entries in the "Advanced..." Settings of the data provider?

    Can someone tell me, what I'm doing wrong, and did someone know a good documentation (with examples) for the aggregate function on the internet. The Help-file doc is very, very poor!!!

    Thanks
    Hans

    I have solved it now by programming code under report properties and do my own aggregation. But I think this should be done automatically by the "aggregate" function. Does no one know a good site of documentation and what data providers can use them and how?

    Thanks
    Hans

    |||

    Can you please add some more details about your custom aggregation? I have a very similar problem and I need to work around it somehow...

    Thanks,

    Efi

    |||

    Hi Efi,

    I wrote a little Function in the Code-part of the Report Properties like:

    Public Function CalcLevelSum(fname as string, svkg as double, svm2 as double, sMeasure as double) as double
    Dim sret as double

    if fname = "AVWeight" then
    sret = iif(svm2 = 0, 0, svkg * 1000 / svm2)
    elseif right(fname, 3) = "kg)" then
    sret = iif(svkg = 0, 0, sMeasure / svkg)
    elseif right(fname, 3) = "m2)" then
    sret = iif(svm2 = 0, 0, sMeasure / svm2)
    else
    sret = sMeasure / 1000
    end if

    return sret

    End Function

    And in the cells I changed the generated Sum-Formula to

    =Code.CalcLevelSum(Parameters!SelectedMeasure.Value, Sum(Fields!Measures_Ym2SalesVolumeKG.Value), Sum(Fields!Measures_Ym2SalesVolumeM2.Value), Sum(CDbl(Fields!Measures_Ym2Amount.Value)))

    With this approach, I calculate on each hierarchie level the devided values by myself. I have done a further standardisation in my cube: all per kg-values have the letters (kg) at the end of the Measure-Name, and all m2 Values (m2). So I can easily determine if the value must be devided or not. The parameters are only the sums which I need for deviding.

    One necessary thing is the CDbl Casting of the measure Value. If you do not cast it with CDbl, you get an error!

    Hans

    "Aggregate" function in reporting services

    I have the problem of aggregating semi-additive measures correct in higher levels in a matrix control of reporting services. I use the "Microsoft SQL Server Analysis Services" data provider. I have a calculated measure saved in the AS2005 cube which looks like:

    [Measure].[Net Sales (kg)] = iif( [Measures].[Sales Volume KG] = 0, 0, [Measures].[Net Sales (RLG)] / [Measures].[Sales Volume KG] )

    In the matrix, I have a 4 level Product Dimension on the rows (4 groups matrix1_level1 ..... matrix1_level4) and the visibility of the groups is toggled by each upper level, so I can drill in the product dimension. I place this measure in the data part of the matrix with (sum(Fields!Net_Sales__kg_.Value)). On the leave level all values ar correct. But on each other level, I see the sum of the sublevels.

    After a lot of pain researching, I found that I have to use the "aggregate" function instead of the "sum" function, because aggregate uses the aggregating which comes from the data provider and the "Microsoft SQL Server Analysis Services" data provider is able to do that. Thats all of documentation I found. I have played around with this function, but always when I use it, I get no values on all levels. I tried the "scope" parameter of the aggregat function, nothing changed.

    I tried aggreagate(Fields!Net_Sales__kg_.Value, "matrix1_level1"), aggreagate(Fields!Net_Sales__kg_.Value, "SalesCube") (SalesCub is the name of my Dataset in Reporting Services I use), aggreagate(Fields!Net_Sales__kg_.Value, "matrix1") and last but not least aggregate(Fields!Net_Sales__kg_.Value), all is the same, no values.

    It seems to me, that the aggragate function returns "Nothing", because than, according to the Online Help, no values will be shown. But according to some blogs and forum entries, the "Microsoft SQL Server Analysis Services (AdomdClient)" Data provider should deal with aggregate. Have I do some special entries in the "Advanced..." Settings of the data provider?

    Can someone tell me, what I'm doing wrong, and did someone know a good documentation (with examples) for the aggregate function on the internet. The Help-file doc is very, very poor!!!

    Thanks
    Hans

    I have solved it now by programming code under report properties and do my own aggregation. But I think this should be done automatically by the "aggregate" function. Does no one know a good site of documentation and what data providers can use them and how?

    Thanks
    Hans

    |||

    Can you please add some more details about your custom aggregation? I have a very similar problem and I need to work around it somehow...

    Thanks,

    Efi

    |||

    Hi Efi,

    I wrote a little Function in the Code-part of the Report Properties like:

    Public Function CalcLevelSum(fname as string, svkg as double, svm2 as double, sMeasure as double) as double
    Dim sret as double

    if fname = "AVWeight" then
    sret = iif(svm2 = 0, 0, svkg * 1000 / svm2)
    elseif right(fname, 3) = "kg)" then
    sret = iif(svkg = 0, 0, sMeasure / svkg)
    elseif right(fname, 3) = "m2)" then
    sret = iif(svm2 = 0, 0, sMeasure / svm2)
    else
    sret = sMeasure / 1000
    end if

    return sret

    End Function

    And in the cells I changed the generated Sum-Formula to

    =Code.CalcLevelSum(Parameters!SelectedMeasure.Value, Sum(Fields!Measures_Ym2SalesVolumeKG.Value), Sum(Fields!Measures_Ym2SalesVolumeM2.Value), Sum(CDbl(Fields!Measures_Ym2Amount.Value)))

    With this approach, I calculate on each hierarchie level the devided values by myself. I have done a further standardisation in my cube: all per kg-values have the letters (kg) at the end of the Measure-Name, and all m2 Values (m2). So I can easily determine if the value must be devided or not. The parameters are only the sums which I need for deviding.

    One necessary thing is the CDbl Casting of the measure Value. If you do not cast it with CDbl, you get an error!

    Hans