Quantcast
Viewing all 1341 articles
Browse latest View live

date Hierarchy (simple hopefully)

HiI'm new to SSAS.I have a dimension table with multiple date fields and I would like to add a hierarchy to each of the fields so I can view the data by month year etc.do I need to add multiple date dimensions to achieve this?thanks in advance

check if cubes are used or not

We have old SQL 2008 server which only has SSAS installed.I can login and see the cubes data sources are connecting one of our production servers.But developers in their group does not know who is using this SAAS server, or cubes?And they said no one using that as a report source either.How can I find out if there are active connections and who are using these cubes or not?Thanks

Has SSAS Multidimensional changed since SQL Server 2008 R2?

I've noticed that since SQL Server 2012, SSAS's focus has been pretty much exclusively into developing tabular mode. My question is: has anything changed significantly for SSAS Multidimensional mode since SQL Server 2008 R2? I haven't had a chance to take a look at SQL Server 2016 but I'm curious.

MDX for last year values

Hi,I am using SSAS 2005 and trying to create a MDX for the hierarchy Fiscal Period (Year->Quarter->Month->Day). The user will be selecting multiple dates. I have this MDX below but I am getting an error message 'The MDX function CURRENTMEMBER failed because the coordinate for the attribute Fiscal Period.Day contains a set'((existing [Fiscal Period].[Fiscal Period Hierarchy].[Day],{Parallelperiod([Fiscal Period].[Fiscal Period Hierarchy].[Year],1,[Fiscal Period].[Fiscal Period Hierarchy].currentmember)}),[Measures].[Quantity])I also tried with Aggregate(Generate followed by the expression above but did not work.Your help would be appreciated. Thank you.Regards,Uma

item with the same key has already been added - SSAS

Am trying to create a new measure but keep getting error:"Item with the same key has already been added"Meanwhile, no measures exist for my model as far as sql server management studio is concerned and none are in the model either.I do not understand what is meant by 'item' or 'with same key'.Can someone advise how to fix. I am getting this error as a consequence of trying to make headway on the other issue I have posted here!!!:w00t:

DAX formula counting unique columnS

Relatively new to DAX in Tabular SSAS. Looking for a way to count distinct items that have to meet a LEN criteria. Something like this=IF(LEN([COLUMN1] > 4), DISTINCTCOUNT([COLUMN1], 0)))I did concatenate two fields into a calculated column so that piece is good, but sometimes I have only one of the two values that pulls through and I want to omitted those, that's why I am trying to code with LEN. Any thoughts would be greatly appreciated.

if “Tabular semantic model” can be used same way as Report Models.

I am Researching if “Tabular semantic model” can be used same way as Report Models. I am trying to Build a POC using new mechanism.(SSAS)Any ideas please?

Groupby in DAX

So........My previous post I ended up getting down to the month year level, but to drill down to the supplier level I am forced to do a case statement to row count for each record. I did that in SQL and pulled it into my fact table in SSAS. (Tabular)My problem is a left outer join, so in some cases the UI is duplicated. I am trying to group by in SSAS in the calculated column to get the true count. I have two columns one with Unique ID's which is duplicating along with the second part the rowcount column.1st column is 4 digits 1234 e.g. and the second column is either 1 or 0 for the counter. I'd like to distinctcount on a group by but not to familiar with DAX. I'll keep Googling but thanks in advance!

SSAS RelativeCalendar CurrentYear CurrentMonth

I have a dimension DimDate (Year, month, days, quater) and in this dimension I would like to create a relative calendar corresponding to the relative year and relative month. Eg in: - Relative Year I would like to have a Member : current year, current year-1 - Relative Month i would like to have a member : Current month, current month -1, current month-2...how to do it in SSAS?I add named calculations for those Relative Year, Month in my dimension DimDate[img]https://social.msdn.microsoft.com/Forums/getfile/894531[/img]After i create calculate members like this :[img]https://social.msdn.microsoft.com/Forums/getfile/896250[/img][Annee en cours] => StrToMember ("[Date].[Calendar].[Calendar Year].&[" + Format(Now(),"yyyy") + "]" )[Annee en cours -1] => StrToMember ("[Date].[Calendar].[Calendar Year].&[" + Format(Now(),"yyyy") + "]" ).Lag(1)....i have this error when i use the calculate members RelativeYear in my cube to have order quantity for CurrentYear, currentYear-1,...ERROR => " A setcan notcontaincalculated membershas been detected"[img]https://social.msdn.microsoft.com/Forums/getfile/896248[/img]Please do you no what is round!?Thanks youAurelien

Measure in AllMember is greater then the Sum of all Members

