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

SSAS2016(SP2): False DAX error when parsing INTERSECT() function

$
0
0

Note: This occurs within a measure definition not an evaluate statement.  (clarified 04 JUL 2018)

When using a string column MyTable[StringCol] the following DAX INTERSECT() function generates an error of: Intersect cannot work between string and variant column types

INTERSECT(
  VALUES(MyTable[StringCol]),
  UNION(ROW("TestCol", "Value1"), ROW("TestCol", "Value2"))
)

This is generated by the Tabular Object Model, TOM, and SSDT treats it as a genuine error.

However, the measure is valid and this is proved by using the TOM to deploy a model then executing code that exercises the measure containing the INTERSECT() function


handle 0 for DAX resultset

$
0
0

Hi

I have created tabular model and we are using Power BI for reporting. when I am showing some measures data on Power BI, it is showing up blank but instead I want to show 0. I tried one option i.e. Measure + 0 but it is showing me other attribute rows also for which measure values are blank. Is there any way to handle this situation in SSAS tabular model or PowerBI side ?

Drill Through Action on SSAS 2016 with multi select

$
0
0

I am using SQL Server 2016 Enterprise edition. So assuming it is SSAS 2016.
How do I check what is the Excel version. I don't see an About tab on Excel. Please post a snapshot  if you know where it it is.

I looked at this post where it is mentioned that drill through action works on ssas 2016 + excel 2016 .

SSAS 2016 Custom Drill Through Action with Multi Select in the Filter

Has this bug been resolved?

I am experiencing the same issue of drill through action not working with multi select.

Any workarounds are highly appreciated.

Thanks in advance.


https://social.msdn.microsoft.com/Forums/sqlserver/en-US/ba0918ae-70aa-4ca4-a08d-7383a995e090/ssas-2016-custom-drill-through-action-with-multi-select-in-the-filter?forum=sqlanalysisservices&prof=required

DAX :- How to use Evaluate for the given requirement

$
0
0

Hello All,

I have a fact table with following columns ( FactID, Salary, DimEmpID, DimManagerEmpID)

and have one dimension table ( Empid, EmpName).

EmpID is joined with Fact and dimension.

DimManagerEmpID from Fact table also have values of EmpID of dimension.

--

My requirement is that,

When I select 2 or more EmpName from dimension, 

Salary should be 0 if DimManagerEmpid is in Selected EmpID from dimension.

I could achieve the requirement as Fact(DimManagerEmpID) IN VALUES (Dim'EMpID').

It is working fine when fact record count is less..

But it is taking more time and going in loop when there are million record count in Fact table.

Please suggest if there is any way to get the requirement with good performance.

Thank you for your support.

Thanks,

Ravi

Tabular: Is it possible to hide Unit price when not on a level that applies?

$
0
0

So I have a valuation table which has a measure that uses lastdate to show the right valuation. 

I also want to show the units and price, however this will only be correct when on the product and day level, in my case month, as I have one valuation per month. 

How can I suppress the price or unit when the granularity does not make sense?

Thanks

Regards

Jon

Tabular Model not showing latest data

$
0
0

I've got some odd behaviour with my Tabular Model.

Since creating my model, the underlying database has new records.

So I did a process all.

My Date dimension has a lot of dates, so I created a CALCULATEDTABLE that only has the min and max from my FactTable.

If I check the calculated table within the model, it has my new date.

However when I hook into it via Excel or PowerBI, the date dimension is missing the new date.

What is going on?

Integer column set to don't Summarize in SSAS Tabular Model but when pulled in PowerBI its getting summarized

$
0
0

Hi All,

I have situation where i have set one  of the integer field in my dimension table as don't summarize in ssas tabular model but when that field is dropped on powerbi  its defaulting to Average   have checked all property setting but don't know what am i missing .

Please let me know if this is something common that happens or i am missing something 

thanks 

ASSP Sql server 2017

$
0
0

Hi all,

I have been using ASSP quite a bit but struggle now with SQL server 2017.

Is there any download/install available? 

https://asstoredprocedures.github.io/ASStoredProcedures/downloads/

Seems to be lacking 2017?


How can we optimize partition query in a cube.

$
0
0

My query is like -> select * from dim_loc_view where greatest(DATE1,DATE_P_C) between TRUNC (SYSDATE,'YEAR') and (TRUNC(SYSDATE, 'MONTH'))- INTERVAL '1' SECOND.

Any suggestions are most welcomw.

Thank you,


sania

Tracing and monitoring MDX query against a SSAS Tabular model - SSAS 2012

$
0
0

Hi,

in order to trace and monitor the MDX query produced an Excel 2013 workbook connected to a SSAS Tabular data model, is it enough to use the SQL Profiler?

I need to see the MDX query produced when a filter/slicer selection occurs inside the Excel workbook.

Many thanks

SSAS 2017 CU8 Processing crash Analysis Services

$
0
0

Hello,

anybody experiences the behavior, that at the end of cube processing the whole analysis server stops responding? Even on a restart service command the server doesn´t shut down, I have to kill it in task manager.

I checked in the web already and I´m sure, that the processing provides the global commit. Obviously the commit is sucessful, because when the server is restarted, the data is updated. But the problem is, that in the situation when the server hangs, that we have no chance to connect to the server and so we have no chance to investigate, what´s going on exactly.

Anybody out there with any advice? Or is it definietly a bug?

Best regards,
Thomas

Cube processing never ends

$
0
0

Hi,

We have a cube that has a single partition in a table. Sometimes, the partition processing never ends i.e data is not getting committed to the cube. So we ran profiler and found that many users were connected to the cube and we are assuming that this can be the reason for data not getting committed to the cube. Can you please let us know if our assumption is correct?

