Quantcast
Channel: SQL Server Analysis Services forum
Viewing all 14337 articles
Browse latest View live

Calculated Measure Grand Total has #Value!

$
0
0

 

   I created a calculated measure that based upon dates pulls back a different measure. It works but Grand Total
doesn't display in Browser shows error above in title. When  I pull these measure into Browser I can see that for the
months that don't apply to in logic they are empty and I wondered if that what was throwing of Grand Total. I tried using
the IsEmpty and set it to Null or 0 but didn't change Grand Total.

IIF(ISEMPTY([month part] >= [Current Month].[Measures].[Current Forecast]) or ISEMPTY([month part] < [Current Month].[Measures].[Qty Shipped]),0,
IIF([month part] >= [Current Month],[Measures].[Current Forecast],[Measures].[Qty Shipped]))


Calculation for Last Value in a Date Range

$
0
0

Hi all,

I am trying to create a Calculation that will always return the last value for a date range ...

Something like the following:

MemBer [Measures].[Last WorkIn] as 
([Date].[Date].LastChild, [Measures].[Work In])

SELECT {[Measures].[Last WorkIn]} ON COLUMNS
FROM Cube
WHERE ( [Workgroup].[Workgroup].&[724], [Date].&[20150909] : [Date].&[20150916] )

As always with MDX, I feel I am missing something silly! :)

Thanks in advance!

Keith.

How to improve the reads from OLTP reprocessing Dimensions Attributes in SSAS?

$
0
0

Hello

I'm working to reduce the time that we spend to reprocess our SSAS cube.

The slowest part is processing the dimensions (Process Update or Process Add), in specific the bottleneck is when SSAS is reading from OLTP. When I open profiler I can see the event "Read Data" and the column "Integer Data" increases in chunks of 10,000. Based on this I have the following questions:

1. Does SSAS read and write data in chunks of 10,000?

2. How can I increase that number?

3. Any suggestions to improve the performance?

PS I already created indexes in the source tables and increased the ThreadPool\Process\MAX Threads 

Thanks in advance

How to change the column name

$
0
0

Hi 

In SSAS tabular model cube is connected with excel using pivoting tool. so when i drag column of table  into columns(MinMsINc) in excel it not showing that name it is showing "ColumnName" how to  display column name same as MISMSINC?




Error on the process of the cube Error OLE DB : Error OLE DB or ODBC 

$
0
0

Hi 

when i running  the process cube am having this errors

Error -1056964601 : Error interne : L'opération n'a pas abouti.
Error -1056571392 : Error OLE DB : Erreur OLE DB ou ODBC : Login failed for user 'NT Service\MSOLAP$PCMH'.; 28000.

it's seems to me like connection problem but when i create the vue and i did explore the data i t worked and managed to sea the data sow that means that it's not a connection problem ??? 

can any one help me 

Many to Many Relationship in SSAS Tabular Model

$
0
0
Hi ,
      I have Accounts and Customers from an account should be related <g class="gr_ gr_11 gr-alert gr_gramm gr_run_anim Grammar multiReplace" data-gr-id="11" id="11">with</g> multiple customers and customer also related with multiple Accounts .For <g class="gr_ gr_18 gr-alert gr_gramm gr_run_anim Grammar multiReplace" data-gr-id="18" id="18">these relation</g>, I have attached screen shot what <g class="gr_ gr_17 gr-alert gr_tiny gr_spell gr_run_anim ContextualSpelling multiReplace" data-gr-id="17" id="17">i</g> have  designed in <g class="gr_ gr_10 gr-alert gr_spell gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="10" id="10">ssas</g> tabular model.which is not working properly.

kindly advice me how to solve this issue.

Thanks,
Praveenkumar.kmany to many relation in ssas tabular model

Having Trouble with OLAP Processing Dimension Progress

$
0
0

I have created a dimension named "PRODUCT". I have used "ID" for key columns and "NAME" for name name columns.

Product Dimension

