Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all 2472 articles
Browse latest View live

Needing to Get Creative With Lookups, Multiple Cube Sources in 2008 R2

$
0
0

Howdy,

  I'm trying to create a "Student Scorecard" that will take all the different aspects of a student's "career" and show them on one report: GPA, Attendance, Test Results, etc.  Ideally everything would appear on the same line.  So far I've been able to use the Lookup function to tie in my cubes, using the StudentID.  I've come across two problems though, and was hoping maybe somebody could give me some advice on either how to make the way I'm doing it work, or suggest an even better way altogether.

  The first issue I'm having is that the more cubes I add, the slower the report is taking to generate...shocker, right?  I'm currently up to 4 datasets that are getting queried...adding the 4th one made it really slow.  Ideally I may need to add another cube/query or two to get all the info I need.  I'm still fairly new to MDX, so I hope this isn't a dumb question, but is there a way to create a join across cubes beforehand instead of trying to make SSRS do all the work?

  Secondly, the fourth/latest query/cube that I added contains data that will result in a 1-to-many relationship -- it's test results.  There could be anywhere from 0 to 8 different tests that a student may have taken in this cube.  I read about LookupSet and I thought it might be the answer.  I tried joining it with a Column Grouping, but this gave me an error.  Further studying revealed that LookupSet returns the data in an array, and you could possibly join it using commas into a string, but this still doesn't help me in breaking out the results of one test for each column.  Next, I tried to "cheat" and just hard-code the test names into the columns, and then was going to hide the columns that are not used, but when I try to preview the report I'm told that I cannot hide a column based on results from a different dataset.  

  I have got the test results to show by conceding that all the columns would have to show and using a lookup in each individual column as such:

=iif(Lookup(Fields!Person_ID.Value, Fields!Person_ID.Value, Fields!Test_Name.Value, "kcctTestResults") = "KCCT Math",
Lookup(Fields!Person_ID.Value, Fields!Person_ID.Value, Fields!Test_Result.Value, "kcctTestResults"), "")

I don't think this is going to work though -- it took well over a minute for the results to come back :(

So with that being said, any suggestions would be greatly appreciated!!


Dynamic Dimension security

$
0
0

Hi all,

working on a sample to get dynamic securty setup.

I have an MDX expression that I'd like to see the result of but not sure where ( Editor/tool) this would be possible. Here the mdx-expression...

Filter(Location.City.City.members,

Instr(Location.City.currentmember.properties('Access'),USERNAME))

I am assuming that my value in the access property does not match what the Username functions returns. Therefore no matter what user I log in with, I don't see any location showing up in the dimension.

Hints appreciated.

Ludwig

Proclarity is throwing error when going for Drill to Detail-->Error with drill to data Infinite recursion detected. The loop of dependencies is:

$
0
0

Hi All,

In SSAS 2005 I have 5 cubes. These cubes accessing through Proclarity. 4 Cubes are working fine but when 5 cube, accessing & trying for option Drill to Details in proclarity getting below error message:

Proclarity is throwing error when going for Drill to Detail-->"Error with drill to data Infinite recursion detected. The loop of dependencies is:"

In SSMS we dont have option like Drill to Detail, So not able to fond out what is the root cause.

Only Drill to Detail option is not working & that only to one cube. For other 4 cubes option Drill to Detail is working fine.


Thanks Shiven:) If Answer is Helpful, Please Vote

SSAS design: One fact tables versus several fact tables

$
0
0

Hi,

I have a database with tables that can be divided in terms of business view to three kinds of products. These  products types  are polymorphism of product, they have several common attributes but also different attributes. Is it better to create a surrogate key of product category just for the star schema, or to create three fact tables and duplicate the dimension for these two other products?

Thank you.

SSAS basic navigation

$
0
0

Hi

Is there a way to enable the user to interact with the SSAS system using forms, buttons, picklists and so on…?

The user should have one basic default page, which enables navigation to other parts of the system using menus.

Without using additional software, SSAS GUI is not clear enough to the user.

How can I turn SSAS to a user friendly application?

Thanks.

count distinct set of attributes over the month ans product

$
0
0

hi,

i have one dimension DtimTime, DimProduct and DimCustomer and one Fact FactTxn

now in DimCustomer the set on CustomerName, CardNumber and CardExpiryDate is unique. and this set of key is Key column in my DimCustomer Table and referring as foreign key in my FactTable(FactTxnID, ProductKey, TimeKey, CustomerName, CardNumber, CardExpiryDate, SalesAmt, TaxAmt)

now in my MDX i want to find

product based

Distinct customer ( set of Customer Name, Card Number and Card expiry Date) count

over the Year

example: (result should look like as)

              2010   2011   2012  ....    .. . . . . .etc
Produc1   24      15       34
Product2  35      36       37
.
.
.
.etc


many many thanks in advance for all your assistance



Regards, Shanu





