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

Timeline Inserted But No Results In Excel 2013 With SSAS 2008R2 OLAP

$
0
0

I've been able to wrestle a Date dimension Timeline into my Excel 2013 OLAP Pivot table by setting the ValueColumn and NameColumn for the dimension and key as described elsewhere.  Unfortunately, no filter setting in my Timeline returns any results! 

When I select a date or range of dates in the Timeline, all cells disappear from the Pivot.  This happens even when I select the entire range of dates in the Timeline.  When I clear the filter, the entries reappear.  Here is the MDX from OLAP PivotTable Extensions:

SELECT  FROM (SELECT ({[ThroughDate].[Date].&[2013-09-10T00:00:00],[ThroughDate].[Date].&[2013-09-09T00:00:00],[ThroughDate].[Date].&[2013-09-06T00:00:00]})

ON COLUMNS  FROM [TotalVu]) WHERE ([Measures].[Amount])

If I use a conventional Slicer on my Date dimension, the Pivot displays results as expected.  When I select a single date or date range, the Pivot shows values for the date range selected.  Here is the MDX fromOLAP PivotTable Extensions:

SELECT  FROM (SELECT Filter([ThroughDate].[Time Key].Levels(1).AllMembers, ([ThroughDate].[Time Key].CurrentMember.MemberValue>=CDate("2013-09-06") AND [ThroughDate].[Time Key].CurrentMember.MemberValue<CDate("2013-09-11")))

ON COLUMNS  FROM [TotalVu]) WHERE ([ThroughDate].[Date].[All],[Measures].[Amount])

Can anyone tell me why this Timeline fails?


Multiple Dimensions across a single calculated member

$
0
0

Hi ,

I am trying to build a calculated member where when queried against a dimension it should show the same count through out all the members, for that I am using the following expression.

WITH MEMBER [Measures].Retry AS
iif(   [Measures].[Sale Prod Qty] = 0,[Measures].[Resp Qty],
SUM({[Sale   Prod].[Sale Prod Group].[ALL]},[Measures].[Resp Qty]))
SELECT   [Measures].Retry ON COLUMNS 
 , [Sale Prod].[Sale Prod Group].MEMBERS ON   ROWS 

FROM [Unique]

Here is my result set.

 

For the same member, I want to include few more dimensions where it should show the same count across the entire members of that dimension.

I would really appreciate if some one can suggest with right query.

thanks,


VSP

How to right choose key column in "Mining Structure" for Microsoft Analysis Services?

$
0
0

Hello!

How to right choose key column in"Mining Structure" for Microsoft Analysis Services?

 

I have table:" Incoming goods"

Create table Income (

               ID int not null identity(1, 1),

               [Date] datetime not null,

               GoodID int not null,

               PriceDeliver decimal(18, 2) not null,

               PriceSalse decimal(18, 2) not null,

               CONSTRAINT PK_ Income PRIMARY KEY CLUSTERED (ID),

               CONSTRAINT FK_IncomeGood foreign key (GoodID)  references dbo.Goods ( ID )            

)

I'm trying to build a relationship(regression) between “Price Sale” from Good and “Price Deliver”.

But I do not know what column better choose as “key column”: ID or GoodID ?

Distinct count - not counting 0 value

$
0
0

 Hi,

I need to count the number of organization, if the organization value to 0 or more than 0. Below is my Fact table,

OrganizationKeyCalendarYearPercentageofYouth
3596201350
3597201375
359820130
359920130
3600201350
3691201350
3692201350
36932013100

So, Here I need to count the Percentage of Youth.I have followed the below query,

DistinctCount(Filter([Dim Organization].[Organization Global Id].[Organization Global Id], [Measures].[Percentageof Youth]), [Measures].[Percentageof Youth])

It returns the output for = 6. It's ignore two zero values. But I need with zero value to calculate the count.It should come the result is 8. Kindly help me to resolve this problem.

Thanks,

Balasubramanian N.


assp.DiscoverXmlMetadata won't return source column (ColumnID) of a measure

$
0
0

Hi

I'm using the highly useful Analysis Services Stored Procedures to try to figure out this sprawling cube I'm working on.