After that i have clicked Process button and it has been successfully deployed but when i have clicked the "run" button then i got error like this. Could anyone help this? I am new to OLAP analysis serives.



Error Details:

<Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
  <Parallel>
    <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200" xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300" xmlns:ddl400="http://schemas.microsoft.com/analysisservices/2012/engine/400" xmlns:ddl400_400="http://schemas.microsoft.com/analysisservices/2012/engine/400/400">
      <Object>
        <DatabaseID>ONU_GUL</DatabaseID>
        <DimensionID>PRODUCT</DimensionID>
      </Object>
      <Type>ProcessFull</Type>
      <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
    </Process>
  </Parallel>
</Batch>
Processing Dimension 'PRODUCT' completed.
Start time: 5/15/2016 3:17:14 PM; End time: 5/15/2016 3:17:14 PM; Duration: 0:00:00
Processing Dimension Attribute 'ID' completed.
Start time: 5/15/2016 3:17:14 PM; End time: 5/15/2016 3:17:14 PM; Duration: 0:00:00
Errors and Warnings from Response
Internal error: The operation terminated unsuccessfully.
Server: The current operation was cancelled because another operation in the transaction failed.
The datasource, 'ONU GUL', contains an ImpersonationMode that is not supported for processing operations.
Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'ONU GUL', Name of 'ONU GUL'.
Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'PRODUCT', Name of 'PRODUCT' was being processed.
Errors in the OLAP storage engine: An error occurred while the 'ID' attribute of the 'PRODUCT' dimension from the 'ONU_GUL' database was being processed.

ranking in mdx

$
0
0
Hi Folks,

I'm trying to find out the MDX code which will permit me to display
my top 10 client and their rank the year before.
For example Let say I am in ADW DW database and I want something like this:

TOP 10 Clients

Customer - rank 2008 -  rank 2007
customer1 -  1 - 6
customer2 -  2 - 25
customer3 -  3 - 12
customer4 -  4 - 1
customer5 -  5 - 2
customer6 -  6 - 6
customer7 -  7 - 4
customer8 -  8 - 15
customer9 -  9 - 5
customer10 -  10 - 35

Meaning that customer1 is in the 1st place on 2008 and was on 2007 in the 6 postion.

Restrict Attributes members for other countries

$
0
0

Hello All,

My Greetings for the day!!!

I have developed a Sales cube which holds data for multiple countries for eg- Denmark, Spain and France.

We have defined roles to restrict the users to view the data of there respective countries.

When a Denmark user connects the cube to view sales person wise data through excel/ sharepoint/ ssrs. He can see all sales person names for the 3 countries in theFILTER.

We don't want to show them these Sales person name rather than respective countries.

Can you please suggest me ?

Regards,


Hiren Parikh

Same measure appears in both sides of equation

$
0
0

Hi,

The following statement makes refreshing of the cube takes forever.

Is it possible to have the same measure in both sides of equation?

Anybody knows how to fix this problem as I would like to show below logic in  [Measures].[Job Advert Value] .

SCOPE([Time].[Year - Week - Date].[Week].members, [Permanent Placement Value].[Value Type Name].&[Vacancies], [Measures].[Job Advert Value]);


   [Measures].[Job Advert Value] = 

SUM(
  GENERATE(
    [JAP ID].[JAP ID].MEMBERS AS s
   ,s.CURRENT *
    TAIL(
     NONEMPTY(
       EXISTING [Time].[Year - Week - Date].[Date].MEMBERS
       ,(
         s.CURRENT
        ,[Measures].[Job Advert Value]
        )
      )
    )
  )
,[Measures].[Job Advert Value]
)/2;



END SCOPE; 

 

Custom Aggegations on Parent Child Dimension

$
0
0

Morning All,

I have a parent child dimension(where no specific levels defined). The leaf level calculation is division. But I need to summed up at the non-leaf levels(higher levels) . I used Isleaf function to differentiate leaf and non-leaf levels to apply the scope calculations. But the performance is very poor.

