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

SSAS 2012: NULL-value in string column causes exception in processing. Bug?

$
0
0

Hello @all,

last week we encountered following behaviour: VARCHAR-column in the fact table is used as basis for DISTINCT-COUNT-measure in a cube. Processing of the corresponding measure group crashes with "unexpected exception"-error as soon as column has NULLs. After replacing NULLs with placeholders/default values we could process it.

Can anyone confirm this behaviour? I suppose, it's a bug, because SQL Server 2008 could process NULLs in a string without any problems.

Would appreciate any feedback.

Regards from Hamburg,

Andrey


convert to fact table

$
0
0

Should i create an new dimension table and then an fact table where  i have 10 measures and one varchar column in transaction table

Ie : Sales_Detail table have remarks/ description column and all the rest is the measures column. How to create OLAP Database table


ShanmugaRaj

Performance issues with 50 million rows of sales data!

$
0
0

We are planning to use SQL Server 2008R2, Analyses Services and Reporting Services. There is 50 million rows of data  We are still in design phase.

What are methods to optimize perfomance of displaying data?


Kenny_I

aggregate gives me the headache

$
0
0

so i understand that Aggregate circumvents solve_order, but this ...

i have a calculated measure which is a sum of some other measures, as simply as

CREATE MEMBER CURRENTCUBE.[Measures].[Value Mnf] as [Measures].[MP_Value_Mnf] + [Measures].[MC_Value_Mnf] + ...

then i have a calculation involving Aggregate as this:

CREATE MEMBER CURRENTCUBE.[Calc].[Calc].[ATC3 share] AS
    [Calc].[Fact] /
    Aggregate(existing [Prod].[ATC].[Atc3].Members, [Calc].[Fact])

this gives me horrible values like million percents. so i decided to add a little trace code:

CREATE MEMBER CURRENTCUBE.[Calc].[Calc].[ATC3 share] AS
    '<' +
    vba!str([Calc].[Fact])+ '/' +
    vba!str(Aggregate(existing [Prod].[ATC].[Atc3].Members, [Calc].[Fact]))+'>'

to see how the calculation actually went. and i got this:

<2606380672/<0/0> <0/0> <0/0> <0/0> <0/0> <0/0> <2606380672/3535757536> <0/0> > 

so it calculated the fact, then it went on and calculated the share for all the summed sub-measures, and added them up, despite i explicitly told it to aggregate the fact, and not the calculation. i don't even understand why it didn't lead to infinite recursion.

for some reason unknown, the thing suddenly gets cool if i change to:

CREATE MEMBER CURRENTCUBE.[Calc].[Calc].[ATC3 share] AS
    [Calc].[Fact] /
    Generate([Calc].[Fact], Aggregate(existing [Prod].[ATC].[Atc3].Members))
and again, i feel like alice in wonderland.

Cube browsing across three fact tables

$
0
0

Hello Everyone,

I am working on a project to create a cube for healthcare.

I have 3 fact tables.

1. Main Fact table : This is at the granularity of the visit-providerrole.

2. Diagnosis Fact Table: This is at the granularity of visit-diagnosiscode

Above fact table has multiple diagnosis for each visit that the reason i am splitting into diagnosis fact table, to handle the table efficiently instead of dumping it in one Main Fact table. This was as per kimball to put it seperate so that it will not blow up the main fact table.

3. Similarly Procedure Fact table : This is at the granularity of Visit-procedurecode

I have total of 5 dimensions

Date,Patient and Provider for Main Fact table

Diagnosis Dimension for Diagnosis fact table

Procedure Dimension for Procedure Fact Table

I have attached the diagram of my cube in the image.

cube structure

i am also loading sample data to clearly understand underlying data.

table data

Now, i am having issue with the 3 fact tables communication. 

Say i want to traverse from DiagFact table to main fact table to get patientid and his demographics i am unable to do it. i know i am doing something wrong somewhere but unable to move forward.(This is when i browse the cube)

Same issue with Procedure Fact too.

Do i need to create FK relationship between MainFact tabel -  DiagnosisFactTabel and MainFact Table - ProcedureFact Table,

which i did in the cube by dragging and dropping the common column visit in each fact table to Main fact table as a FK relationship.

Moreover, is it possible to get patient info or do i need to have patient id in diagnosis fact table and tie diagnosis fact table to patient dimension.

Please help in this regard.




sql server 2008 MDX Step by Step-- where can I download the sample database

$
0
0


Hi guys,
I download this ebook but can't find the sample database that comes with it.

Where do I download the CD/DB.

Thanks

 

WriteBack in SSAS multidimensional or tabular? Embedding in SharePoint?

$
0
0
Hello,

I built up a Data Warehouse in SSIS. I run the OLAP in PowerPivot and also added some measures with DAX in PowerPivot.
The PowerPivot file is stored on a website built up with SharePoint and is visualised on this website with PowerView.

How do I set up a WriteBack?
There is no casual way to enable a WriteBack with PowerPivot. In an earlier project I already used the WriteBack functionality in SSAS multidimensional mode. Is there a simular possibility for WriteBAck in SSAS tabular mode? Shall I use multidimensional or tabular for the WriteBack? Is it possible to embedd and manage SSAS multi or tabular on the SharePoint website?