I'm having big trouble trying to get it to show the ColumnID element of the \Source\Source element of a measure.  (This, of course, is the source column in the underlying fact table that  the measure originates from: very useful).

(In my example, I'm restricting the resultset to the members of one measuregroup, and that's working fine).

If I run this:

call assp.DiscoverXmlMetadata('\Database\Cubes\Cube\MeasureGroups\MeasureGroup|Name\Measures\Measure|Name\Source|DataType\Source|ColumnID'
,'Parent_MeasureGroupID=''TheMeasureGroupID'''
)

I get a resultset with these columns:

  1. TableID
  2. Source.Type
  3. SourceDataType
  4. MeasureName
  5. Parent_MeasureID
  6. MeasureGroupName
  7. Parent_MeasureGRoupID
  8. Parent_CubeID
  9. Parent_DatabaseID

Note that I've asked for the Measuregroup Name, Measure Name and Source DataType elements using the pipe symbol, and these correctly appear in the results.

The problem is that I've also asked for the ColumnID element of the Source\Source, but it doesn't show up.  For some reason the Source\Source.Type is returned, and the TableID element of the Source\Source, but not the ColumnID.

I checked the cube by "hacking" a copy of it with an .XML extension, and it seems Ihave got my XML structure right - this is what a measure looks like:

<Measure dwd:design-time-name="a369982d-840d-4c3e-a71f-53c0e822a28a"><ID>TheMeasureID</ID><Name>TheMeasureName</Name><Source dwd:design-time-name="5232e19c-2415-4ed9-8332-2b7ec817bca5"><DataType>Integer</DataType><Source xsi:type="ColumnBinding" dwd:design-time-name="1be5df92-c497-4a02-9d74-fed8a0b3b0d0"><TableID>TheTableName</TableID><ColumnID>ThisIsWhatIWant!</ColumnID></Source></Source><Visible>false</Visible></Measure>

is the problem something to do with the fact that the "|ColumnID" specification is at thelowest level?  I tried the same call without specifying |ColumnID, hoping it would return ALL elements of the Source\Source - but that didn't work either.

If this just doesn't work, does anyone know of an alternative bulk way to get the source column of measures in a cube/measuregroup?

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.

Lower grain dimension with higher grain Fact

$
0
0

Hi,

To work with a BI we need to have better data modeling and that should be so reliable that the calculation of measure value with corresponding dimension will be easier and in a right way. But in some situation correspond to upcoming requirement some changes is not possible.I faced one situation where I am connecting a fact table with the lower grain dimension table, So when I am slicing with the attribute of lower grain dimension the measure values are repeating.

Even I designed  with an attribute relationship, but it's not work.

Can anyone suggest me what should I do during this situation.

Thanks,

Sita


sita MSBI Garage

MDX to fetch measure's source table and column id

$
0
0

Hello All,

Can anyone help me providing mdx query to get the source table and column for a measure from ssas database. i want below highlighted using mdx.




how can i connect ssas cube to server

$
0
0

.Hi

how can i connect ssas cube to server . I have no SSAS SERVER INSTANCE

Ignore Unrelated Dimensions in Tabular Model

$
0
0

Hi All,

how to set 'Ignore Unrelated Dimensions' property in Tabular Model.

Thanks in Advance.

Joining multiple dimensions in MDX

$
0
0

Hi,

I'm new to MDX, and most of the time I customize existing queries rather than writing new ones.

I currently have a MDX query like this

SELECT 
[Measures].[Fees Billed]

                  on 0,

except([Age].[Day Buckets].members, {[Age].[Day Buckets].[All], [Age].[Day Buckets].&[Unknown]})
  on 1
FROM 
     MyCube
WHERE ([Fiscal Period].[Fiscal Year].&[2015], [Customer].[City].&[Auckland] )

Which brings the fees billed by age buckets where the customer's city is Auckland. I also have another dimension called [Sales Agent] with a member [City] in it, and there is a member in [Customer] called [Customer].[Sales Agent]

I am trying to retrieve the same information where the customer's sales agent's city is Auckland rather than the customer's city.

If it is SQL, I will join Customer and SalesAgent on Customer.SalesAgentUno = SalesAgent.SalesAgentUno and bring in the desired data.