need help on complex mdx query

$
0
0

Hi everyone i am in problem for writing a mdx query

In this scenario, i am having two Dimension

DimTxnTime (TimeKey,TxnYear TxnMonth, TxnQrtr, ... etc)  and
DimCard(CardID, CardNumber, CardHolderName, CardExpiryDt, Address, ... etc)

and one Fact Table

FactTxn(TimeKey, CardID, TxnAmount, TxnTax, ... etc)

now as per the business logic, there are 3 logical Bands as per the unique card's Repetitive purchase within month.

Band 1: a Unique card Used once in a month

Band 2: Card Used Twice in a month

Band 3: Card Used Thrice or more in a month

now in mdx how can i count distinct card's repetition and arrange them in particular Band over the month

Output could look like:

           Band 1         Band 2       Band 3
            --------        ----------    -----------
Jan       23               10              60
Feb      5                 25              9
March  7                 8               12
.          ..               ... .            ...
.          ..               ... .            ...
Dec      20               8             11

please let me know if more clarification needed help on urgent basis.


Regards, Shanu

Cannot connect to [SERVER] - Authentication Failed

$
0
0

On our SQL Server 2008 R2 server, a user gets the following error when trying to connect remotely to Analysis Services using SQL Management Studio:

Cannot connect to [SERVER]
Authentication Failed
 - Additional Information: Authentication failed. (Microsoft.AnalysisServices.AdomdClient)
 -- The logon attempt failed (Microsoft.AnalysisServices.AdomdClient)

 

The user can connect if they RDP to the Server and connect locally. He was also able to connect on another PC using "Run As". We are not using Kerberos to my knowledge.

Presumably I need to run a repair install on the client machine?

Any other ideas?


key duplication error

$
0
0

Hi friends

I'm getting this error during process of cube..

Errors in the OLAP storage engine:
A duplicate attribute key has been found when processing: Table: 'dbo_VW_NoofCalls'
,Column:'call_date',Value:'7/24/2012 7:53:50 AM'. The attribute is 'Call Date'.

I have an vw name VW_NoofCalls that calculate no of times phone call existence based on date that column name is call_date..

stucture of VW_NoofCalls

Phoneno           call_date

3525510           2012-07-10 07:51:48.000 
352397             2012-07-10 07:52:01.000 
3551204           2012-07-10 07:52:06.000 
2551314           2012-07-10 07:52:13.000 
2551275           2012-07-10 07:52:13.000 
2551313          2012-07-10 07:52:13.000 

Kindly help


Query scanning all partitions in result set

$
0
0

I have a scenario where I am returning 52 weeks of data, but for one calculation I only want to return the latest week. I am getting poor performance because it is scanning all partitions in the 52 week result set. I would like it to only scan the last partition if possible.

I tried writing something like 

MEMBER [Measures].[Number Locations] AS 
( 
		iif([Date Dimension].[Fiscal Year].CURRENTMEMBER.MemberValue = [FiscalLastDay].Item(0).Parent.Lag(1).Item(0).MemberValue ,
		[Measures].[Locations Sold]
		,Null)
)

But it didn't seem to help.

Locations sold is a calculated member

SCOPE([Measures].[Locations Sold]);
    THIS = IIF(ISEMPTY(measures.units),NULL,
            COUNT(NONEMPTY([Locations Sold].[Locations Sold].[Location Dimension ID].members,measures.units)));
END SCOPE;

FiscalLastDay is calculated as follows

CREATE HIDDEN TodayDate = Format(Now(), "yyyyMMdd");
CREATE HIDDEN SET [FiscalToday] AS 
    Filter([Date Dimension].[Fiscal Year].[Day Name].Members, [Date Dimension].[Fiscal Year].MemberValue = StrToValue(TodayDate));
CREATE HIDDEN SET [FiscalLastDay] AS
    [FiscalToday].Item(0).Lag(1);

MdxScript(STAGING) (6, 6) Parser: The syntax for ';' is incorrect.

$
0
0

Hi All,

When i'm processing a CUBE i'm getting the following error:

MdxScript(STAGING) (6, 6) Parser: The syntax for ';' is incorrect.

Can anyone please guide me or point me in the right direction.

Thanks


SV

URGENT: MDX : Unique Cards falling in to Band's based on there repetation over the month

$
0
0

Hi everyone i am in problem for writing a mdx query

In this scenario, i am having two Dimension

DimTxnTime (TimeKey, TxnYear, TxnMonth, TxnQrtr, ... etc)  and
DimCard(CardID, CardNumber, CardHolderName, CardExpiryDt, Address, ... etc)

and one Fact Table

FactTxn(TimeKey, CardID, TxnAmount, TxnTax, ... etc)

now as per the business logic, there are 3 logical Bands as per the unique card's Repetitive purchase within month.

Band 1: a Unique card Used once in a month

Band 2: Card Used Twice in a month