Hi,I have a Measure called "LS Anzahl" which value in the ALLMEMBER is greater than the SUM of all Members in the AttributHierachy.[code]Select [MEASURES].[LS Anzahl] on 0,[Rechnung].[Re Bezahlt].ALLMEMBERS on 1 From Rechnungen[/code] LS AnzahlAlle Rechnungen 4865 --> AllMemberbezahlt 312 --> Membernicht bezahlt 2525 --> MemberUnknown (NULL) --> Member2525+312 < 4865 ???I don't know the reason for this, thinking the ALLMEMBER is the sum of its Members?

Best practice for saving SSAS and copying for DR?

I'm currently working locally on a SSAS project I have several hours invested in. Is there an easy way to keep saving iterations of the same project into the project folder? It seems when I try to rename and relaunch the file is blank. Kind of strange....

SSAS Tabular with CAWA

Has anyone use CAWA plus scripts to automate processing of SSAS Tabular tables? How does that worK?

What's the best processing approach for individual SSAS Tabular tables?

What's the best processing approach for individual SSAS Tabular tables? Here's the scenario.I have two fact tables. They need to be updated every 10 minutes. One fact table has 2,006,325 rows. The other fact table has 361,551 rows.I also have two dimension tables. They only need to be updated once a day. One is a date dimension with 4,046 rows. The other dimension table contains a hierarchy of our products. That table has 6,520,934 rows. I want to have 4 separate jobs, one for each table. What is the best approach for the fact tables (every 10 minutes) vs. the dimension tables (once a day)?

Repeating values across hierarchy & Rollup

Let's say I have a hierarchy like this:TaskDim:Tenant NameTeam NameProject NameTask NameTask StatusTaskFactsTaskDimIdHoursToCompleteAnd I setup attribute relationships corresponding to the hierarchy:TaskDimId -> Tenant N->Team N->Project N.->Task Name->Task StatusThe same TaskName might/often occurs across projects/teams/tenants. So when I setup the above attribute relationships I get the "duplicate" error. I can solve this error by creating a key for TaskName of Tenant Name,Team Name,Project Name, Task Name.However, once I do this, rollups no longer work. A report that omits Project Name for example, will repeat the same Task Name multiple times instead of rolling up, since each Task has a unique key now.Note, the same issue occurs for TaskStatus, since all tasks share the same set of statuses, then you would also get the duplicate error here.I.e., sometimes users may want to omit Project and Team Name from the report, and see sum HoursToComplete across these.[b]Desired Report:[/b]Tenant A, Water Plants, Incomplete, 200Tenant A, Water Plants, Done, 345Tenant A, Take out Garbage, Incomplete, 100Tenant A, Take out Garbage, Done, 124[b]Actual Report, due to TaskName including Team/Project in key:[/b]Tenant A, Water Plants, Done, 125Tenant A, Water Plants, Done, 110Tenant A, Water Plants, Done, 110Tenant A, Water Plants, Incomplete, 50Tenant A, Water Plants, Incomplete, 150Tenant A, Take out Garbage, Done, 24Tenant A, Take out Garbage, Done, 30Tenant A, Take out Garbage, Done, 50Tenant A, Take out Garbage, Done, 20Tenant A, Take out Garbage, Incomplete, 75Tenant A, Take out Garbage, Incomplete, 25[b]Is there a way to get the relationships setup for the hierarchy, and still allow tasks to rollup as per [i]desired [/i]example?[/b]I know I could just leave relationships default, and setup explicit aggregations to improve performance. However, I would like to do it "properly" and perhaps expand my knowledge a bit on how keys can be set properly but still allow rollups.[b]Would this be considered an unnatural hierarchy due to the way deeper levels have common/repeating values?[/b]I could of course reorder the hierarchy, but it wouldn't really fit typical usage scenarios. No one is going to start by drilling from Task Status, down to Task Name and get anything useful out of that. They would almost always start with Tenant Name and drilldown. They'd never do analysis across tenants. They may or may not sometimes include Team/Project, depending on what they are trying to accomplish.

Basic Hierarchy help with BillTo and ShipTo Customer

I'm inexperienced with SSAS, and I am just ready to beat my head against the wall...I have a CustomerOrder fact table with the following relevant columns..factCustomerOrderKey ( identity )ShipToCustomerKey -- FKBillToCustomerKey -- FKOrderNumberLineItemNumber...I'm using this table as a degenerate dimensions, and I cant get the hierarchies straight.I want to be able to have a hierarchy for BillTo Customers that would look like this:BillToCustomerShipToCustomer ( the relation between BillTo and ShipTo is usually 1:1, can be 1:N )OrderNumberLineItemNumber ( with related LineItem Attributes )When I define the attribute relationships, it looks like this:Fact -- > OrderNumber - > ShipToCustomer - > BillToCustomer[b]Problem 1[/b]I keep getting duplicate key errors when I try to process the dimension. [b]At a generic level, what's the correct method for setting the key columns to avoid the duplicate keys?[/b] I'm thinking it should be like this:BillToCustomer -- single columnShipToCustomer -- BillTo and ShipToOrderNumber -- ShipTo and OrderNumberI need some expertise and guidance... please[b]Problem 2[/b]Can I also have a similar hierarchy that leaves out the BillToCustomer? It would look like this:ShipToCustomerOrderNumberLineItemNumberIn general -- what's the best way to diagnose problems like this and design to avoid them??ANY advice, knowledge, or even links to suggested reading would be very helpful

