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

SSAS Calculated Members for each week of month

$
0
0

Good day, I need help please.

I have a date dimension with structure/hierarchy (year - month - wkofmonth - day) & measure count

This works fine when I insert wkofmonth in columns & count in values but when I add another measure it duplicates per week

Product CountWk1(jan) CountWk2(jan) CountWk3(jan) CountWk4(jan) SalesVolume

1            1                        2                  0                         0               1000

Is there something I can do on the structure & do 4 calculated members pending how many weeks in a month, is there a simpler way where the next measure does not calculate by columns field

If calculated member for each week, how do I do this please with example code?

Thank You



Measure needs to be created using Dimension Attributes and then the measure attribute needs to be linked to other Measure groups for slicing and dicing

$
0
0

As per current design there are three Measure Groups (FACT 1,FACT 2 and FACT 3) and a Dimension (DIM_SHIFT). Please refer the screen shot attached below :

1. Now the requirement is that the two measures needs to be created from Dimension "DIM_SHIFT" using the attributes of the dimension. Please suggest how to implement the logic to fulfill the requirement

2. I have a logic but I do not know whether I should proceed in this direction or not . It is as follows:
a. I was thinking to created a SQL view of the Dimension and make it as source for both Dimension and Fact in the Cube.

Please guide with your suggestions so that I can proceed in the right direction

Sql server compression

$
0
0

hi,

why i cannot find the button of STORAGE when i  right click on table please help  

SSAS 2014 - Cubes on Partitioned table

$
0
0

Hi,

I have a table that is partitioned by the Date key. If I needed to create a cube on this partitioned table in SSAS 2014, would I need to partition the cube as well?

Thanks





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.

SSAS Data Source View - Refresh to check changes in underlying tables fails with "Object not set .." error

$
0
0

I am experiencing a problem in both SQL Server 2012 and 2014 SSAS in design view in SQL Management Studio after Opening an Analysis Services Database.

When I have the Data Source View showing in the detail pain and I right_click and select Refresh to check for any changes to the underlying tables and views in the database which the view is attached to, I get an "Object reference not set to an instance of an object." message.

I believe that the database link is correctly defined since processing the SSAS database completes successfully.  

The same SSAS database design works fine in SQL Server 2008 and 2005 Business Intelligence Development Studios and the Refresh for the Data Source View works correctly in both those environments.

Any suggestions?

Dynamic KPI Goal - derive from source database

$
0
0

Hi all,

I have a requirement to make all of my KPI goals configurable by the end user - I would like to add the data to my datawarehouse so that it is updated in the cube whenever the cube is processed. 

I'm unsure on how to achieve this...I'm thinking I will need a table for each KPI that includes two columns (I will be setting goal by year):

Year
Value

In my cube I then create a measure group for each KPI (for some I will add a calculations to break down the yearly goal to lower levels of detail).

I will add each measure to my Dimension Usage and relate to each of my time dimensions at the Year level.

I currently have around a dozen KPIs - my above approach seems a bit messy i.e. requiring a table and measure group for each KPI (I guess I could at least put them all into one table in my relational db). 

Looking for advice on how others do this.

Thanks for reading.

Clay


Stop SSAS Tabular updating after every change

$
0
0

Hi, is there any way to stop SSAS Tabular to stop updating after I make every change?

Often I'm making many small changes to table names, creating hierarchies and simple calculation. But it takes much longer because I have to wait for the tables to get updated each time.

Is there a way to do all the changes and update everything at once?

Thanks


Mdx Perfomance

$
0
0

can someone help me with tuning this query. how can I use the (iif) function or (scope) function because I read case statements are slow thank you in advance

MEMBER [Measures].[SortSelect] as
  CASE
   WHEN 'Revenue % Decrease' = 'Top' THEN [Measures].[Total]
   WHEN 'Revenue % Decrease' = 'Revenue % Increase' THEN ([Measures].[Pct Range] * 10000000000) + [Measures].[Total]
   WHEN 'Revenue % Decrease' = 'Revenue % Decrease' THEN -(([Measures].[Pct Range] * 10000000000) + [Measures].[Total])

  END

Need a book or websites that would help me to understand the cardinality so that I can relate dimension and Facts in the Cube accordingly.

$
0
0

Hi,

Though I have an experience of 2 yrs in SSAS still I am not able to decide how to relate Dimensions with Facts based on Cardinality. I come across different real world scenarios where entities have one to many, many to many relationships but it becomes difficult for me to relate these type of entities in the SSAS.