I cannot use Leaves() function as I need this aggregation to be worked on multiple hierarchies in multiple dimensions.(Because I see only the latest scopes will be considered here!!!??)

Is there any other way to (block method) differentiate leaf and non-leaf levels in parent child dimension?

Thanks in Advance and Best Regards,

---------------

Export Tabular model

$
0
0

SQL 2014

We have a crazy request that we need to find a solution to for business reasons, no matter how dumb it might sound.  We need to export a tabular model.  We'd prefer to not simply export the fact tables as we'd like to be able to export the calculations too. The end result is to take our tabular model and consume it in Wave Analytics.

I've searched high and low and can't seem to find a way to do it.  Is it possible?  If it's possible to somehow do a "select *" in MDX or some other way, can you please tell me how to do it?

Thanks in advance.

"Object reference not set to an instance of an object" error occurs when trying to edit or open a named query

$
0
0

I’m going through the MS SQL Server SSIS Step by Step book from Microsoft Press and I think I have an issue with my install of MS SQL Server.  On the first exercise, the book instructs you to open an existing project and then open a data source view from the project.  The data source view contains several table objects and a named query object.  When I right-click on the named query object and then choose ‘Edit Named Query …’, I get a pair of ‘Object reference not set to an instance of an object’ errors.  This also happens if I double-click on the object itself.

 

I created a blank project.  Then I created a Data Source View and populated it with tables from an existing database using the wizard.  When I tried to add a new named query I got the same error.

 

Is there a configuration error here?  So far all of the other functions have worked normally.

 

SQL Server 2005 Developer - SP2 (all patches applied) (SQL Server 2005 Evaluation exhibits the same error)

Alll servers are logging on as localsystem

Windows XP Professional - SP3 (all patches applied)

How to Uninstall/reinstall OLEDB providers for Analysis Services

$
0
0

Hi

I'm running into big problems trying to run Power[anything] in Excel.  PowerPivot, PowerQuery, PowerMap just crash Excel - as soon as I do anything from the PowerPivot toolbar (e.g. just press "Manage").  Sometimes they crash Excel on startup.  They also crash Excel when I attempt to disable them through Options\Addins.

Excel is also refusing to play nice with OLAPPIvotTableExtensions, an excellent tool that I could really do with using in my job.  It crashes Excel on startup unless disabled.

I've tried every kind of install/uninstall, of Excel itself, of the various PowerX components.

One proposed solution here suggests uninstalling the PowerX components, and then:

2) Manually deleting the C:\Program Files (x86) \Microsoft Analysis Services\ + all its sub-folders/contents. Also check for C:\Program Files\Microsoft Analysis Services\;

I'm not comfortable with doing that.  As far as I can tell these files have nothing to do with the operation of my instance of SSAS (2014, local machine): they seem to be the OLEDB providers.  But simply deleting folders under C:\Program Files just causes major hassle in my experience.

I'd like to completely uninstall all the OLEDB providers for SSAS and then install the ones I need.  (At the moment I have folders called10, 110 and 120 in both locations: C:\Program Files\Microsoft Analysis Services, and in the equivalent Program files (x86) location).

I've found this page: https://support.microsoft.com/en-us/kb/2735567 which seems to allow me to download the OLEDB providers.  (No 2014 link on that page, but I guess I can find it)

But how do I uninstall them first?  They don't appear in the Control Panel list of installed software.  I might be able to uninstall the SQL2014 version through SQL3014 Setup (at the moment it's asking me for installation media... will have to download it again from MSDN); but as for the 2012 and 2008R2 versions, I've no idea where the install/uninstall is.

Approach for Self Service BI

$
0
0

Hi All,

I have a requirement where in Business users would like to create a report on the database. I am considering following approach, Please suggest in case of any better approach or Please correct me if there is any problem with the below approach.

First approach: creating SQL view and exposing it for users to consume but the problem is data is very big and i see that users will see performance problem.