Also we tried to test this scenario in Test Environment, however the partition is getting processed though users were connected to the cube through excel pivot. 

Can you please share your thoughts on this.

Regards,

Anusha

how add below query in SSAS Multidimensional Cube Calculations..

$
0
0
Hi ,
we are trying below query in MDX,this is working fine.
how to add this query in SSAS Multidimensional Cube Calculations.


( SELECT ( FILTER
  (
  [Dim Date].[Date].[Date] * [Dim Location].[Startdate].[Startdate],
[Dim Date].[Date].CurrentMember.Name >= [Dim Location].[Startdate].CurrentMember.Name
  ) ) 

Thanks in Advance.

ch.kishore

Removing partitions before a deployment - SSAS Tabular 2016

$
0
0

Hi,

I need to update a SSAS 2016 Tabular model already existing in a prod environment.

This model has some fact tables partitioned on monthly basis respect a certain date.

I've modified the partitioning criterion using another date, but yet on monthly basis.

I'd like to use a script (XMLA?) to remove the old existing partitions based on the old date, before to deploy

the tabular model changes. Each fact table could have some tens of partitions.

Any helps to me, please? Thanks

SSAS Tabular - Setting up default filters

$
0
0

Hello All,

We don't have default filter in Tabular model. Is there any other way\workaround to get it done?

Thanks,

Ravi


Sort Member Properties

$
0
0

Dear All,

Could you please let me know if the below cases are possible for dimension member properties with respect to sorting:

Case 1: Is it possbile to sort names of the Dimension peoperties in particular order?

  Eg: If my member properties are Colour, Size and Weight , is this possible to bring the visibility of attributes in the order Size,Weight or Colour than default or in a descending order.

Case 2: Is itpossible to sort member property values in particuar ordera ascending, descending, or defined.

Eg: if my colour value are RED , GREEN, YELLOW and BLACK, then can I sort it in the order - YELOW, GREEN, BLACK, RED or in the Ascending or Dscending order.

I am lookingfor these options to be implemented from cube side. If this not possible can you suggest me what sorting options are avaiable for member proeprties, mainly through cube or in excel.

Thanks and Best Regards,

Azure Hybrid Connection to SASS Failing

$
0
0

We are trying to Hybrid Connection to our SASS server (Port: 2383) working. However, it fails.

We've been using the Hybrid Connection Manager Agent (version 0.7.2) to connect to our SQL Server instance without any issues for quite sometime.  

SASS & SQL are installed on the same server.

We've tested SASS connectivity via SQL Management studio from the Agent machine; and it works fine.

Our Mobile App connection string for SASS is similar to

Data Source=ourservername;Catalog=MyCube;Application Name=MyApp;User ID=yyyyy;Password=xxxxx

thats how the connection string looks, minus actual names

This connection string works from our local machines when testing on our corporate network.  However, when we deploy to Azure we get..

An error has occurred.

 

exceptionMessage

DIME protocol error: The required bytes cannot be read from the stream.

exceptionType

System.IO.IOException

stackTrace

at Microsoft.AnalysisServices.AdomdClient.DimeRecord.ForceRead(Stream stream, Byte[] buffer, Int32 length) at Microsoft.AnalysisServices.AdomdClient.DimeRecord.ReadHeader() at Microsoft.AnalysisServices.AdomdClient.DimeReader.ReadRecord() at Microsoft.AnalysisServices.AdomdClient.TcpStream.GetResponseDataType()

 


 that was the inner exception

ps.  This thread looked similar

https://social.msdn.microsoft.com/Forums/azure/en-US/ba782664-10b3-4013-a7b0-16c3c2011773/hybrid-connection-onpremise-sql-server-ssas?forum=windowsazurewebsitespreview


Proactive caching doesn't work

$
0
0

Hi everyone,

Not a while ago, I asked question regarding data refresh in MOLAP. The answer was to set proactive caching for MOLAP to get latest data in database. I set automatic proactive caching with time step 30 minutes, however, I still don't get updated data until I reprocess cube. What can be an issue?

Regards,

Yerkhan

Tabular metadata and DAX queries are not supported when there is cell security defined for this session

$
0
0

Today we encountered an error in our production environment: Tabular metadata andDAX queries are not supported when there is cell security defined for this session.

We have a security role on our multidimensional SSAS cube which prevents users to access certain measures based on cell security. On the properties page of the role the tab "Cell Data" is configured, the box "Enable read-contingent permissions" is checked containing the following MDX expression: "(NOT Measures.CurrentMember IS [Measures].[Bruto Salaris])". Other properties are default and ofcourse the AD account is linked to the role and read permission on the data source and cube is configured.

The role had been tested before and worked properly, no Windows or SQL Server updates have been installed and there are no changes within the cube.

The strange thing is the fact that the error description suggests it's tabular related while the cube is multidimensional.

Any help is appreciated.

Help with case statement

$
0
0

we have split time dimension in two separate dimension . One for year and one for month and Qtr . I have written below case statement . it is giving me error . case statement is not working not sure what am I missing . can you please help

WITH  MEMBER [Measures].test AS
CASE  ([TIME].[Total FY].[Fiscal Period].currentmember) when ([TIME].[Total FY].[Fiscal Period Name].&[Oct]) THEN 5
   ELSE 0
END
select{[Measures].test} on columns ,
non empty
Descendants ({[COST CENTER].[Cost Center].[TOTAL CSC].&[ US]}) on Rows
from
CUBE_test
where
([Scenario].[Fiscal Year].&[FY18],[TIME].[Total FY].[Fiscal Period.&[Oct])

Viewing all 14337 articles
Browse latest View live


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