Can anyone please suggest a book or websites which would help me to understand Cardinality of entity relationship so that I can build the correct relationship in the Cube which would help me to slice and dice the measures and dimensions accordingly.

Basically I need materials with examples.



Synchronization Problems with larger Cubes on SQL2014

$
0
0

Hi,

we are using ASMCD to sync our cubes from a Cubebuild Server to a Reporting Server. We migrated some days ago from 2012 to 2014. We are also using rel. Engine with StoredProcs for calling and executing xp_cmdshell for the Ascmd.

Actually all works fine for our smaller cubes. For the bigger one we got the following issue. The cube is being synced but the proc delivers error.

In the log we found this entry:

(7/7/2015 11:26:22 AM) Message: The directory '\\?\D:\SSAS_DATA\GPMR Local CNTR.510.db\Local Controlling Cube.0.cub' could not be deleted. Please check the directory for permissions. (Source:\\?\D:\SSAS_LOG\msmdsrv.log, Type: 3, Category: 289, Event ID: 0xC1210020)
(7/7/2015 11:26:34 AM) Message: The directory '\\?\D:\SSAS_DATA\GPMR Local CNTR.510.db' could not be deleted. Please check the directory for permissions. (Source:\\?\D:\SSAS_LOG\msmdsrv.log, Type: 3, Category: 289, Event ID: 0xC1210020)
(7/7/2015 11:34:04 AM) Message: Lock conflict status report: Aborting transaction on SPID 264495 blocking transaction on SPID 264858. (Source:\\?\D:\SSAS_LOG\msmdsrv.log, Type: 1, Category: 289, Event ID: 0x41210042)

As said the other cubes are working fine. They using the same SQl user, impersonating by the same Domain user to execute the xp_cmdshell, got the same Proc structure. ForceCommitTimeout: 30000, CommitTimeout:0

Any Ideas?

Kr Jürgen

setting 1 dimension in ROLAP mode cause issues, the system try to filter on dynamic set names!

$
0
0

Hi,

I suffer a strange behavior.

I have an SSAS 2014 solution which works fine.

I do some test to convert 1 dimension in ROLAP mode.

(all the other dimensions and partitions are MOLAP only)

after this I cant process any cube!!!

even a process clear or structure runs forever!!!

the server call the dimension and try to filter the attributes using the name of dynamic sets setup in my cube! a real non-sense!

I have a dynamic set in my cube called "SelectedStores"

and during the process clear or structure, SSAS try to filter my dimension using this dynamic set.

so for sure this values doesn't exists in my dimension.

Also a lot of errors like the following are generated:

OLE DB error: OLE DB or ODBC error: Conversion failed when converting the nvarchar value 'SelectedStores' to data type int.; 22018.

its a big non-sense!!!

any idea on the cause for this?

thanks.

Converting MDX set query result to measure

$
0
0

Hi all,

I have a SET calculated member that returns me the first invoice date of a specific client ID.

The problem is that I want to find a workaround so that I'm not forced to use this set on my rows. I would like to make this a measure so I can use it in my columns and for other purposes.

Could anyone help me with that? Is it possible?

SET [First Invoice Date] AS
		Iif(
			COUNT(
				NonEmpty(
					[Date invoice].[Invoice date].[Invoice date],
					[CurrentSalesPeriod]
					* Ytd(StrToMember(@PAR_Date).Parent.Lag(1).LastChild)
					* [Point of sale].[Client id].CurrentMember
					* {[Measures].[YTD Sales]}
				)
			) = 0,
			{[Date invoice].[Bonus Calendar - Week].[All].UNKNOWNMEMBER.UNKNOWNMEMBER},
			Head(
				NonEmpty(
					[Date invoice].[Invoice date].[Invoice date],
					[CurrentSalesPeriod]
					* Ytd(StrToMember(@PAR_Date).Parent.Lag(1).LastChild)
					* [Point of sale].[Client id].CurrentMember
					* {[Measures].[YTD Sales]}
				), 1
			)
	)

Take in mind, that the currentsalesperiod is a single value, returned by a set

  SET [CurrentSalesPeriod] AS
		Tail(
			NonEmpty(
				[Point of sale].[Management period].[Management period],
				{[Measures].[Sales amount]}
				* Ytd(StrToMember(@PAR_Date))
				* [Date invoice].[Bonus calendar - Quarter].CurrentMember
				* [Point of sale].[POS id].CurrentMember
			), 1
		)


Lazy Aggregations option ignored, indexes still processed directly and still consumes 100% of the CPU