Combining a static dimension with a "child" dimension

I have a dimension that represents a hierarchy that will change less often.I have a fact table and a dimension at the same granularity. The dimension in this case is needed to relate two fact tables together that are different granularities.I'm going to use a baseball example to illustrate this scenario since some of my business entities are a little abstract.TeamDim:TeamDimIdTeamNameManagerNameHomeStadiumNamePrimarySponsorNameOwningCompanyName-- Let's assume we are only analyzing games "our" teams participate in, so we don't relate to two teams, just one TeamDimId to simplify the exampleGameFact:GameFactIdGameDimIdTeamDimIdGameDurationSecondsGameInningDim (one row per inning):GameDimIdInningIdGameDate -- DateDim related to GameFact via indirect relationshipBatterSwingFact:BatterSwingFactIdTeamDimIdInningIdSwingResultDimId -- Dimension has attributes for whether they swung and whether they hit/stroke/foul: "Swung, Strike", "Swung, Hit, Ground", "Swung, Hit, Foul", "Swung, Hit, Homerun"Note: BatterSwingFact is related to GameInningDim at the Inning granularity, and GameFact is related at the Game granularity. I have these facts setup to not aggregate with unrelated dimensions. This ensures I can add facts to a pivot report, and the GameFact measures will only show up in subtotals outside the context of dimensions such as SwingResultDim that it is unrelated to. This way someone could have a report that includes facts from both fact tables(which is a requirement) but only see aggregations at the appropriate granularities.Here's my question:[b]Should I combine TeamDim with GameInningDim?[/b] TeamDim is a dimension that rarely changes, and GameInningDim changes often.My intuition was originally they should be separate. There's nothing really stopping me from combining them though. There's a clear hierarchy that a game is a child of a Team(in our simplified scenario where the game "belongs" only to one team), and an inning a child of a game. It just seems overboard to denormalize to that extent, but that might be the OLTP DB designer in me fighting that.Opinions?

Tabular Model Splitting column

I want to split the tabular model column for a Fact Table to optimize the performance . The Fact Table Order ( OrderID column) has more than 15000000 records which has a relationship with the other Product Price Dimension Table. I have referred one of the blog for the same https://www.sqlbi.com/articles/optimizing-high-cardinality-columns-in-vertipaq/However I want to know how I can change my measure and relationship based on this split column.For example my measure are Sales = Sumx('Order',[price]*[Quantity])

SSAS Deployment Error

I am trying to deploy an SSAS project running in tabular mode and am getting the following error:Error returned: 'The table 'Date' has two columns with the IsKey property set to True.So, it seems obvious, however, I can't find this 'IsKey' property anywhere, I've been trying to look it up for a while now and am not finding any documentation anywhere on it either.Any help pointing me in the right direction would be appreciated.

Tabular model processing uses extremely high memory

HiI have a tabular database on a SSAS 2012 instance that is 2.2Gb in size. When we do a full process on one of the table's last partition (table is partitioned per month) the memory usage shoots up from 2.8Gb to 110Gb. I did set the memory limits to try and limit the usage to 70Gb but I assume that the settings does not apply to processing as it still uses everything it can get. My issues is that when the memory usage is too high it causes issues on my cluster.Does anyone know why the memory usage will be so high during processing?Is there a way I can limit the memory usage so that SSAS processing does not impact SQL instances?Regards,

CASE to DAX SWITCH Question

I'm trying to re-create the following CASE statement with DAX SWITCH:CASE actl_sd_shp_ev_lcl_dt_hash_keyWHEN 99991231 THEN RVS_OTLK_STK_DT_HASH_KEYWHEN NULL THEN RVS_OTLK_STK_DT_HASH_KEYWHEN '' THEN RVS_OTLK_STK_DT_HASH_KEYELSE actl_sd_shp_ev_lcl_dt_hash_keyEND AS Stock_DateMy DAX version is this:=SWITCH([actl_sd_shp_ev_lcl_dt_hash_key], 99991231, [rvs_otlk_stk_dt_hash_key], [actl_sd_shp_ev_lcl_dt_hash_key])However, I have not been able to do "" or NULL within the SWITCH function. How do I do that? I keep getting errors.
Viewing all 1341 articles
Browse latest View live