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

How to multi-search in excel pivot table axis filter against SSAS cube???

$
0
0

On an excel pivot table axis, we need to filter a large dimension to several members by searching the dimension using the excel OLAP filter search capability.  However, when you search for something with the filter, after it finds some members, your only choices are to select your new filter criteria ONLY.  It will automatically de-select anything you searched for and selected prior.  The dimension is over 10k members so does not all show up in axis filter and thus we can't select the members we want just by scrolling through.  So it would seem from excel it is impossible to do this most basic function which would be very disappointing given how basic and common the need is.  There has to be some other way than creating a set the cube to handle this.  How do you accomplish this?

Excel 2013

SQL Server 2012


Finding the first date member after a specific date

$
0
0

I have a fact table that looks like:

Account NumberAccount Status CodeEnd Date
DA124E1/31/2014
DA124F5/15/2014
DA124G7/15/2014
DA124H12/31/2999
BD25A11/14/2013
BD25B3/1/2014
BD25C7/4/2014
BD25D12/31/2999

I want to find out what the account status code was for each of these accounts based on a particular day

SELECT [Measures].[Fact Account Status Count] ON COLUMNS,
[Account].[Account Number].[Account Number].Members
* [Account Status].[Status Code].[Status Code].Members
* [Account Status Date].[Date].[Date].Members
ON ROWS

FROM

(SELECT ([Account Status Date].[Date].&[2014-06-01T00:00:00]:NULL) ON COLUMNS FROM [MyCube])

This would return:

DA124G7/15/20141
DA124H12/31/29991
BD25C7/4/20141
BD25D12/31/29991

How do I get it to only show me the first end date for each account after 6-1-2014? 

The results I'm looking for are:

DA124G7/15/2014
BD25C7/4/2014

Thanks for any help you can throw my way!!
Stephanie

SSAS MDX query

$
0
0

Hi Everyone,

I have following query regarding mdx,

My Dimension having structure and data like,

I want the mdx query from above dataset

1)Customer having at least one contract classified DPA(Contracts_BU) 

2)Customer having no contract

Dim_Contracts_dkey Contracts_BU Contracts_number Customer_number
1 DPA 445125 121
2 DPA 122
3 DPA 445188 121
4 DPA 445189 123
5 DAC 445190 124
6 DPA 125
7 DAC 436394 123
8 DPA 436395 128
9 DAC 129
10 DAC 436441 130
 

Dev SQL Server 2012 to Prod SQL Server 2014

$
0
0

On my Dev machine:

I have created an OLAP model and multiple SSIS packages using Visual Studio 2012 and SQL Server 2012.

On our Prod machine:

We will be using SQL Server 2014. Will I experience any problems during the deployment?

Obviously, I will need to update the data source connection strings but the database and data warehouse will be identical.

When moving to Prod, do I run the database and data warehouse scripts on the new SS 2014 instance or do I attach these files to the new instance?

Date of a max value in measure

$
0
0

Hi all,

I have a calculation that finds the max value in a date range I'm looking to add a calculation either to my cube or in an MDX query that finds the corresponding date to that value. the end goal is to know the highest value and when it occurred. an example of the end result is;

DateValueMax ValueDate of Max value
01/01/20151512005/01/2015
02/01/201510012005/01/2015
03/01/20155512005/01/2015
04/01/20156512005/01/2015
05/01/201512012005/01/2015
06/01/201511512005/01/2015
07/01/201511012005/01/2015
08/01/20158012005/01/2015
09/01/20156012005/01/2015
10/01/20154012005/01/2015
 

any help in how i could go about achieving that would be greatly appreciated

BI

Duplicated key - need solution

$
0
0
Hello,

Lets assume there are a fact table with columns:

people_id, measure1,measure2 (it doesn't matter what are stored there. People_id is unique in this table)

1,250,500

2,240,400

For example a man can have several cars. Let's say people_id= 1 has FORD, JAGUAR, people_id=2 has FORD, BMW.

Now I need to see measure only from those people who has JAGUAR cars. So in this case I would see only people_id = 1 values.

If I choose to see who has BMW and JAGUAR it wouldn't show anything because there aren't such persons who has AND BMW AND JAGUAR.

If I choose FORD and BMW it would show people_id = 2 because he has these cars.


For this case I need to create dimension.

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

This dimension would be for FILTERING ant not for aggregating.

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

My idea was to create dimension table where information would stored like that.

people_id, car

1 FORD

1 JAGUAR

2 FORD

2 BMW

Now I can't process this dimension because keys duplicate. I can't use key as people_id + car because Fact table demands two columns (has only people_id). Let's assume that people could have hundreds of different cars so I can't pivot like: people_id, FORD, JAGUAR, BMW and shows 0 (has car) ar 1 (hasn't car) values.

I hope that I explained my problem. Please give another solution for my problem if you can see.



I mean it is need to do something like that:

select * from FACT_TABLE f

where exists (select 1 from DIMENSION_TABLE d

where f.people_id = d.people_id and d.car in (select car from filter in CUBE (Excel) )

)

If you have enough experience and see that doesn't exist any solution for this problem - please say.

Grand total appearing wrong when browsing cube IN SSAS

$
0
0

Hi All,

When I was browsing cube GRAND TOTAL coming wrong . For that MEASURES i don't have any calculated measures.

I tried to set measures usage values as LAST NON EMPTY VALUES and COUNT OF NON EMPTY VALUES. But these are not working.

Can anyone please help to sort out this issue?

Appreciate your help.

Thanks

Siva


Siva

troubleshooting expression for calculated measure

$
0
0

I have a calculated measure in my SSAS 2008 R2 cube, that I need to troubleshoot. When I browse this measure, it shows me #Value!  instead of a number. When I hover mouse over, it shows the error

"Current Year Dimension attribute was not found".

For totals cell it says "Current Period Dimension attribute was not found"

My Dashboard Time dimension has attributes with Name "Current Year" and "Current Period".

Copied below is the list of attributes that I have for time dimension:

<code>

<Attributes>
                <Attribute Id="Dim ID" />
                <Attribute Id="Current Period" />
                <Attribute Id="Current Qtr" />
                <Attribute Id="Current Year" />
                <Attribute Id="Period" />
              </Attributes>

</code

Copied below is the expression for my calculated measure:

<code>

'IIF([Dashboard Time].CurrentMember.Level.Name = "(All)", strtotuple("([Dashboard Time].[" + [Dashboard Time].[2005].Properties("Current Period") + "], [Measures].[Stat Unearned Premium])"),
IIF([Dashboard Time].CurrentMember.properties("Current Year") = [Dashboard Time].CurrentMember.Name or [Dashboard Time].CurrentMember.properties("Current Qtr") = [Dashboard Time].CurrentMember.Name, strtotuple("([Dashboard Time].["+ [Dashboard Time].CurrentMember.Properties("Current Period") + "], [Measures].[Stat Unearned Premium])"), IIF([Dashboard Time].CurrentMember.Level.Name="Month", [Measures].[Stat Unearned Premium], ([Measures].[Stat Unearned Premium],ClosingPeriod([Dashboard Time].[Month], [Dashboard Time].CurrentMember )))))'

</code>


Trouble Setting Default Member in Role Play Dimension

$
0
0

Hi all,

I have a base Dimension named "DimBool" [values = True/False] this is implemented into 4 different Role Play Dimensions ["isShipped, "DemoMode" etc. ]

I need to set the Default member for the "IsShipped" Role Play = True. I have read many articles on how to do this (even the forum post titled "Different Default Members for Role Playing Dimension").

However when I go apply the MDX command as follows it does not change the setting. (I have tried several permutations of this)

ALTER CUBE CurrentCube UPDATE DIMENSION [IsShipped].[Name],
DEFAULT_MEMBER = [IsShipped].[Name].&[True];

Any Ideas on how to make this work?

Note: We are using SQL Server 2012R2 (11.0.3000.0)


AS 2000 Full Cube Process Committing transaction Error

$
0
0

Hi,

I have a problem with an AS 2000 Cube which is failing when I run a full process. The full process gets 99% through then at the final step - Committing transaction in database DBName it fails stating the connection to the server is lost.

At the same time I see an event ID 132 in my application event log stating:

There was a fatal error during transaction commit in the database DBName. Server will be restarted to preserve the data consistency.

Does anyone have any idea what might be causing this and how to resolve?

Thanks in advance,

Phil

MDX Rank function

$
0
0

I am having some trouble getting expected results when using the RANK function. My MDX is below with the result set that gets created. 

The [SF OCC Rank] results are correct but the [Net Rentals Rank] is not.  I am wanting to rank each of the measures to be able to identify which Site is ranked highest in [SF Occ %] and then which site is ranked highest in [Net Rentals].

My data has in total 43 sites.  In my filter I am limiting it to the Sites in [Site Groups].[Site Group Name].&[12].  There are only 14 sites that should display.  It looks like the [Net Rentals Rank] is ranking all 43 sites instead of just the 14 that I am wanting. 

Any help is greatly appreciated.  Thanks!

WITH
MEMBER [Measures].[SF Occ Rank] as RANK(([Unit].[Site Name].CurrentMember),ORDER(([Unit].[Site Name].[Site Name].Members),[Measures].[SF Occ %], BDESC))
MEMBER [Measures].[Net Rentals Rank] as RANK(([Unit].[Site Name].CurrentMember),ORDER(([Unit].[Site Name].[Site Name].Members),[Measures].[Net Rentals], BDESC))

select {[Measures].[SF OCC %],[Measures].[SF Occ Rank],
           [Measures].[Net Rentals], [Measures].[Net Rentals Rank]} on COLUMNS,
    filter( [Unit].[Site Name].[Site Name].Members,[Site Groups].[Site Group Name].&[12]) on ROWS
from [CUBE]
where ( [Date].[Calendar].[Month of Year].&[201412],[Site Groups].[Site Group Name].&[12])


MDX calculation based on date logic for the Jan 1 of current year through the 15th of the previous month

$
0
0

Hello, 
We need some help with an SSAS MDX query based on date logic. One of the problems is that I don't have access to the Cube but have been given a query example with the logic needed for the calculation. Here's the scenario; 

The ETL process will run on the first Tuesday after the 15<sup>th</sup> of a given month. The Analysis Cube data queried should include the current year up to the end of the previous month. For example, on May 19<sup>th</sup> (the first Tuesday on or after the 15th) the query should include data from January 1<sup>st</sup> through April 30<sup>th</sup>.

 

The 15<sup>th</sup> of the month is not part of the query, it is a factor in when the query is run. The query will always be in terms of complete months.

SELECT

                NON EMPTY { [Measures].[Revenue Amount],

                [Measures].[Utilization],

                [Measures].[AVG Revenue Rate],

                [Measures].[Actual Hours] }

ON

                COLUMNS,

                NON EMPTY { ([dimConsultant].[User Id TT].[User Id TT].ALLMEMBERS * [dimConsultant].[Full Name].[Full Name].ALLMEMBERS * [dimConsultant].[Employee Type].[Employee Type].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION,

                MEMBER_UNIQUE_NAME

ON

                ROWS

FROM

                ( SELECT

                               ( { [dimDate].[Week Date].[1/4/2015], [dimDate].[Week Date].[1/11/2015], [dimDate].[Week Date].[1/18/2015], [dimDate].[Week Date].[1/25/2015], [dimDate].[Week Date].[2/1/2015] } )

                ON

                                COLUMNS

                FROM

                                ( SELECT

                                                ( { [dimIsBillable].[Is Billable].&[True] } )

                                ON

                                                COLUMNS

                                FROM

                                                [SSASRBA]

                                )

                )

WHERE

                ( [dimIsBillable].[Is Billable].&[True], [dimDate].[Week Date].CurrentMember ) CELL PROPERTIES VALUE,

                BACK_COLOR,

                FORE_COLOR,

                FORMATTED_VALUE,

                FORMAT_STRING,

                FONT_NAME,

                FONT_SIZE,

                FONT_FLAGS

MDX Date - Format

$
0
0

Hi,

When I execute the below MDX Query it does not return any values,

SELECT {[Measures].[Tag Count]} ON COLUMNS, non empty { [Tag].[Changed Date].&[2015-01-20T07:22:57]  } ON  ROWS  FROM [Team System]

even though the value of the date ([2015-01-20T07:22:57])exists in the result set below

SELECT {[Measures].[Tag Count]} ON COLUMNS, non empty { [Tag].[Changed Date].Children  } ON  ROWS  FROM [Team System]

Could you please guide me on how to, if something is wrong in the syntax with the date?


Is SSAS the right tool for my active data monitoring?

$
0
0

I'm looking for a solution for actively monitoring many millions of records for abnormalities in data trends.  I'm familiar with warehouses, star and snowflake schemas, all of that good stuff.  I'm really interested in SSAS as the front end tool or any other Microsoft tool that may lay on top of it.

I have a ton of client databases, all with nearly identical structure, which have data loaded to them weekly or monthly.  I want to automatically monitor this data when it's loaded (when new records are added to the database, basically).  I would assume that this would be done through processing a cube periodically - I can trigger a reprocessing of the cube programmatically or whatever. I want to automatically get some kind of alerts when individual metrics that I have defined are outside of a threshold that I have defined (one field as a percentage of another, a standard deviation range as compared to previous months, etc).

I have something like this in place already, but it's all home grown and becoming a maintenance nightmare.  We want to expand it to other areas, add more metrics to monitor, etc etc.  If there's a product out there (ideally SSAS which I already own a license for) that makes this more manageable that would be fantastic.

Any other information you might be able to provide - articles, other product information, companion products, other tools, whatever - would be greatly appreciated also!  Thanks!


Processing takes long with ErrorLogFile in SSMS vs by Powershell

$
0
0

Hi,

Actually whe have some connection problems while we make a processing on a cubebuild instance. I execute a XMLA Statement in SSMS for a partition and set these Error Configurations:

KeyErrorLimit=10, KeyErrorLimitAction=StopLogging and a KeyErrorLogFile

Processing takes about 12 minutes. I see in Profiler that after about 3 minutes Processing is finished but the Application hangs for the next 9 minutes.

When I ignore all errors processing takes about 1:30 minutes.

I took a Powershell script from Vidas Matelis http://www.ssas-info.com/analysis-services-scripts/1238-powershell-script-to-process-all-dimensions-and-cubes-in-one-db-limiting-workload and modified for my needs.

Processing tooks about 3 minutes with logging.

Any suggestions why this happens?

Actually we use ASCMD for 2012 for our processing jobs. So if our further tests succeeds we will change to PS, but it would be interesting how this could happen.

Tanx


translation for calculated member

$
0
0

Hi,

is there any way to set language captions for a calculated member?

many thanks!

Users in active directory groups not useable when configured in Analysis Services security

$
0
0

I' using a SQL Server 2012 SP1 installation with cumulative update package #7.

When I configure active directory groups in Analysis Server Properties under Security the included users can't establish a session with the server. When configuring the active directory users directly, it works.

Is this a know bug? If so in which cumulative update package is it fixed? Is it fixed in service pack 2? If it is not a know bug, has anyone heard about this problem?


Errors in the OLAP storage engine: The attribute key cannot be found when processing: Table: performance_fact

$
0
0

Hi

We are using SSAS 2008 r2 and have a cube on our data warehouse, this has been running fine for quite a while now.

However it failed yesterday with the error message:

Errors in the OLAP storage engine: The attribute key cannot be found when processing: Table: 
'Performance_Fact', Column: 'accountexternalId', Value: '9474'. The attribute is 'External Id'."

Errors in the OLAP storage engine: The process operation ended because the number of errors encountered during processing reached the defined limit of allowable errors for the operation." 

An error occurred while processing the '2011' partition of the 'Fact' measure group for the 'DB' cube from the DB database.

Please can someone help me to resolve the error, I don't understand what it means.

Thanks

Uninstall Clustered Instance from Node

$
0
0

I've installed SSAS 2012 as a failover cluster instance on a 2-node Windows 2012 R2 cluster.  All was fine in that regard but I now need to change the instance name so am going about the process of uninstalling and re-installing.  I've successfully removed the second node from the configuration using the "Remove cluster node" wizard from the Setup options, but when it comes to removing it from the final node I'm getting the error "the cluster group **** could not be moved from node x to node 'null'".  At this point the uninstall fails and the cluster resource remains in cluster administrator.  It's obviously done some work/damage because the service won't start now, but it's left in limbo land where I can't do anything with it.

Is there a manual way of removing the instance to overcome this issue (file deletions, registry entry deletions etc.)?  (usual caveats regarding registry modifications accepted!) :)

Many thanks

Phil

Calculated Measure Based On Hierarchy Level

$
0
0

I have seperate product dimension for different region. In the calculated measure there is a case statement as below

case

when [Product-AA Region].[Hierarchy].currentmember.level.name='Brand' then [Measure].[Product Brand]

when [Product-BB Region].[Hierarchy].currentmember.level.name='Brand' then [Measure].[Product Brand]

Issue here is I need to repeat the case statement for all the product dimension. Is there anyway to combine the logic into one case statement?

when *.[Hierarchy].currentmember.level.name='Brand' then [Measure].[Product Brand] ??

Viewing all 14337 articles
Browse latest View live


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