$
0
0

Hi,

I switched my partitions from Regular mode to the Lazy Aggregations mode to reduces the CPU usage during the processing step.

but this doesn't works, the partitions are still processed directly, not in background.

I'm using SQL Server 2014 with the latest SP1 and CU.

the server has the lazy aggregation option set to true.

I have no idea why SSAS ignore the option.

Any idea?

SSAS User Based Optimization

$
0
0

Hello Team,

Good Morning! We are trying to use the User Based Optilization property from the existing cube. While trying to execute the User Based Optimization execution steps, We have come across an issue that 'Format of the initialization string does not confirm to specification starting at index 0'. 

We could not be able to understand the exact reason for having this issue. Have made sure that the connection string existed in the cube is 100% correct.

Could you please look into this and do provide your thoughts on the resolution for this issue.

Thank you.

Regards,

Pradeep.


Error : No cube specified. A cube must be specified for this command to work.

$
0
0

Hi,

I am trying to implement a custom drillthrough in SSAS. The idea is do the drill down via relational db rather than analysis services db. I have imported the SQLQuery Assembly and it works fine. I have created a stored procedure in the Relational DB that takes parameters to return the data for that drill down. The stored procedure returns records for the particular fiscal year selected in the pivot. The problem I have is when I try to pass on the values from the Excel pivot selected Filters, I get the error  above mentioned error.

"call SQLQuery.ExecuteSql(

    'provider=sqlncli11;server=10.10.10.10;database=MyDataMart;trusted_connection=yes'

    ,' Exec SP_GetCasesDrillthrough '+ [Time].[Fiscal Year] )"

I think the problem is likely around the syntax of the MDX expression I am using to get values of the fiscal year (in this case). It seems its a context issue and I tried the using the cube name like ' [CubeName].[Time].[Fiscal Year] or

[Time].[Fiscal Year].CURRENTMEMBER.MEMBER_CAPTION

or

[CubeName].[Time].[Fiscal Year].CURRENTMEMBER.MEMBER_CAPTION


SSAS Rowset custom action expression

Error when clicking on the Additional Action >> Action menu

SSAS Action Error No cube specified. A cube must be specified for this command to work.

I get same error I try to execute the expression SSMS. Without MDX it works fine.

Any help in resolving this error is highly appreciated!





SQL Server 2014 BI edition

$
0
0

A simple MDX take log time to save .. when it is in Design stage the data is display according the MDX, but once I click the Finish Button it take for ever saying "Please Wait"

the server has 128 GB Ram and 4Tb HD it is new DELL server.

We was upgrading from sql 2008r2 to sql 2014 BI edition and just we was using the same MDX query (PowerPivot) but in sql 2014 take time to run (loading Data Model, Retrieving data, ) and save 


Behaviour of the OLE DB provider for Analysis Services - SQL Server 2012

$
0
0

Hi,

I need to find any official documentations for a my customer that describe how working the OLE DB provider for Analysis Services to return/expose SSAS multidimensional cube data or SSAS Tabular model data to the reporting BI tool.

I've found very few official articles.

Any helps to me, please?

SSAS Tabular - Problems deploying/processing

$
0
0

I'm developing one tabular project with some colleagues, and one of us felt the need to delete the tabular database from SQL Server, let's call it BDT_x_DEV.

This time - because we already have done this without problems - we can't do a full process to recreate it, a message appears when the data is being deployed (deploy is configured for full process):

"Multiple commands to Restore,Synch,Attach,Create database or Alter database with name='BDT_STOCK_DEV' or ID='BDT_x_DEV' that doesn't exist on server yet are working concurrently. Current transaction is aborted."

So, we don't understand what is happening here! Does someone know what is happening and how to solve it?

Regards and TIA

Conditional Measure in DAX

$
0
0
Hi all,

I have a measure that is a running total in a selected Month, as shown below;

CumulativeCount:=TOTALMTD(COUNTA('ConsolidatedFiles'[DiligentaCode]),'- EffectiveAccountingDate'[DateKey])

I need to add a condition on this based on another column (named AdminSystem). I basically want the following;

IF AdminSystem = 'TB' 
THEN TOTALMTD(COUNTA('ConsolidatedFiles'[DiligentaCode]),'- EffectiveAccountingDate'[DateKey])
ELSE COUNTA('ConsolidatedFiles'[DiligentaCode])

Is there any way this can be done in DAX?

Thanks in advance!
Viewing all 14337 articles
Browse latest View live


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