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

Less time for cube processing

$
0
0

Hello,

I have table for cube with following columns:

DateItem Buyers_addressTransaction_id

2014-01-01X1XXXXXXXXXXXX1

2014-01-02X1YYYYYYYYYYYYYY2

Information to he column "Buyers_address" comes manually and can have very long values. I need to see this column only using "Drillthrough Action". Is it possible somehow to process dimension in any way to cut processing time? Because when I process this column it takes very long time. Maybe there exists any work-around?


All member for Time hierarchy shows measures as NULL

$
0
0

Hi!

I've encountered the following problem.

I have a simple Time hierarchy in my cube (Date -> Month -> Quarter -> Year) and when I try to filter data by inserting the filter into nested FROM I get NULL for ALL element. For example:

SELECT NON EMPTY [DIM DATE].[DIM DATE].[All] on columns

FROM (SELECT ({[DIM DATE].[DIM DATE].[Year].&[2015]}) on columns from [CUBE])

WHERE ([Measures].[Measure1])

At the same time this query returns me normal value:

SELECT [Measures].[Measure1] on columns

FROM [CUBE]

WHERE ( [DIM DATE].[DIM DATE].[Year].&[2015])

Is there anything wrong with hierarchy? What should I check at the first place?

Many thanks in advance!


Issue with Disappearing Data from Dimension in Tabular Model

$
0
0

We have a date dimension in our tabular model that intermittenly, users will no longer see the values in the table when connected to the model using Excel.  The dimension will appear in Excel on the usual right pane with all the other tables but when a field is selected as a filter or row/column, the data does not appear.  Issuing a ClearCache command fixes the problem.  The data becomes visible again when refreshed in Excel.  Users will be good for a while until the next time it happens.

The date dimension is used to calculate a few measures with the following similar definition in all measures:

Measure X:=if(countrows(VALUES('Date Dimension'[Date_field])) = 1,
   CALCULATE(SUM('Fact Table'[Amount]), 'Bridge Table',
      FILTER(VALUES('Fact Table'[Date_field]),'Fact Table'[Date_field < VALUES('Date Dimension'[Date_field]))), blank())

Also, it's not generalized to all users:  one user may not see the dimension data while another will still be able.

I don't know what's causing the problem and how to fix once and for all.  The ClearCache is just a work around.

SSDT - Using a SharePoint list data feed as source - "column does not exist in the rowset" error

$
0
0

Hey guys!

So, I want to use a SharePoint list data to create a cube/tabular model, in order to make a complex analysis in PPS using MDX.

To create the tabular model, I'm using the SS Data Tools, and importing a feed from the respective SharePoint list (using the _vti_bin/listdata.svcextension and then selecting the list(s) I wanna to import).

Everything looks fine and smooth, I can select and preview the data in the table import wizard, but in the end, when importing, I always get this error IF the table has one or more row of data (if the table is empty, it's ok...) - the <...> column doesn't exist in the rowset.

(Curiously, when I have the same procedure in PowerPivot for Excel, I have no problems, everything works fine. The problem is that then I get again errors if I try to create a tabular model on SSDT importing a PowerPivot file).

Here's the error:

Had you already tried this in SSDT? Are you experiencing the same trouble?

Best regards, and thanks in advance!

Jorge Mateus


Jorge Mateus

MDX Query Not Working Well

$
0
0

Hi guys,

I created a calculated member using the following MDX query;

CALCULATE; 
CREATE MEMBER CURRENTCUBE.[Measures].[Dispute Accepted]
 AS 
        SUM(EXISTING([Measures].[Dispute Logged],([Dispute Status].[Status].&[Accepted]),([Date of Transaction].[Date].[All]))), 
FORMAT_STRING = "Standard", 
VISIBLE = 1 ,  DISPLAY_FOLDER = 'Dispute Management'  ;  

And this is the output i got when I tried to browse the cube. Please can someone help me and check what is wrong with the query. Thanks


me

Cube Security Effectiveness and Breaches

$
0
0

Hi!

I've a client with questions regarding cube security.  I've explained about role-based security which is driven by Active Directory user account membership in security groups.  I've talked about data-driven security models.  I've described dimensional and cell security ('atomic security').

But one question remains:  how effective is it?  What I believe is really being asked by my client is: how easy is it to crack?

Now, I've never heard of  a direct attack on an SSAS cube succeeding.  Have you?  Have youever noted a failed intrusion attempt?

I'm well aware that there are many other potential attack vectors, especially if the cracker gains access to the file system.  But here I am talking about a SharePoint-based front end containing the business intelligence portal to the presentation layer.  Authorised self-service users can also gain direct access to the presentation layer via an intranet IP.  These are the access paths I'm talking about.

FYI, although I'm referring to a fully-patched SSAS 2012/2014 installation, I'd like to ask you if you'veever heard of any attempt to crack an SSAS cube, of any version.

Cheers, Donna


Donna Kelly

Usign a working calendar for measure calculations - SSAS Tabular 2012

$
0
0

Hi,

I've a SSAS 2012 Tabular model where I need to import a working calendar (without week-end days and holidays) already built in the related SQL Server table. Respect to this working calendar I need to calculate the daily average of number of monthly orders. I'm searching a sample of use of working calendar related to a fact table.

Any ideas for me, please?

Thanks

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>


combine two resultset sidebyside in coulmn using mdx

$
0
0

hi i am new to mdx,

i want to combine two select statement resultset (side by side like union) using mdx query,please any body help me to solve this query

first query:

 SELECT
{ [Last Year] }
ON COLUMNS,

 { {[Location].[Location].&[7], [Location].[Location].&[12], [Location].[Location].&[11],
[Location].[Location].&[19], [Location].[Location].&[17], [Location].[Location].&[16],
[Location].[Location].&[9], [Location].[Location].&[18] },{[Location].[Location].[All]}}
ON ROWS

FROM [Cube1]

WHERE ( [Measures].[Labour %] )

here [Last Year] is a calculated set

{STRTOMEMBER("[Date].[Month].&["+ cstr(year(now())-2) +"-11-01T00:00:00]"):
        (STRTOMEMBER("[Date].[Month].&["+ cstr(year(now())-1) +"-10-01T00:00:00]"))}

2nd query:

WITH MEMBER [Measures].[Budget ] AS IIF(avg([Last Year],IIF(([Measures].[Budget]>0),[Measures].[Budget],null)),
                                        avg([Last Year],IIF(([Measures].[Budget]>0),[Measures].[Budget],null)),0.00),

MEMBER [Measures].[YTD] AS IIF(avg([Last Year], IIF(([Measures].[Labour %]>0),[Measures].[Labour %],null))<>null,
                              avg([Last Year], IIF(([Measures].[Labour %]>0),[Measures].[Labour %],null)),0.00),
FORMAT_STRING = "Standard",
BACK_COLOR = CASE WHEN [YTD] = 0  THEN /*White*/16777215 /*White*/  
WHEN [YTD] <= [Measures].[Budget ] THEN 65408
     WHEN [YTD]<= [Measures].[Budget ] +5 THEN 65535
     WHEN [YTD]> [Measures].[Budget ] +5 THEN 255
END,
VISIBLE = 1
SELECT
{  [Measures].[YTD], [Measures].[Budget ] }
ON COLUMNS,

{ { [Location].[Location].&[7], [Location].[Location].&[12], [Location].[Location].&[11], [Location].[Location].&[19], [Location].[Location].&[17], [Location].[Location].&[16], [Location].[Location].&[9], [Location].[Location].&[18] },{[Location].[Location].[All]} }
ON ROWS

FROM [Cube1]

here   ==> [Measures].[YTD], [Measures].[Budget ] are calculated member

i want result like in

coulmns===> ytd,budget,nov,dec,jan,feb.,,,,,,,,,,out

rows ====> are only locations and total(average of all locations)

please guide me to get solution like mdx query

Can't connect to analysis services

$
0
0

Hi,

After looking through the forum, I haven't seen the problem I encounter.

I am able to connect to the Database Engine, Integration services, Reporting Services but I can't connect to Analysis Services from SQL Server Management Studio although the service is running.

I am using SQL Server 2012.

I have the following error :

Internal error: An unexpected error occurred (file 'pfshcollation.cpp', line 323, function 'PFCollation::Init'). (Microsoft SQL Server 2012 Analysis Services)

The progam location is:

   at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Connect(Boolean toIXMLA)
   at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Microsoft.AnalysisServices.AdomdClient.AdomdConnection.IXmlaClientProviderEx.ConnectXmla()
   at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.ConnectToXMLA(Boolean createSession, Boolean isHTTP)
   at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.Open()
   at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
   at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

What can I do to connect?

MDX Query Not Working Well

$
0
0

Hi guys,

I created a calculated member using the following MDX query;

CALCULATE; 
CREATE MEMBER CURRENTCUBE.[Measures].[Dispute Accepted]
 AS 
        SUM(EXISTING([Measures].[Dispute Logged],([Dispute Status].[Status].&[Accepted]),([Date of Transaction].[Date].[All]))), 
FORMAT_STRING = "Standard", 
VISIBLE = 1 ,  DISPLAY_FOLDER = 'Dispute Management'  ;  

And this is the output i got when I tried to browse the cube. Please can someone help me and check what is wrong with the query. Thanks


me

Excel 2010 - Slicer duplicate values issue

$
0
0

Hi,

I am browsing cube using excel. I have created pivot table and using slicers to filter data in pivot.

Prob - I have few fiscal years and related fiscal quarters. My idea view is, if at any point in time I select fiscal year, I should be able to see only four fiscal quarters.

but my quarter slicer shows values from all years. It shows duplicate quarters. Please see screen shot below

Please note -  I am working with SSSAS 2008 R2 and Excel 2010. My hierarchy is as per SSAS stander (attribute relationship & key properties).

Please let me if you have some idea about it.

Thanks in advance.


- Prashant

Reg: Wrong Count from One Dimension Alone .....

$
0
0

Hi We have inspection Module..

Fact inspection have following Measures

1.InspectionID - every Inspection have unique ID

2.Count(ViolationID) - everty Inspection Have 1 or more than one Violation so we have count of violationID group by InspectionID

3.Datekey---

4.TimeKey--

so i Have separate dimension for Inspection and Violation .

Inspection Is a parent 

we have separate table for violation ,Violation is a child..

when i browse inspection Count its giveing correct count..

if i browse violation count(Fact_table) from Violation Dimension its giving wrong Counts...

plz do need full..


pandiyan


Processing current Partition only via XMLA

$
0
0

I have a cube with multiple partitions i want to process only current partition Hourly for a day how can i dynamically do this via XMLA script. 


Account type AggregationFunction is wrong

$
0
0

Hi & help!

I trying to set up account dimension using the BI wizard. When I configure appears wrong type of aggregation, unlike defined here. Accordingly, the calculation is incorrect :(
Tested on ealer BIDS version for SQL Server 2008R2 - everything is working properly!

SSAS Dev Edition 12.0.2405.0, SSDT 2013 (Microsoft SQL Server Analysis Services Designer 
Version 12.0.2000.8) 


Voyager_lan


Errors in the OLAP storage engine: A duplicate attribute key has been found when processing.

$
0
0

Hello guys, im new in BI and cubes, im trying to do a model but im not sure about if its possible.

I have 2 Dimensions and 1 Fact. Dataset is a consolidated Data of 50 Enterprises.

Dimension Division who represent what they do grouped by Enterprises.

ID_Division and Name_Division

Dimension Providers who represent the providers of all the Enterprises.

ID_Division Name_Enterprise ID_Provider Name_Provider

Fact Providers_Amount

ID_Division Name_Enterprise ID_Provider Net_Amount ID_Comp ID_Class

So i need to represent this info in a cube, i already can do it doing a Composite Key with ID_Division+Name_Enterprise+ID_provider, because ID_Provider is the same in different enterprises.

But i only have to group by ID_Division or Name_Division.

I just want to filter by Name_Provider, but Provider can be in more than 1 enterprise.

So i need to combine Composite Key + Name Provider, is it possible? How can i do that?

no longer seeing Analysis Services databases

$
0
0

When I connect (with windows authentication) to Analysis Services server I no longer see 3 existing databases. Say , this username is domain/abc

Analysis Services are running as "Logon as" NT SERVICE\MSSQLServerOLAPService service

What should I check, this user used to be able to see all databases ? Where can I add permissions to Analysis Servises db?

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

A problem connecting to AS running on HyperV using a simple workgroup

$
0
0

Hi,

Please help, I am baffled by this.

I have created a Windows Server 2012 R2 virtual server on Hyper V. The host machine is Windows 8.1. I have then installed SQL Server 2014 on the server and patched up to date. I have correctly enabled the TCP/IP networking and have configured the Firewall ports as outlined in the Technet Guide.

I can connect to the SQL Server Database from host/remote using the sa account but not my <Host>\<UserName> windows account. Acceptable but not ideal.

When it comes to connecting to AS from host\remote I only get a windows log in and then when manually typing in the name of the client server I get the following message.

TITLE: Connect to Server
------------------------------

Cannot connect to SQLServer1.

------------------------------
ADDITIONAL INFORMATION:

A connection cannot be made. Ensure that the server is running. (Microsoft.AnalysisServices.AdomdClient)

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

Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. (System)

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

An existing connection was forcibly closed by the remote host (System)

This looks to me as though the <host>\<user> log in isn't recognised by the client even though the user is set up on both. I believe this is a Domain issue. I guess the correct fix is to set up an virtual Active Directory but at this stage I don't want to do this. Both host and client are on the same workgroup and this is configured correctly so why are the domain issues cropping up. I'm sure this didn't use to happen a couple of years ago when I tried this has some security issue changed?

Any advice welcomed - many thanks in advance

Regards

Nick

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
 
Viewing all 14337 articles
Browse latest View live