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

Defining a boolean dimension attribute

$
0
0
What's the best way to go about defining a dimension attribute for a boolean data value in SSAS 2005? In our first cut, we used a bit column in the database, but that results in dimension members of 0 and -1, and we'd rather have "true" and "false" displayed in the OLAP browser. In there an easy way to have SSAS map the bit values to the boolean strings?

Row level security in Tabular model

$
0
0

Hi All,

I was implemented row level securities in my model,while getting the report in excel i am able to see all data.

i need to see only assigned region to me.

can you help me on this

Regards

Mallis

Create Measure from where clause (subcube)

$
0
0

Hi all

If I have the following query is it possible to generate a measure which gives the last date in the where clause (in this case subcube) in this case I want the measure to show 20080319

 SELECT NON EMPTY { [Measures].[Internet Sales Amount] } ON COLUMNS, NON EMPTY { ([Product].[Product].[Product].ALLMEMBERS ) }  ON ROWS FROM ( SELECT ( [Date].[Date].&[20080317] : [Date].[Date].&[20080319] ) ON COLUMNS FROM [Adventure Works])

SSAS Tabular - "The Server has sent an unrecognizable response" error message

$
0
0

We have a single table Tabular cube and it has worked fine for a long time. Recently we added additional fields and also the record count increased. With the increased data, if i process the cube in Visual studio and save it and reopen it, i am unable to open the model. It gives out the below error message

Error Message: The Server has sent an unrecognizable response

If i try again after clicking OK, i get a new error message.

Error Message: Model already open

Cube processing fails when processed as a Job but runs fine when run through SSMS and Visual studio

$
0
0

Hi,

We have a several cubes that fails while processing... they used to be processed fine until 6/26/2012 and then started failing...

If i go to the job and check the reason why the job failed this is the error message I get

  Process CI_Datacubes Cube Process
Step Name  Process Service Data Cube1
Duration  00:07:08
Sql Severity  0
Sql Message ID  0
Operator Emailed  
Operator Net sent  
Operator Paged  
Retries Attempted  0

Message
Executed as user: SQLAgentSVS. <return xmlns="urn:schemas-microsoft-com:xml-analysis"><results xmlns="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 2924 problems logged." Source="Microsoft SQL Server 2008 R2 Analysis Services" HelpFile="" /></Messages></root></results></return>.  The step failed.

But when the same script is processed through ssms it runs fine. I know there are some associations that dont exist between the fact table and the dimension table..

Is there a way I fix this issue?

Thanks

Karen

Create hierarchy classifed according the date

$
0
0

hello,

   For one of my client, i need to create a hierarchy in dimension that display the attribut dépends on the dates, for example :

Hierarchy Society :

Society Date of creation     Date of   modification   Date of end
A 01/01/2012 01/03/2013   null
B 01/01/2012         null    null
C 01/01/2013        null   null

D                    01/01/2012             null                             01/01/2013

i need to have in my hierarchy :

 2012 -> Society A,B and D

2013 -> Society A,B and C

Someone can help pls?.

Regards,

Processing error in Cube for dimesion string more than 4GB

$
0
0

Hi experts,

I got below error when processing the Cube. How to solve it.

A file store is full. It contains the maximum number of records allowed for its data type. If the file is a string store (.asstore, .bstore, .ksstore, or.string file) that is close to 4 GB, consider switching to a different string store format for the dimension attribute or distinct count measure group associated with the store.

Thanks in advance.

Need Help - Report Actions not working for cube action in sql server 2016

$
0
0

Hi All,

Greetings, I need help in getting the report actions work in SSAS cube. When I did the below setting and processed the cube not able to see the Report Actions in Browser.


Sreekanth Note: Please vote/mark the post as answered if it answers your question/helps to solve your problem.*****


DAX Expressions over a period

$
0
0

I have a scenario

ClientKey Usage BillDate  SiteSize

100         500   201607   4000

100         400   201608   4000

100         600   201609   5000

100         650   201610   5000

The ask is to calculate the the sales over period of time where the usage is different based on the site size for same client. 

Is it possible to code above functionality using DAX for data period of a year. Upon final aggrgation the site size will always reflect the most recent site size for display purposes.(5000 in this case)

Expose Time dimension attribute that represents Hour:Min:Second in SSAS Cube