Band 3: Card Used Thrice or more in a month

now in mdx how can i count distinct card's repetition and arrange them in particular Band over the month

Output could look like:

 

           Band 1         Band 2       Band 3
            --------        ----------    -----------
Jan       23               10              60
Feb      5                 25              9
March  7                 8               12
.          ..               ... .            ...
.          ..               ... .            ...
Dec      20               8             11

please let me know if more clarification needed help on urgent basis.



Regards, Shanu




Availability to cube data during restore

$
0
0

Hi,

I would like to know if cube data is available for querying during 'restore operation' of a database. I restored a database and was still able to browse the 'cubes'. I would like to have a second opinion.

Thanks

Bidyut


A**LE

Moving solution from one server to another

$
0
0

I have a solution developed in BIDS consisting of one SSIS package and one SSAS package.  The SSIS package imports data from an oracle DB and writes it into tables in an SQL Server db representing the dimension and fact tables.  The SSAS package uses the tables as datasource to create dimensions and the .cube .

I am running bids on my local client and opening solutions on the server I want to work on.

I wanted to move the solution to another server.  I created the SQL server db on the new machine and ran the scripts from the old server to create the tables etc. that I wanted.  To move the solution over I opened the solution on the old server in BIDS and did a "save as" to a mapped drive representing the location on the new server.  I then opened the solution on the new server and changed the connection managers in the SSIS package so they would write to the SQL Server db on the new server.  I ran the SSIS package on the new server and the db tables were populated as expected.  So far so good.

I opened the SSAS project on the new server and processed each dimension separately...no errors.  I processed the cube...no errors.  But I was expecting that a analysis server db would be being created on the new server but it's not.  The dimensions and cube seem to be being created to my local pc.  I want everything to get created on the new server.

What do I need to do in my SSAS package to have the analysis services db created on the new server and have the BI objects created on the new server?

If it's a silly question please excuse I'm still a bit of a newbie,

Thanks, Roscoe

OWA OLAP report gives chinese font issue

$
0
0

Dear Expert,

I have a issue when getting the OLAP report, all front of the genertated report is "宋体", and I have to change it to "Cali" one by one.

Can anyone give me suggestion? How can I set the defult report font as "Cali" if possbile?

Thanks.


What

$
0
0

Hi there!

We have a contractor in who developed two cubes for us on an instance of SSAS. I know next to nothing about cubes, other than the vaguest concepts. 

The contractor is doing a demo of the cubes for us, and I dont want to look an idiot in front of my boss!

Has anyone any idea of the sort of questions I should be asking, or areas to discuss?

Thanks,

Zoe

Dimension security : role, visualtotals and co

$
0
0

Hi all,

I searched into the forum but i did not find any solution on my problem, so here I wrote !

I have a dimension "group" with the "group hierarchy" which has 4 levels.

I would like to know if it's possible to enable visual totals only for 3 levels and get the grand total without filter for the first level ?

Example :                  

Level 1    500 (not filtered)

Level 2    10 (filtered)

Level 3    10 (filtered)  --- at this level I have implemented a dimension data security for the role, with this syntax :

                                                   EXISTS([Group].[Name].Children,

                                                             {StrToMember("[Portal User].[USER NAME].&["+username()+"]")}, "Factless Security Access")

Level 4     5 (filtered)

The level 1 represent the aggregation of all my group and it's important for user to get the information in order for them to benchmark their values to the grand total.

Any help would behighly appreciated !

Thanks

How to find adjacent or boarders (or neighbors) state for a given state using MDX?

$
0
0

How do i prodcue a report that generates all neighbors or adjacent state for a given state using SSRS report ? The report has to use embedded MDX queries form cube (SSAS) . For example if the parmeter passed  is CA , the report has to generate Nevada , Oregon , Arizona . Is there any MDX function ?

Thanks , Bene

Change SSAS generated SQL

$
0
0

Hello all!

At my client I'm attempting to run in ROLAP mode (only because it is the client's wish!) I have some issues with the SQL generated by SSAS and which is sent to the database. The query contains alot of sub-selects and joins which the database engine doesn't like.

Is there any possibility to manipulate the SQL generated by SSAS?

Thankful for any help!

Unable to access MS Analysis Services 2005 OLAP cubes using 32bit Excel 2010 in 64bit Windows7

$
0
0

When creating a connection on MS Excel to SQL2005 analysis services cube using the Microsoft OLE DB Provider for Analysis Services 10.0, the following error occurs: Unable to connect to data source. Reason: Unable to locate database server. verify that the database server name you entered is correct.

I've tried the same thing on a laptop running Windows XP and Excel 2010 on the same network, it works just fine. I'm certain there isn't a problem with DNS lookup.

Does anyone know why? Is there a log file on the Windows workstation or the SQL server can trace the errors? Any comments are welcome! Thanks.

Viewing all 2472 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>