Can someone please let me know if there is a way in MDX to do this? 


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

$
0
0

Hello, 

I know this is mainly a design problem. I 've read that there is a workaround for this issue by customising errors at processing time but I am not glad to have to ignore errors, also the cube process is scheduled so ignore errors is not a choice at least a good one.

This is part of my cube where the error is thrown.

DimTime

  • PK (int)
  • MyMonth (int, Example = 201501, 201502, 201503, etc.) 
  • Another Columns

FactBudget

  • PK (int)
  • Month (int, Example = 201501, 201502, 201503, etc.)

I set the relation between DimTime and FactBudget doing DimTime MyMonth as Primary Key and FactBudget Month as Foreign Key.

The cube built without problem, when processing the errror: The attribute key cannot be found when processingwas thrown.

It was thrown due to FactBudget has some Month values (201510, 201511, 201512 in example) which DimTime don't, so the integrity is broken.

My actual question: is there a way or pattern to redesign this DWH to correctly deploy and process?

Thanks for considering my question.

Making Dateadd return EXACTLY one month before (calculation @ 29/3 30/3 31/3 returns value at 28/2)

$
0
0
Hi,

i've developed this calculation to use in a model where 'dim posting date' as an hierarchy year|month|date. It allows me to:

1) if a month is selected and no date is selected, it does the calculation for Month

2) if a month is selected AND dates are selected, it does the calculation for the day. (already changed to allow non contiguous dates)

3) Finally, other situation is only the year selected, and in this case i want to appear BLANK.

But now i have a problem, in 2), at 29, 30 and 31 of March i get the (last) value of 28 February. I don't want that, How can i change the calculation to make it exactly return the value for one month before. If the day doesn't exist, i want blank to appear.

(the "opposite" happens without problems: at 28 February i get the value of 28 January)

Sales Amount M-1 :=
IF (
    HASONEVALUE ( 'Dim Posting Date'[Month] )
        && NOT ISFILTERED ( 'Dim Posting Date'[Date] );
    CALCULATE (
        [Sales Amount];
        DATESMTD ( DATEADD ( 'Dim Posting Date'[Date]; -1; MONTH ) )
    );
    IF (
        HASONEVALUE ( 'Dim Posting Date'[Month] )
            && ISFILTERED ( 'Dim Posting Date'[Date] );
        SUMX (
            VALUES ( 'Dim Posting Date'[Date] );
            CALCULATE (
                [Sales Amount];
                DATEADD ( 'Dim Posting Date'[Date]; -1; MONTH )
            )
        );
        BLANK ()
    )
)

AS .NET CLR - AS Stored Proc (ASSP project related) Ratio to Parent truncating data

$
0
0

I tried the codeplex forum first, but i see the same question dated from 2010 without any replies so thought I'd try here.


I'm trying to use the Ratio to Parent sproc - http://sqlblog.com/blogs/mosha/archive/2008/09/11/ratio-to-parent-on-rows-in-mdx.aspx