$
0
0

Hi,

User Requirement to see time in Hour : Min : Second in SSAS

Please suggest an optimized approach to implement this logic in both Data Warehouse and SSAS Cube. Request you to help me meet the requirement.

Tabular 2016 DirectQuery Mode - "Sort By Column" Behavior

$
0
0

I'm creating a proof-of-concept using tabular 2016, in DirectQuery mode.  In the process of building out a sample model, I keep running into the following error message when browsing the model in Excel: 

"DirectQuery error: There are duplicate values for [sort order column name]. Only one-to-one relationship is supported between members of [display column name] and '' attributes."

The data in the dimension causing the error is denormalized and has a standard category / sub-category setup.  For example, the data looks something like this:

Section....SectionSort....SubSection.....SubsectionSort
    1..............1....................1......................1
    1..............1....................2......................2
    2..............2....................1......................1
    2..............2....................2......................2

I thought it was possibly complaining because "SubsectionSort" is repeated within each Section, so I created a unique sort value at the subsection level, but this didn't solve the problem. Am I modeling this incorrectly?  Or is this some kind of limitation in DirectQuery mode? I can't find a whole lot of documentation on this. Thanks for any help!

SQLException64 in msmdsrv.exe tabular mode crashing in latest CU - SSAS 2016

$
0
0

Has anyone experienced these type of crashes in Tabular mode in SQL 2016 using the latest CU?


Fault bucket , type 0
Event Name: SQLException64
Response: Not available
Cab Id: 0

Problem signature:
P1: msmdsrv.exe
P2: 0.0.0.0
P3: 0000000000000000
P4: msmdsrv.exe
P5: 2015.130.2164.0
P6: 0000000057D3D4EA
P7: -1073741819
P8: 0000000000BC02DE
P9: 0000000000000000
P10: 


Micatio Software Free IIS Azure Web Log App

SSAS Multidimensional Time Intelligence YTD calculation showing BLANK for Date level

$
0
0

Hi there,

I am working with SSAS Multidimensional Cube, basically I have defined a Time Intelligence calculations for just YTD in the Cube, the calculation was created in the Calculations tab of the cube as follows:

  