I am considering creating either multidimensional (Second Approach) or tabular (Third) model to overcome performance issue with the first approach.

I am seeing the following problem with these approaches

1) user may want to analyze by any dimension so i would need to bring in all the tables and all the columns from the database and it would have huge performance issue.

2) In case of  multidimensional cube approach : Suppose some how i create a data model and expose it for users to consume it and allow users to create reports using SSRS builder, then one potential problem which i am seeing is that if users want to create a parameterized report then they would need to learn MDX to create data set for parameter and use it (Please correct me if i am wrong).( Excel is not the option as user need to share this report with other company people using ASP.NET page , If we can allow users to access the excel report in ASP.Net please let me know the approach)

3) I never work on tabular model, so i am not sure whether it is worth spending time on learn and checking that technology for this business scenario.

Thanks in advance. 





Duplicate a Time Dimension

$
0
0
In my current solution, there was added a 2nd DateId. So I would like to duplicate the time dimension, along with the named calculations and all the configuration. I copy the dim and try to added an existing item, but I get an error that cannot be loaded because it has the same ID. What exactly I have to change in order to have the same dim with different name?

Excel failed to refresh from Analysis services- connection Timeout expired error

$
0
0
Hi Team,

I am facing excel pivot refresh issues while connecting with Analysis services Multidimensional model. Details below,

1) I am trying to drag and drop the measure value from field list which is having Distinct count as measure calculation in cube. After 40 seconds of the refresh the Excel is throwing the error "The connection timeout was exceeded"


2) Traced query which is running in the backend and ran separately in the SQL browser of the particular cube. It is running for about 9 mins and providing the results. 9 mins is acceptable during the excel refresh. 

NOTE: Rarely it is getting refreshing for about 10 mins but most of the cases it is getting failed within 40 seconds with "timeout exceeded" error.

Option tried: 

Provided the Timeout=360000 in the excel Analysis connection string, but no luck it is throwing error within 1 minute but I can see the queries are submitting perfectly fine in the backend but once the error thrown at the excel end it is getting stopped at that point in the profiler.

Any pointers is really appreciated.

SSAS project deployment issue

$
0
0

I am using BIDS and trying to deploy SSAS project on SQL Server 2008 server. Cube, Dimensions, DS and DSV deployed successfully (as I can see them in SSMS on server) but cube and dimensions are not processed. I got below error.

Errors in the high-level relational engine. The following exception occurred while an operation was being performed on a data source view: Configuration system failed to initialize;Unrecognized configuration section startup. (C:\Program Files\Microsoft SQL Server\MSAS10.SQL2008ENT\OLAP\bin\msmdsrv.exe.Config line 2).

Please help.

SSAS Tabular Perfomance 0 Rows Returned

$
0
0

Hi,

I have an SSAS Tabular cube that generally preforms well.  However if when creating a query in Power BI, if a user is filtering a column and there are no results returned than the query runs for several hours and the CPU of the server will stay at about 27% CPU usage, if there is no other load on the system.  However the same query if they filter a column  and the value exists in the column than the query returns in under a second. The model has no partitions, but it is relatively small.  The table in question is 2.5Million rows and the total model size is .5 GB. Does anyone have any clue what is going on?

Thanks!

Error while testing LINKED SERVER connecting to Analysis services tabular from sql server 2014

$
0
0

Hi, 

I have created a Linked Server in SQL Server 2014 to connect to SQL Analysis Services TABULAR and when I do a "Test Connection" I am getting the below error:

LINKER SERVER PROPERTIES:

>>GENERAL<<

Linked Server:LINKED_OLAP
Servery Type:Other data source
Provider :Microsoft OLE DB Provider for OLAP Services 8.0
Date Source:BTSENT\SSASTABULAR
Catalog:<<ssas database name>>

>>SECURITY<<

Be made without using a security context

>>SERVER OPTIONS<<
Default settings

Please let me know if you have a solution for this problem.

Viewing all 14337 articles
Browse latest View live


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