I plan to set up an additional Cube for the planning values in SSAS to enable WriteBack. (Yes I could have used just SSAS without PowerPivot. It is a PowerPivot project)


Best regards!
Jörg

The trust relationship between the primary domain and the trusted domain failed

$
0
0

Hi All,

While adding a user in a SSAS database, I am getting the below error:

" The trust relationship between the primary domain and the trusted domain failed."

It doesn't allow me to add a new user.

Please help me to get rid of this error.


Sudipta Ghosh Tata Consultancy Services


Managing SSAS Tabular dynamic partitioning

$
0
0

Hi,

in order to implement a Process Add strategy to processing a SSAS tabular model I need to create, fe monthly, dinamically and authomatically a tabular partition. I think to run a job that each day before removes the last partition data about the current month and then adds the partition of the current month with new data and/or data updated.

Now, how can I solve this issue, please? Thanks

I underline that I'm referring to SSAS Tabular dynamic partitioning and not a SSAS Multidimensional scenario. 

Cube Processing Question

$
0
0

Processing Full the cube is taking ten and a half hours, so I am doing the following processing:
1. Process Update - Dimensions
2. Process Full - Latest cube partitions
3. Process Index - All historic partitions

The latest partition is all records after 1/1/2013, but then I found that there are records that belong to December 2012 that are still being loaded. The question is: can I change the date on the partition to be 12/1/2012, and then do the three steps processing I mentioned above, or do I have to do a process full because I changed the dates on the partitions.

Thanks.

Dimension reload breaks pivot table references

$
0
0

Hi all,
First, a bit of background: In our cubes, all dimensions have the surrogate key defined as the dimension key and we typically only update or insert rows in our data warehouse dimension tables. Recently we needed to reload the data warehouse due to a problem with the server, and this has had the effect of breaking existing pivot table reports. In looking at the underlying MDX, the surrogate key value is referenced in the queries, but because the dimension tables were reloaded, the surrogate keys have changed and the sid references are now invalid, or incorrect.

Is there a recommended way to fix this? Everything I've read indicates that the sid should be the key column for a cube dimension. Is this not correct?

Luckily we do not yet have heavy usage of the cubes, but that fact that a reload appears to break all reports makes me very nervous. Have I missed something fundamental in our cube design?

That's a few questions, but I guess the one that's paramount is: how do I fix this?

Thanks,
-Mark

How do I import an Access 2010 table into Analysis Services?

$
0
0

Hello.. I'm trying to import an Access database table into an analysis services project, without success. For the connection and data source, I've selected Microsoft Jet 4.0, and then selected the accdb file. This goes well enough, but when I try to add a data source view, I get the error: "Unrecognized database format." I've searched at some length for a solution, and I've found similar posts, but nothing that quite matches my issue. Is there a way to do this without using integration services? By the way, I used Access as a workaround. My original data lives in excel/ power pivot. If there is a way to get the data in right from excel, that would be even better.

Many thanks in advance...


Kevin Rice

How to programmatically find out if SSAS Db is detached and Overwrite it?

$
0
0

Hi,

How can I programmatically, using AMO find if an SSAS DB is Detached, and having found this out, overwrite it with new DB of same name?

Thanks


--ACG

How to start Analysis Services that state is "Change Pending..."?

$
0
0

Hi All,

 

SQL Server Analysis Services' state is "Change pending...", and I can't start it.

When I try to start it, they occur error, show information "The request failed or the service did not respond in a timely fashion. Consult the event log or other applicable error logs for details".

Where can I see the "log" and how can solve this problem?

How can I start this service?

Thanks.

 

Regard,

Kaneabell



Problems after installing SQL Server 2012 Service Pack 1

$
0
0

Hi,

I have been doing a large Tabular model project with SQL Server 2012. Everything was fine until I installed the SQL Server 2012 Service Pack 1. I can not open the project. Visual Studio is giving an error, that says .... anybody, please help me with this

I'm using virtual machine and I opened the project with old SQL Server installation ... and it was opened fine. I deleted the table that gives error, and processed the cube, copied it to the SP1 machine .. but no, it won't open .......

============================
Error Message:
============================

Measure group 'XXX' missing reference dimension for existing indirect relationship to dimension 'Time'.

----------------------------
An error occurred while opening the model. Click Details for more information.