/*Year to Date*/
  (
    [Dimension Dim Time].[Calendar Dimension Dim Time Calculations].[Year to Date],
[Dimension Dim Time].[Year].Members, 
    [Dimension Dim Time].[Date].Members   


  =

  Aggregate(
             { [Dimension Dim Time].[Calendar Dimension Dim Time Calculations].[Current Dimension Dim Time] } 
             *
             PeriodsToDate(
                            [Dimension Dim Time].[Calendar].[Year],
                            [Dimension Dim Time].[Calendar].CurrentMember
             )
  )

My Calendar hierarchy is as follows:

Year -> Quarter -> Month -> Week -> Date

The problem I have is that when I am at Date level I am not getting the cumulative YTD value, instead I am just getting blank cells:


Could anyone help me defining a Time Intelligence YTD calculation that works for all levels including the Date (highlighted in yellow above)?

Thanks and best regards,

Joss

Scripts for creating Dimension and Fact Tables , Sample files and ETL Packages to load data in to Dimensions and Facts.

$
0
0

Hello,

If any anyone has any links or scripts to a blog where i can find some help.Please let me know.Below is what i am looking for.

Scripts for creating Dimension and Fact Tables , Sample files and  ETL Packages to load data in to Dimensions and Facts.

Thanks,

Swathi

how to find the distinct members count changed their program with in the period with start and end date dimension using calculated measure in ssas

$
0
0

Hi i am having a Fact table like below. A distinct Member Count Measure also available.

Member_KeyProgram_KeyStart_DateEnd_Date
Member111/1/20166/31/2016
Member221/2/20166/31/2016
Member311/3/20166/31/2016
Member421/4/20166/31/2016
Member127/1/201612/31/2016
Member237/2/201612/31/2016
Member317/3/201612/31/2016
Member427/4/201612/31/2016

i would like to find the distinct count of members changed from one program to another Program using start date and End date in a selected time interval.

for 2016 7th month 3 members changed from one program to another program.

how to calculate this using calculated measure?



Customize the attribute value different than the key

$
0
0

Hi,

In a standard Date-dimension, I have the Date ID as an Integer and a separate string value for the date in "yyyy-mm-dd" format. I am using the integer as primary key and also for the lowest level of the Year-Month-Day hierarchy. I would like to have the string value displayed with the integer value for the key. Therefore I set the following settings in the Date ID attribute:

KeyColumn: Date ID
NameColumn: FullDateString

Now my issue comes with the underlying attribute values, this is displayed as follows:

[Time].[Year - Month].[Day].&[20160921]

I would like to have this as follows:

[Time].[Year - Month].[Day].&[2016-09-21]

Is there a way to keep the KeyColumn to the integer-value and the underlying attribute in "yyyy-mm-dd" format?

Thanks!


- If a post answers your question, please click "Mark As Answer" on that post!


Tabular measure groups and dimensions processing

$
0
0

I have a Tabular cube and i built an SSIS flow for incremental measure group processing using XMLA script. The script states the MeasureGroupID to process.

I have a Fact_Volume table in my tabular model, and the Fact_Volume table contains different measures and attribute fields (used for slicing).

I don't understand if the processing of the measure group using XMLA script is enough for both measures and attributes in Fact_Volume or do i also have to process the Fact_Volume as a dimension in the SSIS Analysis Services Processing Task Editor component?

Thanks!

Help With MDX

$
0
0

Hi,

I'm trying to build a query which will retrieve values from a cube and build a month to date and year to date SSRS report based on the current date. I'm basically trying to build a report that should look something like this...

TypeCustomer Product Group  Quantity Shipped MTD Quantity Shipped YTD

OECompanyXBikes5396

Helmets10254

CompanyYRepair Kits93653

T-shirts 38564

Shoes 10120

I'm really struggling with this and so far, this is what I've come up with...

 WITH 
 MEMBER [Measures].[Quantity Shipped YTD] As Sum(YTD([Date].[Dates].CurrentMember),[Measures].[Quantity Shipped])
 Member [Measures].[Quantity Shipped MTD] As Sum(MTD([Date].[Dates].CurrentMember),[Measures].[Quantity Shipped])
 SELECT NON EMPTY { [Measures].[Quantity Shipped MTD], [Measures].[Quantity Shipped YTD] } ON COLUMNS,
 NON EMPTY { ([Customer].[Business Type].[Business Type].ALLMEMBERS * [Customer].[Customer].[Customer].ALLMEMBERS * [Customer Sales].[Summary Prod Group 1].[Summary Prod Group 1].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS 
 FROM ( SELECT ( -{ [Customer Sales].[Summary Prod Group 1].&[Missing Product Group] } ) ON COLUMNS 
 FROM ( SELECT ( { [Customer].[Customer Code].&[2.254E3], [Customer].[Customer Code].&[2.063E3], [Customer].[Customer Code].&[2.183E3], [Customer].[Customer Code].&[2.261E3], [Customer].[Customer Code].&[5.3753E4], [Customer].[Customer Code].&[1.3084E5], [Customer].[Customer Code].&[1.37058E5] } ) ON COLUMNS 
 FROM ( SELECT ( { [Customer].[Business Type].&[OE] } ) ON COLUMNS 
 FROM ( SELECT ( [Date].[Day].&[Now()]) ON COLUMNS
 FROM [Sales])))) WHERE ( [Customer].[Customer Code].CurrentMember )  
 CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS

The query above doesn't retrieve anything though. All I get is a blank resultset. There are alot more fields that I need to pull through but I'm assuming if I can get quantity shipped to work, I can get everything else. Please help. Tx

SSAS cube unable to pull data in Excel

$
0
0

Hi all,

i have created a SSAS MDM cube and am using Excel 2010 32 bit version to generate the reports to pull the data. when i am taking the distinct record id over a certain location, i am unable to pull the records, but when i am going through the subset of the location, i am able to pull them. is there someway for me to improve the cube performance so that i can pull all the records needed. the number of records for the location is 60,000.

Thanks in advance

Need to create an attribute that represents both data and time in SSAS

$
0
0

Hi,

User Requirement to see time Date and Time.

Let's say for example user wants to see 2016-09-28 19:52:33

Please suggest an optimized approach to implement this logic in both Data Warehouse and SSAS Cube. Request you to help me meet the requirement.



Viewing all 14337 articles
Browse latest View live


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