Hi guys, I have created some of our OLAP cubes in a tabular model. One of the things we need is to be able to show the properties of a 'dimension' in a pivot table in excel. How do I get it to show these properties?
↧
Show properties in excel report from a tabular report
↧
MDX query set does not display correct value
Hello Experts,Can you please suggest me the alternate solution of following MDX query issue please its very Urgent:The following set of COMP_YTD_CP is works fine with single brand but when user selectes multiple brand it always takes min value of the First Invoice Month irrespective of current memebre of the brand For e.g: Brand First Invoice Month B1 201202 B2 201107 B3 201101 B4 201204In this case, for all the brands first invoice date is considerd as 201101 inspite of different first invoice dates mentioned above next to the brand.WITHSET SPAS STRTOMEMBER(“[Time].[Fiscal Hierarchy].&[201204]”)MEMBER [Measures].[First Invoice Year] AS Head( NonEmpty( EXISTING [Time].[Fiscal Hierarchy].[FiscalYear].Members, ([Measures].[Sales Quantity]) ), 1).Item(0).properties("key", TYPED)SET ALL_Months_Selected_YearAS Descendants(Ancestor(SP.item(0),[Time].[Fiscal Hierarchy].[FiscalYear]), [Time].[Fiscal Hierarchy].[FiscalMonth])//--Getting Month previous to the First Invoice Month and then getting PeriodsToDatesSET ALL_Months_Till_First_Invoiced_MonthAS PERIODSTODATE([Time].[Fiscal Hierarchy].[FiscalYear], PARALLELPERIOD([Time].[Fiscal Hierarchy].[FiscalYear], -1, Head( NonEmpty( EXISTING [Time].[Fiscal Hierarchy].[FiscalMonth].Members, ([Measures].[JBA Sales Quantity]) ), 1).Item(0)))SET COMP_SET_SUBSTRACT_CPAS EXCEPT(ALL_Months_Selected_Year, ALL_Months_Till_First_Invoiced_Month)SET COMP_YTD_CP AS IIF([Measures].[Selected Year]-1 > [Measures].[First Invoice Year], SP.item(0) ,IIF([Measures].[Selected Year]=[Measures].[First Invoice Year] ,NULL,INTERSECT(SP, COMP_SET_SUBSTRACT_CP)))MEMBER [MEASURES].[SALES YTD CP COMP]AS SUM(COMP_YTD_CP, [Measures].[Revenues])SELECT{[MEASURES].[SALES YTD CP COMP]} ON COLUMNS,Nonempty( {[Brand].[Brand].[Brand Major].members * [Customer].[Country].[Country]* [Currency].[Currency].[Currency]})on rows FROM [Cube1]
↧
↧
What is mean of Take server out of rotation
i got mail as Please take server SSASSERVER out of rotation for all cubes as we are getting error when reports hits to this server.what are the steps i have to do.
↧
refresh Excel report based on Offline-SSAS-Cube (a *.cub-File) not possible
Hi,we can't refresh the Excel-reports based on a *.cub file even if there is a newer .cub-file.Background:We use SQL Server 2008R2 and Excel 2010.We've a SSAS-Database containing some cubes; they work and refresh fine.Now the users want to have an offline Cube.therefore I created a local "*.cub"-File with the help of the "CREATE GLOBAL CUBE" statement.the *.cub file is copied over network to the users, they can open it with Excel and create their reports. Works fine.But the next week, a new .cub file is copied to the users (same location as the old file).If the User opens his report from last week it will not refresh. if the User hits the "refresh" button in Excel, Excel tries to rebuild the .cub-File which takes hours because of lots of data and slow network.if more than one person tries to "refresh" the network is overloaded. that's why I generated the cub-files via "create global Cube" once and distribute it once a week during non office hours.but, as already mentioned, the Excel-Reports based on these distributed .cub-files will not refresh.searched a lot, found the question sometimes, but no answer for it.Could someone please help me?Regards Andy
↧
MDX with linked server
Hi,I have an MDX query which executes within 7 seconds (Profiler 'Query End' - duration = 7288). The resultset contains +70000 rows, 17 columns, 8928 KB.Within the SSMS MDXquery window, the execution is finished into the result window within less than 20 seconds.I want to transform these results into a SQL stored procedure. So the application make use of a linked server to connect the OLAP server (@srvproduct=N'OLAP', @provider=N'MSOLAP', @datasrc=N'localhost'), and executes the MDX by making use of this linked server:SET @SQL='SELECT * FROM OPENQUERY(OLAP_srv, '''+@MDX+''')'EXEC sp_executeSQL @SQLHowever when I execute the MDX from the OLTP engine, using the linked server, the profiler shows again 7 seconds for the 'Query End', but the result only returns after nearly 2 minutes. Also the profiler shows: 'Audit Logout' - Duration = 117577.I have tried this from another OLTP server without noticeable difference.Any idea what’s the reason? Is he losing so much time in transferring the results from OLAP to OLTP server? Is there any possibility to make this faster?Thanks.Eric.
↧
↧
The connection timed out
I am using BIDS 2008, developing a cube in SSAS. While trying to browse a dimension (by clicking the Browse tab), I get the message "The connection timed out".Any help will be appreciated. David
↧
Apply Sourcecode in SSAS
Goal:Use the KPI [Measures].[Profit Margin] inside of SSAS:s tab named Calculation and then use it in my SSRS report and other userProblem:I tried applying the source code in "Named set" or "calculated set", in SSAS, but it didin't work at all. I don't know how to apply the source code inside of SSAS.Information:*I'm using SQL server 2012*Today, I have the source code in my SSRS report in the query designer view, inside of dataset, but I want the code to be inside of SSAS that I can allow users to use the same source code in their report.*The report's data source is SSAS in my SSRS. MDX code only.*The source code can be used for AdventureWorks.[code="sql"]WITH MEMBER[Measures].[Profit Margin] AS ([Measures].[Internet Sales Amount] - [Measures].[Internet Total Product Cost] ) / [Measures].[Internet Sales Amount] ,FORMAT_STRING="Percent"SELECT { [Measures].[Internet Sales Amount], [Measures].[Internet Total Product Cost], [Measures].[Profit Margin] }ON COLUMNS ,{ [Date].[Calendar].[Calendar Year].&[2007], [Date].[Calendar].[Calendar Year].&[2008] }ON ROWSFROM [Adventure Works][/code]
↧
Age groups based on difference - Date slicer
Hello,I have a cube I'm working with that has a dimension called Employees.In the dimension table contains a Birthdate.What I need to do in a query is count the amount of Employees However, I also have to put them into age groups using the Birthdate. Below is an example of the dimension table:[code="sql"]Employee Birthdate1 1951-04-042 1987-05-053 1986-11-044 1977-10-10[/code]So, for simplicity, lets say three age groups;Under 22;22 to 34; Over 35I have no idea how I will achieve this as I need to use a Date slicer. The way this would have to work is whatever dates in the Date slicer (MDX WHERE), would have to evaluate the date difference between the birthdate and the selected date. and then add them to the predefined groups so the example below could be shown.[code="sql"] <22 22-34 35>EmployeeCount 15 40 70[/code]Is there a way/function/MDX what I can create these groups and then group each of the employee? How would I store the birthdate for this to work; member property? attribute?Any help would go a long way.Thanks in advance
↧
Calculating MTD, YTD and ITD
I have developed a Cube for client and want to implement the time intelligence on Date, Month and Year hierarchy but can't get it to work. I used the built in Time intelligence to create the script below unfortunately the same dollar values are repeated for ITD, MTD and YTD. Any help will be appreciated. Thanks in advanceCREATE MEMBER CURRENTCUBE.[ClaimsTransactionDate].[Calender ClaimsTransactionDate Calculations].[ITD] AS "NA", FORMAT_STRING = "Currency", VISIBLE = 1 ; CREATE MEMBER CURRENTCUBE.[ClaimsTransactionDate].[Calender ClaimsTransactionDate Calculations].[YTD] AS "NA", FORMAT_STRING = "Currency", VISIBLE = 1 ; CREATE MEMBER CURRENTCUBE.[ClaimsTransactionDate].[Calender ClaimsTransactionDate Calculations].[MTD] AS "NA", FORMAT_STRING = "Currency", VISIBLE = 1 ; Scope( { [Measures].[LossPaid], [Measures].[LossReserve], [Measures].[LossIncurred], [Measures].[LAEPaid], [Measures].[LAEReserve], [Measures].[LAEIncurred] }); // ITD ( [ClaimsTransactionDate].[Calender ClaimsTransactionDate Calculations].[ITD], [ClaimsTransactionDate].[Year].[Year].Members, [ClaimsTransactionDate].[Transaction Date].Members ) = Aggregate( { [ClaimsTransactionDate].[Calender ClaimsTransactionDate Calculations].[Current ClaimsTransactionDate] } * PeriodsToDate( [ClaimsTransactionDate].[Calender].[Year], [ClaimsTransactionDate].[Calender].CurrentMember ) ); // Year to Date ( [ClaimsTransactionDate].[Calender ClaimsTransactionDate Calculations].[YTD], [ClaimsTransactionDate].[Year].[Year].Members, [ClaimsTransactionDate].[Transaction Date].Members ) = Aggregate( { [ClaimsTransactionDate].[Calender ClaimsTransactionDate Calculations].[Current ClaimsTransactionDate] } * PeriodsToDate( [ClaimsTransactionDate].[Calender].[Year], [ClaimsTransactionDate].[Calender].CurrentMember ) ); // Month to Date ( [ClaimsTransactionDate].[Calender ClaimsTransactionDate Calculations].[MTD], [ClaimsTransactionDate].[Month].[Month].Members, [ClaimsTransactionDate].[Transaction Date].Members ) = Aggregate( { [ClaimsTransactionDate].[Calender ClaimsTransactionDate Calculations].[Current ClaimsTransactionDate] } * PeriodsToDate( [ClaimsTransactionDate].[Calender].[Month], [ClaimsTransactionDate].[Calender].CurrentMember ) ); End Scope;
↧
↧
How SSAS actually got used?
I have been learning SSAS and actually been through 2 books. One question though is how the SSAS actually get used? I have seen it used in Excel, or SSRS by accessing the cubes built in SSAS. Excel approach looks pretty useless to me, you can't give the excel to another people outside the LAN to access the cube. Is there something like SSAS web server that can be accessed from a browser like report manger of SSRS and then you can dynamically drag measures and dimensions to do the analysis like what you do in the cube browser in BIDS. I know you can build a SSRS report on SSAS cubes so that the report can be accessed by Internet. But SSRS reports have fixed row and column definition so it's not flexible for analysis (not as flexible as what you can do with cube browser in BIDS). Why SSAS doesn't provide similar thing. I mean it already has the cube browser for preview in BIDS. Is it how SSAS supposed to work (must work with Excel or SSRS)?
↧
New Column with numbers
Goal:Create a new column, named test , containing numbers in SSAS only inside of DSV design view.If StatePrinceCode's column has value NSW it shall have value 1 etc.[code="sql"]StateProvinceCode test------------------------------NSW 1QLD 2SA 3[/code]Problem:How should I enable to do it? I tried using IIF and case statement but it doesn't want to do it due to text value. It only works with numbers only.Information:- I strongly believe that you need to create a named calculation as a extra column to add the value The new column shall apply in the table Geography in SSAS. In this context no usage of SQL server database
↧
SSAS 2008 R2 - Problems with total of a calculated measure in Excel
Hi to all.I try to explain my problem.I use SSAS 2008 R2 and i have a Multidimensional Cube called SALES.In this cube i have dimensions and measures.Now i try to simplify the design of it and explain what is my question...I have a dimension STORES wtih all stores of my companyI have a dimension CALENDAR with all time periods I have a dimension PRODUCT CATEGORY with 3 levels (Parent Child Dimension)1) Level 12) Level 23) Level 3I have a measure called SALES AMOUNT (It sum all sales amount) depending on a selection .I created a new calculated measure that we can call 'SALES AMOUNT CUSTOMED'This measure need to sum SALES AMOUNT depending on a selection of levels of PRODUCT CATEGORY dimension...and depending on that i need to subtract tha sales amount of a certain member of Dimension STORES.I post here the MDX Expression of SALES AMOUNT CUSTOMED' calculated measure[b]CASE LEFT([Product Category].[Product Category].CURRENTMEMBER.Name,1) WHEN 'E' THEN ([Measures].[SALES AMOUNT] - [Measures].[SALES AMOUNT ONLY STORE CO16]) WHEN 'M' THEN ([Measures].[SALES AMOUNT] - [Measures].[SALES AMOUNT ONLY STORE CO11]) WHEN 'X' THEN ([Measures].[SALES AMOUNT]) WHEN 'I' THEN ([Measures].[SALES AMOUNT]) WHEN 'A' THEN ([Measures].[SALES AMOUNT]) WHEN 'Z' THEN ([Measures].[SALES AMOUNT]) ELSE ([Measures].[SALES AMOUNT] - [Measures].[SALES AMOUNT ONLY STORE CO16] - [Measures].[SALES AMOUNT ONLY STORE CO11])END[/b][b]This measure works fine !!!![/b][b] BUT MY PROBLEM is when i browse my cube with Excel [/b](2010 or 2013 no differences)Excel [b]does not calculate GRAND TOTAL correctly about my SALES AMOUNT CUSTOMED' calculated measure[/b]Here is what happen...[b]PRODUCT CATEGORY ---- SALES AMOUNT ---- SALES AMOUNT CUSTOMEDLEVEL 1 - LEVEL 2 - LEVEL 3[/b]E EE EE04 100 90E EE EE05 200 100E EE EE06 300 200E EE EE07 400 300 ==== ====[b]TOTAL --E-- [/b]1000 690 [b](Sub Total is correct !!!)[/b]M MM MM01 10 9M MM MM03 70 60 ==== ====TOTAL --M-- 80 69 [b] (Sub Total is correct !!!)[/b]GRAND TOTAL 1080 [b]1080 [b](IT IS WRONG WHY !!!)[/[/b]b] (1000 + 80 correct) [b](Grand Total of Calculated Measure It should be 690 + 69 = 759 )[/b]Why Excel does that ???It seems it does error calculating wrong Total about only calculated measure ...How can i solve that problem ???With Excel or with a different MDX Expression ???????????Thanks in advance for your replies...Regards.ps. TO EXPLAIN better i could not to post my excel...
↧
Link server Issue
Hello expert,Can you please help me?I have created the c# project VFE_AS_Functions to build the Like function to be used in MDX query and deployed the assembly under the assemblies folder of cube but I’m getting issue while accessing the query using Link server:1) It displays result when we call this function under MDX query only [code="sql"]WITH set BradSet as [Shop].[Shop Model].[Brand].&[Brand1]SELECT { [Measures].[Stores2 Sales Quantity] } ON COLUMNS, NonEmpty(BradSet) ON ROWSFROM Cube1WHERE ( VFE_AS_Functions.Like( NonEmpty([Articles].[A1].[A1], (StrToMember("[Shop].[Shop Model].[Brand].&[Brand1]"), [Measures].[Sales Quantity])), "%", [Articles].[A1].CURRENTMEMBER.MEMBER_CAPTION ) )[/code]2) But gives error while accesing query using Link server.[code="sql"]SELECT * from OPENQUERY(LinkServerName, 'WITH set BradSet as [Shop].[Shop Model].[Brand].&[Brand1]SELECT { [Measures].[Stores2 Sales Quantity] } ON COLUMNS, NonEmpty(BradSet) ON ROWSFROM Cube1WHERE ( VFE_AS_Functions.Like( NonEmpty([Articles].[A1].[A1], (StrToMember("[Shop].[Shop Model].[Brand].&[Brand1]"), [Measures].[Sales Quantity])), "%", [Articles].[A1].CURRENTMEMBER.MEMBER_CAPTION ) )') [/code]I think this assembly information should be included in OLAP Link server... please help me... how to fix this issue.
↧
↧
Discover Cube Error befor Production Phase
Goal:Apply a fresh deployed cube in the production environment.Problem:How should I enable to discover any problem in the cube when it is updated automatic once a week before it will be applied in the production phase?Information:In this context, there is no possibility to apply a user acceptance test and thest phase before production phase. There is only test and production phase.
↧
Dimension - Accessing related Attributes
Hi AllThis must be a seriously stupid question for people well versed in Dimensions and Hierarchies so I hope to get a quick answer. :-)I have a simple Dimension called DimTagInstance which has 3 Attributes (Id, Site Id, Latitude, Longitude). I would like to be able to access the Value of the other Attributes when I am in the context of another one.I have written the following query but it returns All for the Value.WITH MEMBER Measures.Latitude AS [DimTagInstance].[Latitude].CURRENTMEMBER.Name SELECT {[Measures].[Count], Measures.Latitude} ON 0, {[DimTagInstance].[Site Id].[Site Id]} ON 1FROM [Cube]Any help would be great.CheersLudo
↧
SSAS 2012 - "unable to establish server mode"
OK,installed SQL Server 2012 (SP1 11.0.2218.0) on Windows 8 (what a pain this was). Now after a while I have come back to work on it and can not connect to the SSAS instance. When connecting I hit the drop down on the server name box and have tried local and also clicking on the name of the instance.I believe it is installed in multidimensional mode and most of the googleing of this error relates to the tabular model.I am a little stumped as there does not seem to be many suggestions on this.ThanksE
↧
Help in Date Dimension/Hierarchy Design
[b]New to SSAS. I'm trying to design my date dimension but couldn't figure out why I cannot fix my hierarchy. TIAI have this table as basis for my dimension.[/b][img]http://imageshack.us/a/img21/8148/bho3.png[/img][b]I created a simple dimension and hierarchy below.[/b][img]http://imageshack.us/a/img822/8696/a2bw.png[/img][b]When I browse, I get dates and weeks not falling on the correct year.[/b][img]http://imageshack.us/a/img18/7379/tz10.png[/img][b]If I remove the Fiscal Week, the dates fall into the correct Fiscal Year bucket. What am I doing wrong?[/b][img]http://imageshack.us/a/img132/5381/6m9v.png[/img]
↧
↧
SSAS Training In London UK
Hi,Can anyone recommend a reputable training provider (ideally classroom / lab based), for Analysis Services 2008 or 2012? There are numerous training providers out there but I would ideally like to go with a recommendation. I am also looking for something focusing on just SSAS rather than the full MSBI stack.Location wise I am looking at London / South East England.Any recommendations would be appreciated..Thanks
↧
Using a date range in KPI Trend
Hello All, I'm looking for some help with getting a KPI Trend expression to return the correct results.I have created a Calculated Member to return the qualifying Sales for the 6 months prior to the current period:[code="plain"]WITH MEMBER [Sales Previous 6 Months] ASSUM( { PARALLELPERIOD( [Business Written Date].[Dates by Month].[Calendar Year Quarter],2,[Business Written Date].[Dates by Month].CurrentMember): [Business Written Date].[Dates by Month].currentMember.prevMember } , ([Fact Sales].[PP Permission Active].&[Yes],[Measures].[Fact Sales Count])) [/code]When I use the Calculated Member in a KPI Trend expression, I get the correct results if I specify a single instance of a date or date period, e.g. 2013Q1 or 201006, but if I specify a range, e.g. 2012Q1 - 2012Q2, then the Trend is not correct.What I want is for any date range selected by a user browsing the Cube, if the total qualifying sales (i.e. those where [Fact Sales].[PP Permission Active] = 'Yes) are greater than the total qualifying sales for the 6 months prior to the date range selected, the Trend will be upwards and vice-versa. For example: User selects the date range 2012Q3 to 2012Q4 Let's say the total qualifying sales for that period is 10 The KPI Trend expression should use the [Sales Previous 6 Months] measure to return the total qualifying sales for the period 2012Q1 to 2012Q2 and check whether that figure is greater than, less than or equal to, 10 This is my Trend expression:[code="plain"]Case When IsEmpty(KPIGoal("Low PP")) Then Null// If there is no qualifying data for the previous period, the Trend should be positive provided that the KPIValue is greater than zero. When ISEMPTY([Measures].[Sales Previous 6 Months]) = TRUE AND KPIValue("Low PP") > 0 Then 1 When [Measures].[Sales Previous 6 Months] < KPIValue("Low PP") Then 1 When [Measures].[Sales Previous 6 Months] = KPIValue("Low PP") Then 0 Else -1End[/code]I suspect that the problem is that CurrentMember is being set to the last member in the date range - 2012Q4 in the above example - and therefore the [Sales Previous 6 Months] member is going back 2 quarters from there which is 2012Q2 whereas I want it to take the first member in the date range - 2012Q3 - and go back 2 quarters to 2012Q1.It must be a fairly common requirement to do this type of rolling date calculation, but the solution eludes me. Can anyone help?ThanksLempster
↧
Calculations tab SCOPE
Hi, I'm wondering if anyone can help with some scope syntax in the calculations tab. I'm trying test the following:/* Calculate the entire cube first.*/CALCULATE;/* This SCOPE statement defines the current subcube */SCOPE([Geography].[State hierarchy].MEMBERS, [Measures].[Test], *);/* This expression sets the value of the test measure */THIS = [Measures].[Test] * 1000;END SCOPE;It dies at the semi-colon following the calculate command. What am I doing wrong?I'm using SQL Server 2008 Standard EditionThanksGraham
↧