The problem is that the stored proc appears to be pegged at 4 decimal places (which translates to ##.##%). This is losing precision and isn't adding up to 100% when the ratios are summed individually.

Can this be fixed within SSAS or will i need to modify the assp code? .NET decimals are meant to automagically scale, so not sure why it's coming out as (5,4) but my .net coding knowledge is fairly poor.

I get the correct behaviour if hardcode a ratio to parent MDX calc (the resulting ratio has as many decimal points as are required)


Jakub @ Melbourne, Australia Blog

where are my ssas errors logged?

$
0
0

Hi.  I got this error from a sql agent driven cube process yesterday and am wondering where the log of errors is created...

Executed as user: x\servername$. <return xmlns="urn:schemas-microsoft-com:xml-analysis"><results xmlns="<root">http://schemas.microsoft.com/analysisservices/2003/xmla-multipleresults"><root xmlns="urn:schemas-microsoft-com:xml-analysis:empty"><Messages xmlns="urn:schemas-microsoft-com:xml-analysis:exception"><Warning WarningCode="1092354050" Description="Server: Operation completed with 1042 problems logged." Source="Microsoft SQL Server 2008 R2 Analysis Services" HelpFile="" /></Messages></root></results></return>. 
The step failed.


if its a property I can see related to the server in ssms, which property as I see lots of stuff with the word log in the property name.

UNKNOWN in SSAS Drill through

$
0
0

HI,

I have a SSAS cube, the dimension and cube are processed through an SSIS package every Hour.

The issue is in one of dimensions which is processed at Process Update, after the processing in the Drill through for that dimension all the columns are have value UNKNOWN.

No data is visible in drill through.

Any suggestion how to resolve this ?

Only show maximum row in row grouping

$
0
0

HI all,

I have a dataset that shows the client ID, visit date and number of positive visits performed.

For example

47 - 01/01/2015 1

47 - 01/05/2015 1

50 - 01/01/2015 1

...

I only want to show the row with the maximum visit date in my dataset. Does anyone have an idea how?

My current code looks like :

SELECT NON EMPTY

NonEmpty(
	NonEmpty(

		 {[Point of sale].[Client id].[Client id]}
		* [Point of sale].[POS id].[POS id]
		* [Point of sale].[POS name].[POS name]
		* StrToSet(@PAR_Stratum)
		*[Visit].[Visit date].[Visit date]
		, [Measures].[Number of recurrent visits completed]
	)
		* StrToSet(@PAR_VisitTaskType)
			,[Measures].[Number of recurrent visit tasks completed])

on rows,
{
	 [Measures].[Number of recurrent visit tasks completed]
	,[Measures].[IdleDays]

}
on columns
Thanks!

get absolute value in MDX

$
0
0

 

Hi all!

 

I create the cube and KPI successfully.

Now want to define the "trend" in MDX.

the problem is the trend is not linear, but a quadradic function, which means the kpi target is the highest point in the function.

in order to get the "trend expression", to get the "absolute value" is needed (as to measure how near to the target point).

but i browsed the operators available, there is no ||.

so...

sb. have idea on what i can do ?

Thanks

 

 

Format numbers in drillthrough action

$
0
0

Hello,

I have table with 3 columns: record_id (int), car (varchar(50)), amount (decimal(18,4)).

I created dimension for drillthrough action. Also I set Amount's column FormatString to '##0.00' but when I use Drillthough column Amount values is shown like:

.0000

15.7900

18.4100

Is there any possibility to change that values would be shown as follow:

0,00

15,7900

18,4100


Additional Actions to Display Dimension Description

$
0
0

Looking for a little help with defining an additional action to display a dimension description.  I have it working for measure descriptions where a user can right click on a pivot table measure and have an action that pops up the measure description using the ASSP discover single value command.  I want this same type of thing to work to display dimension descriptions but am stuck getting it to work.

Here is what I do for the measure description:

  • Target Type:  Cells
  • Target Object:  All Cells
  • Condition:  

Len(
ASSP.DiscoverSingleValue(
  "Description"
  , "MDSCHEMA_MEASURES"
  , "<MEASURE_NAME>" + [Measures].CurrentMember.Name + "</MEASURE_NAME>"
    + "<CUBE_NAME>" + [Measures].CurrentMember.Properties("CUBE_NAME") + "</CUBE_NAME>"
)
)>0

  • Type:  URL
  • Action Expression:  "http://intranet/Documentation/CubeDocumentation.html"
  • Invocation:  Interactive
  • Caption:

"Definition: "
+ Left(
   ASSP.DiscoverSingleValue(
    "Description"
    , "MDSCHEMA_MEASURES"
    , "<MEASURE_NAME>" + [Measures].CurrentMember.Name + "</MEASURE_NAME>"
      + "<CUBE_NAME>" + [Measures].CurrentMember.Properties("CUBE_NAME") + "</CUBE_NAME>"
   )
  ,100
  )
+ iif(
   Len(
    ASSP.DiscoverSingleValue(
     "Description"
     , "MDSCHEMA_MEASURES"
     , "<MEASURE_NAME>" + [Measures].CurrentMember.Name + "</MEASURE_NAME>"
       + "<CUBE_NAME>" + [Measures].CurrentMember.Properties("CUBE_NAME") + "</CUBE_NAME>"
    )
   )>100
   ,"..."
   ,""
  )

  • Caption is MDX:  True

Viewing all 14337 articles
Browse latest View live


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