============================
Call Stack:
============================

   at Microsoft.AnalysisServices.BackEnd.DataModelingServer.ExcecuteXMLA(String bismContent, String databaseName, Boolean isAlter)
   at Microsoft.AnalysisServices.BackEnd.DataModelingServer.ExecuteXMLAFromFile(String bismFileName, String databaseName)
   at Microsoft.AnalysisServices.VSHost.VSHostManager.HandleExistingProject(Boolean isImported, Boolean& isRefreshNeeded)
   at Microsoft.AnalysisServices.VSHost.VSHostManager.PrepareSandbox(Boolean newProject, Boolean& isRefreshNeeded, Boolean& isImpersonationChanged, Boolean& saveRequired, List`1& truncatedTables, Boolean isRealTimeMode, Int32 clientCompatibilityLevel)
----------------------------
   at Microsoft.AnalysisServices.VSHost.VSHostManager.PrepareSandbox(Boolean newProject, Boolean& isRefreshNeeded, Boolean& isImpersonationChanged, Boolean& saveRequired, List`1& truncatedTables, Boolean isRealTimeMode, Int32 clientCompatibilityLevel)
   at Microsoft.AnalysisServices.VSHost.Integration.EditorFactory.CreateEditorInstance(UInt32 grfCreateDoc, String pszMkDocument, String pszPhysicalView, IVsHierarchy pvHier, UInt32 itemid, IntPtr punkDocDataExisting, IntPtr& ppunkDocView, IntPtr& ppunkDocData, String& pbstrEditorCaption, Guid& pguidCmdUI, Int32& pgrfCDW)

============================

Pasi


Show Sales Goals in cube

$
0
0

Hi,

I'm new to the Analysis Services product but my first cube (and reports using Reporting Services) have been created. I am at the moment somewhat lost trying to find some samples illustrating a scenario like this:

- a Facts table which has Fiscal Year,Qtr,Mth,Week, Customer, OrderAmount among others

- a Time Dimension, a Customer Dimension (Customers can be grouped by BusinessModel) etc.

- I have a SQL table which has Customer, Fiscal Year, Fiscal Qtr, GoalAmount (4 Qtrs a year, sum(Goal QTRs)=Year goal).

What I want is to display/report for a given Fiscal Year/Qtr the revenue realized and the Goal for a (group of ) customer (s).

Any help or link to an example would be appreciated.

Tia,

Martin


What are the different ways for end user to use the SASS project I built outside of BIDS?

$
0
0

Hi All,

What are the different ways to use the SASS project I built?  How can I allow user to perform what I can do in the cube Browser tab (dragging attributes and hierarchies to the pivot table) in BIDS?  


BI Analyst

Database disappeared after deploy another SA project

$
0
0

Hi All,

I have two projects in two different solution files.  When I deployed Project A, Project A database shown on the Object Explorer of SSMS, but Project B database would disappear.  When I deployed Project B, then Project B database shown on the Object Explorer of SSMS, but Project A database would disappear.  I did this several times and even restarted the server, but the same happened.  I checked the database name in the deployment section of the project property and they all have different names (Project A or Project B).  I did previously deleted Project B manually from the Object Explorer.  I am wondering if that has something to do with the database switching issue I am having.  Any help will be appreciated.  


BI Analyst

(It seems like every time when one project is ran, it replaced the other project. I deleted the database and ran again and same issue happened.)

MDX - Next 90 days and Las 90 Days of Data

$
0
0

Hi All,

I have to create two different calculated measures on a measure, one for last 90 days based on Startdate and other for next 90 days based on enddate.

Two time dimensions(StartDate, Enddate)

One measure group - a measure.

I created two calculated measures one for each and the cube is working fine for each of them individually but returns blank values when I use both date filters.


[Last 90days] =  SUM({[Start Date].[Date].CurrentMember.Lag(90):[Start Date].[Date].CurrentMember},[Measures].[Amount])

[Next 90days] = SUM({[End Date].[Date].CurrentMember:[End Date].[Date].CurrentMember.Lead(90)},[Measures].[Amount])

Can you please help me with this. Thanks

Tinku

Process Cubes/Dimensions prevents user connections

$
0
0

We have an SSAS 2008 R2 instance with cubes that are processed during business hours.  It's located on the same box as our SQL 2008 R2 datawarehouse that we're reading to refresh the information.

Our problem is that when we're processing our dimensions and cubes (which take about an hour each time) it seems that all user tools are unable to connect.  Excel, PowerPivot, SSMS, and ReportBuilder all hang on the creation of the connection. 

Note: The 1 hour processing time is actual processing time - we have a very unforgiving 10 minute query timeout and a small number of users at this point so I don't believe we have long running queries creating a cascade of locks like I've read of in some places.

This leads me to a couple questions:

1) Is it not correct that users should be able to query against the cubes while they're processing because it does the process separately and then "commits" after completion?  And isn't this "commit" usually a quick process?  In other words - while we're processing for an hour the commit should only be right at the end and not impact users much.

2)  Is it a bad practice to have our SQL and SSAS instances on the same box because of resource contention?  Is this documented somewhere?  I'm working on confirming now that with SQL being as greedy as it is with hardware resources that there's just not enough CPU/Memory left over for SSAS to instantiate a new connection when we're reading from SQL and processing SSAS.

Some discussions I've already read:

http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/bda2c5ca-011a-48ed-bc6e-42d018b2a597

http://social.msdn.microsoft.com/forums/en-us/sqlanalysisservices/thread/2F13FF99-EA9D-4819-AEDB-DBCAB74480F6

http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/ac3a9a97-e034-4c7d-9d45-555bce1b19b6

Thanks,

Justin

Viewing all 2472 articles
Browse latest View live


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