SQL Server Analysis Services ForumDiscussions relating to MDX and other Analysis Services or OLAP questions© 2009 Microsoft Corporation. All rights reserved.Sat, 28 Nov 2009 06:03:06 Zecde1c15-32e3-464c-96c4-0df1d801872dhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/b9a65e0a-28f0-4fc9-857c-895079da6a7fhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/b9a65e0a-28f0-4fc9-857c-895079da6a7fDidi..erhttp://social.msdn.microsoft.com/Profile/en-US/?user=Didi..erFilter cube data with SessionID (Get SessionId with MDX?)Hi,<br/> <br/> I have a cube which is queried by multiple users at the same time.<br/> The goal is to filter a given dimension so that each user can see, via the frontend client, what they asked for. Note that a user can ask for more than one report which means that the username alone will not be sufficient to filter the reports.<br/> <br/> So the idea is to filter the dimension using the sessionID. How can I get the sessionID of the current connection at the SSAS server level? Is there an MDX function that can do this? Apart from the sessionid, is there another solution to acheive my goal?<br/> <br/> Regards,<br/> Didi..er<hr class=sig>--Wed, 25 Nov 2009 10:05:59 Z2009-11-28T06:03:06Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/dcda8ec9-cda7-42b7-ab78-36e7944d559ehttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/dcda8ec9-cda7-42b7-ab78-36e7944d559ePeglegspeedkinghttp://social.msdn.microsoft.com/Profile/en-US/?user=PeglegspeedkingUsing dimension key comparison , how to use <=<p>I'm doing a comparison between two role playing date dimensions.<br/><br/>When I select the member the 1 shows up incidentally, but not with its intention. When booking&gt;snapshot, sometimes I also notice a 1 which shouldn't be  the case.<br/><br/>The only time it works appriopriate, is when i use the = sign. But that's not the reason I want to use it.<br/><br/>What is the alternative construction to &lt;= to gain correct results?<br/><br/>WITH MEMBER [measures].[compare]</p> <p>AS</p> <p>CASE WHEN <br/>[Snapshot ].[Year - Period -].CurrentMember.Properties('Key')<br/>&lt;=<br/>[Booking].[Year - Period].currentmember.Properties('Key')<br/>THEN 1<br/>ELSE 0<br/>END<br/></p><hr class="sig">Business Intelligence professionalFri, 27 Nov 2009 22:14:59 Z2009-11-28T06:02:53Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/5d9f69d7-2fbb-4427-b611-3ab093f0af27http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/5d9f69d7-2fbb-4427-b611-3ab093f0af27VankayShttp://social.msdn.microsoft.com/Profile/en-US/?user=VankaySSorting Attribute - using Secondary Attribute - Bids Helper showing as Problem.<div>Hi,</div> <div><br/></div> <div>I have a dimension, creating [Hour Interval 4] text and sorting based on [Time Hour] column. Same way I did for [Hour Interval 8].</div> <div><br/></div> <div><span style="text-decoration:underline">Data (all columns in the same table - I cannot change the design):</span></div> <div>         [Id]:  0, 1, 2, ... 46000+ (symbolizing the minutes in a month: Count: 46000+ rows)</div> <div>                </div> <div>         [Time Hour]: Null, 0, 1, ... 700+ (Count: 700+ rows)</div> <div><br/></div> <div>         [Hour Interval 4]: &quot;Range: Null&quot;, &quot;Range: &gt;= 0 and &lt;= 4&quot;, &quot;Range: &gt;= 5 and &lt;= 8&quot;, &quot;Range: &gt;= 9 and &lt;=12&quot;, ... &quot;Range: &gt;24&quot; (Count: &lt; 10)</div> <div><br/></div> <div>         [Hour Interval 8]: &quot;Range: Null&quot;, &quot;Range: &gt;= 0 and &lt;= 8&quot;, &quot;Range: &gt;8&quot; (Count: Only 3 rows)</div> <div><br/></div> <div>I followed the article &quot;<span style="font-size:13px;font-weight:bold">Defining Attribute Relationships and Sort Order in the Customer Dimension&quot; </span><span style="font-size:13px"> in the url:<span style="font-size:11px"><a href="http://msdn.microsoft.com/en-us/library/ms166763(SQL.90).aspx">http://msdn.microsoft.com/en-us/library/ms166763(SQL.90).aspx</a></span></span></div> <div><br/></div> <div>Sorting data is working fine for both [Hour Interval 2] and [Hour Interval 8] with Attribute key as [Time Hour]. What I need, I am getting it - no worries on it.</div> <div><br/></div> <div><span style="font-weight:bold"><span style="text-decoration:underline">Problem showing in Bids Helper: </span></span>I launched the &quot;Dimension Health check&quot;, it is giving the relationship as Problem.</div> <div>               </div> <span style="font-family:Arial;font-size:13px">Attribute relationship [Hour Interval 4] -&gt; [Time Hour] is not valid because it results in a many-to-many relationship. Show/hide problem ro</span>ws <div><span style="font-family:Arial;font-size:13px">Attribute relationship [Hour Interval 8] -&gt; [Time Hour] is not valid because it results in a many-to-many relationship. Show/hide problem ro</span>ws<br/> <div><br/></div> <div>Am I doing wrong? or Ignore the error shown in the Bids helper?</div> <div><br/></div> <div>Thanks,</div> <div><br/></div> <div><br/></div> <div>-----------------------</div> <div>Same thing I posted in Bids helper: <a href="http://bidshelper.codeplex.com/Thread/View.aspx?ThreadId=76353">http://bidshelper.codeplex.com/Thread/View.aspx?ThreadId=76353</a></div> <div><br/></div> </div>Thu, 26 Nov 2009 20:34:54 Z2009-11-28T01:03:44Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/fa33605e-f75d-45d2-ab72-8aa78b9f8311http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/fa33605e-f75d-45d2-ab72-8aa78b9f8311mindscape777http://social.msdn.microsoft.com/Profile/en-US/?user=mindscape777Using MAX Function to retain a constant across all membersHappy Black Friday! :-)<br/> <br/> I have a regular measure which pulls from a fact table having a field which is a constant cummulative sum of all associated records and so the value of the field never changes until the next table update.<br/> <br/> Because our client wants to see this value in the cube as a non-changing value across all corresponding attributes as well, I have set the measures Aggregate function to MAX instead of sum which gives them the results they expect.<br/> <br/> Now they'd like to have the regular measure changed to a calculated measure but retaining the same affect.<br/> <br/> I have attempted this my using the MAX function within the calculated measure but when the associated attributes are dragged onto the browser, the measure is broken and distributed across all the attributes. (As I'd expected)<br/> <br/> Is there an equivalent way using a calculated measure to acquire the same results returned by the regular measure when using the MAX function against the table or should I push back on the request?<br/> <br/> ThanksFri, 27 Nov 2009 16:10:36 Z2009-11-28T00:14:39Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/012a75f8-bbd3-41cc-a24e-11369c0dbad6http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/012a75f8-bbd3-41cc-a24e-11369c0dbad6hal9000xhttp://social.msdn.microsoft.com/Profile/en-US/?user=hal9000xCube/DWH Design Problem<span><span><span><span>Hi,<br/> <br/> I have fact table with a contract value. Also I have a dimension with a contract states<br/> <br/> - Actual<br/> - Replace<br/> - Canceled<br/> <br/> Now I have to display a ratio with following calculation <br/> <br/> ratio = Actual - Replaced - Canceled <br/> <br/> I have a cube which can be used to see the contract values by time, state, region etc.<br/> <br/> Is there a way in Analysis Services to make such a calculation in a cube or do I have to change my fact table or create a new one.<br/> <br/> Thanks for every hint</span> </span> </span> </span>Thu, 26 Nov 2009 10:52:41 Z2009-11-27T23:20:10Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/1b99ecd3-04a4-4793-b135-30f8aec52aeehttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/1b99ecd3-04a4-4793-b135-30f8aec52aeegcardosohttp://social.msdn.microsoft.com/Profile/en-US/?user=gcardosoPowerPivot and SQL Server 2008 R2Hi guys,<br/><br/>I'm testing PowerPivot on Microsoft Excel 2010 and sad in many places people comments that PowerPivot needs of SQL Server 2008 R2, but in my tests i used the powerpivot without SQL Server R2 and no have any problems, I installed the SQL Server 2008 R2 and no realized any diferent behavior in my tests about PowerPivot.<br/><br/>Someone,  knows if is necessary the use of SQL Server 2008 R2 to PowerPivot. If yes, what's change?<br/><br/>Regards,<br/>gcardoso<br/><br/>   Thu, 26 Nov 2009 16:51:47 Z2009-11-27T23:04:55Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/375e8f61-fbb0-4ba2-895e-bdf897855298http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/375e8f61-fbb0-4ba2-895e-bdf897855298Vladimirov Pavelhttp://social.msdn.microsoft.com/Profile/en-US/?user=Vladimirov%20PavelDistinct Count of Active CustomersI have distinct count measure <div> <div>aggregate(null:[Date].[Calendar].CurrentMember,[Measures].[Count of Custs])</div> <div><br/></div> <div>*[Count of Custs] is Distinct Count measure</div> <div>how can i find only active of them?</div> <div>like [measures].[Count of Contracts]&gt;0</div> <div><br/></div> <div>any ideas, please</div> </div><hr class="sig">Vitam impendante vero!Fri, 27 Nov 2009 12:35:05 Z2009-11-27T22:50:23Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/317a1e74-166a-4e8a-8e40-64aae6b2a73fhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/317a1e74-166a-4e8a-8e40-64aae6b2a73fdjonesatlhttp://social.msdn.microsoft.com/Profile/en-US/?user=djonesatlIncome Statement BudgetI am working on an Income Statement Cube that supports Budget versus Actuals analytics. My question is should I have a seperate fact table for budget amounts or just a dimension to distinguish between Actual amounts and Budgeted amounts... Also, I am attempting to provide transaction level drill-down on this same cube, but I am forced to use Excel '03 as a frontend and the only way I've come up with is to expand my Chart of Accounts Parent-child dimision table to the transaction level of detail (very challenging)... Is there a better way?<br/><br/>Thanks for advice or thoughts...<br/><br/>David    Fri, 27 Nov 2009 18:10:57 Z2009-11-27T22:44:59Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/98802863-86dd-4278-b03e-0894ca53d40ahttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/98802863-86dd-4278-b03e-0894ca53d40aRachael1http://social.msdn.microsoft.com/Profile/en-US/?user=Rachael1Analysis Services SecurityI need to know if I can put security on an analysis services 2008 cube so that for a specific dimension attribute if there is a specific value only a specfic NT group can see any of the measures and other related attributes (ie. for State = 'Hawaii' only the specified group can see the measures).  Also, can we have a calculation that will give the totals including Hawaii and display this even if the end-user isn't in the group.  I am using Excel 2007 to access the cube. Fri, 27 Nov 2009 21:29:45 Z2009-11-27T22:18:28Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/427401f6-f8ad-43c4-a464-f19f93eb870ahttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/427401f6-f8ad-43c4-a464-f19f93eb870aÒgúndiyahttp://social.msdn.microsoft.com/Profile/en-US/?user=%u00d2g%u00fandiyaPivot Table ServicesIs Pivot Table Services a downloadable component from Microsoft? I am trying to get my ProClarity Desktop Pro 6.3 to install on my machine.Tue, 24 Nov 2009 18:15:12 Z2009-11-27T21:40:59Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/80c3ca53-e966-45af-96fe-3da057b11df4http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/80c3ca53-e966-45af-96fe-3da057b11df4JGPhttp://social.msdn.microsoft.com/Profile/en-US/?user=JGPError when refreshing DSV in BIDS for SSAS 2008 SP1Hi,<br/><br/>I get this error when I try to refresh my DSV in BIDS for SSAS 2008 SP1:<br/><br/>System.Data - &quot;A child row has multiple parents&quot;<br/><br/>Any idea what could be causing this? I checked to see if this error meant some of my PKs in the datamart dim tables had somehow gotten duplicated - but that did not seem to be the case.<br/><br/>All the DSV entities are pointing at Oracle 10R2 views via  the System.Data.OracleClient MS  provider (I know its deprecated but worked fine so far).<br/><br/>I can't refresh my DSVs anymore so any help is appreciated. Thanks!<br/><br/>JGPFri, 27 Nov 2009 21:27:35 Z2009-11-27T21:27:39Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/bb7bcae4-e102-482d-a4b7-60d78ec451eehttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/bb7bcae4-e102-482d-a4b7-60d78ec451eeckcampbellhttp://social.msdn.microsoft.com/Profile/en-US/?user=ckcampbellDecimal precision in cube measures<p align=left><font face=Arial size=2>I have a cube with two fact tables.  One based on a table and one based on a named query in the DSV.  In both cases, my numeric measures are stored as NUMERIC(19, 6).  When the measures are brought forth in the cube they are shown with only four decimal places.  If I change the format string to #,#.000000, SSAS is still rounding the values to four digts.  For example, the value .015255 in the fact table is displaying as .015300 in the cube browser.  This is causing me a problem with some calculations.  </font></p> <p align=left> </p> <p align=left>Originally, the values in my fact tables were CURRENCY but I changed that to increase the precision and reloaded the fact table.  When I refreshed the DSV, it did not detect the changes so I actually deleted the fact tables from the DSV and re-added them.  I have also tried changing the data types on the measures in the cube to both float and currency to no avail.</p> <p align=left> </p> <p align=left>Is there a way to force SSAS to increase the number of decimal places it retains for measures?</p>Tue, 17 Jun 2008 19:04:27 Z2009-11-27T19:33:03Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/c83993ee-cc93-42d3-97ca-c6fe1cbdd845http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/c83993ee-cc93-42d3-97ca-c6fe1cbdd845SSAS BThttp://social.msdn.microsoft.com/Profile/en-US/?user=SSAS%20BTRecursive CalculationsIs it possible to deal with recursion using SSAS Stored procedures.Fri, 27 Nov 2009 13:35:30 Z2009-11-27T16:49:55Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/dee22314-afb3-4012-82ba-38a7244b700ehttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/dee22314-afb3-4012-82ba-38a7244b700eFrancesco Vaninhttp://social.msdn.microsoft.com/Profile/en-US/?user=Francesco%20VaninProactive caching and rolapHi, I'm try to implement the proactive caching in my cube but I have some problems:<br/>1) I have set the storage mode for my time dimension and for my measure group as ROLAP and all works perfectly: when I delete all data for a particular day and I delete this particular day from my time dimension the excel pivottable reports exactly the change (data and day). If I re-add the same data, after a seconds all came back as it was at the beginning.<br/>2) I have set the storage mode for my time dimension and for my measure group as MOLAP enabling proactive caching, the toy works no more....Happens that when I delete data (all data of a day and the same day from time dimension) excel pivottable reports exactly the change, but if I re-add the same data, after 10 seconds the day reappears in the time dimension in my excel pivottable but data doesn't reappear, the measure group is not automatically updated.<br/>Maybe I'm setting up in a wrong manner my proactive caching but I dont't understand where I'm wrong. One of you can help me?<br/>My proactive settngs are:<br/>1) Cache settings: update cache when data changes.<br/>                   Silence intervals 10 seconds<br/>                   Silence override interval 2 minutes<br/>2) Notifications: SQL server (checked the specify tracking table )<br/><br/>Thanks, Francesco<br/>Fri, 27 Nov 2009 13:32:43 Z2009-11-27T16:22:34Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/5a81c299-d2d1-4c8d-80dc-4c0d426a7c1chttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/5a81c299-d2d1-4c8d-80dc-4c0d426a7c1cpscorcahttp://social.msdn.microsoft.com/Profile/en-US/?user=pscorcaLaunching a cube processing with a job in SQL Server 2005 Standard EditionI cannot using a dtsx to process a cube or a dimension in a SQL Server Agent job.<br/>Can I execute a cube/dimension processing as a SQL Server Agent job?<br/>Many thanksFri, 27 Nov 2009 11:54:47 Z2009-11-27T15:45:58Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/af8269e6-32f8-4ad3-88b1-870e5c4a02a4http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/af8269e6-32f8-4ad3-88b1-870e5c4a02a4Jochen Zhttp://social.msdn.microsoft.com/Profile/en-US/?user=Jochen%20ZCustom semiadditive behaviourHello, I have an inventory problem and I wish to add custom semi-additive behaviour to an aggregate. I would like to now the max value over time (week, month, year, ...) of a quantity (a daily snapshot). This means that the aggregate should be summed across all dimensions, except the time dimension (where I want max to be applied). Default semiadditive aggregate functions do not support this (the max function maximizes over all dimensions). So how can I solve this? Do I have to define a calculated measure? JochenWed, 25 Nov 2009 10:26:42 Z2009-11-27T15:41:20Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/6136326e-1c36-4ca3-b15b-806c699ea82dhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/6136326e-1c36-4ca3-b15b-806c699ea82dhal9000xhttp://social.msdn.microsoft.com/Profile/en-US/?user=hal9000xDate Dimension and Dates like 0001-01-01 / 9999-12-31Hi,<br/><br/>I have a fact table / cube with a date column with some entries like 0001-01-01 / 9999-12-31. Now I want to add a date dimension.<br/>When I add the entries 0001-01-01 / 9999-12-31 to my date dimension SSAS is not able to process the dimension. Is there a way to do that?<br/><br/>ThanksFri, 27 Nov 2009 13:47:43 Z2009-11-27T14:32:35Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/0671fd2e-cd46-4262-afa4-1d01459bd358http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/0671fd2e-cd46-4262-afa4-1d01459bd358Raul Garinhttp://social.msdn.microsoft.com/Profile/en-US/?user=Raul%20GarinOLAP Server Formatting modified after upload ODC to sharepoint<p>Hi,</p> <p>I don't know if this post should be here, but I found similar posts while searching for the solution...</p> <p>What happens is the following:<br/><br/>If I create a new ODC (for an analysis services connection), Excel 2007 shows the measures as formatted in the cube properties. The ODC &quot;connection properties&quot; dialog shows, under the Usage tab, all the &quot;OLAP Server Formatting&quot; ticks CHECKED. OK so far.</p> <p>Then I upload the ODC to a sharepoint data connection library.</p> <p>The problem is, when I open the ODC from sharepoint to an Excel worksheet, measures are shown without format. If, again, I open the ODC's &quot;connection properties&quot; dialog, all the &quot;OLAP Server Formatting&quot; ticks are UNCHECKED. If I recheck the &quot;Number Format&quot;, everything works fine again...</p> <p>Do somebody know why are those checks changed?? Is it a property of the ODC, or of the Excel file??</p> <p>Thanks!</p>Fri, 27 Nov 2009 12:13:23 Z2009-11-27T12:13:24Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/3b5ac9ff-07ce-496e-b40b-92ab8346dbebhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/3b5ac9ff-07ce-496e-b40b-92ab8346dbebSriram_YShttp://social.msdn.microsoft.com/Profile/en-US/?user=Sriram_YScannot operate on a set with more than 4,294,967,296 tuplesHi All, <div><br/></div> <div>Have been facing an issue from couple of days, was trying to form a query both in the reporting services and proclarity and I am getting this error. </div> <div><br/></div> <div> <div>Parsing the query ...</div> <div>The expression contains a function that cannot operate on a set with more than 4,294,967,296 tuples.</div> <div><br/></div> <div>Parsing complete</div> <div><br/></div> <div>Have been trying to dig through the issue but in vain, I have tried to create sets and filter the data to only required, but still getting this error. </div> <div><br/></div> <div>What affects this, </div> <div>Is there a chance of getting this error when we use more number of Measure Groups/ Fact Tables.</div> <div><br/></div> <div>Can any body throw some light on this, Thanks.</div> <div><br/></div> <div>Srira</div> </div>Fri, 27 Nov 2009 11:26:50 Z2009-11-27T12:08:58Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/f0021fbd-38ac-4694-aecc-7d255d2186abhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/f0021fbd-38ac-4694-aecc-7d255d2186abRaulQhttp://social.msdn.microsoft.com/Profile/en-US/?user=RaulQMDX - have a measure use one hierarchy or another depending on which is present in the queryHi all,<br/> I have a time dimention with 2 hierarquies:<br/> <br/> [Year - Short Month] ex:<br/> 2008<br/>    Jan<br/>    Feb<br/>    ...<br/>    Dec<br/> 2009<br/>    Jan<br/>    Feb<br/>    ...<br/>    Dec<br/> <br/> and [Year - Day]<br/> <br/> 2008<br/>    Semester 1 of 2008<br/>       Trimester 1 of 2008<br/>          Jan<br/>             1<br/>             2<br/>             ...<br/>  Semester 2 of 2008<br/>       Trimester 4 of 2008<br/>         ....<br/>        Dec<br/>             1<br/>             2<br/>             ...<br/> <br/> And a calculated member as:<br/> <br/> Sum(PeriodsToDate([Time].[Year - Short Month].[Year],[Time].[Year - Short Month].CurrentMember), [Measures].[Production])<br/> <br/> As it's obvious it only works with the [Year - Short Month]...can't i rewrite is so it uses one or the other depending on which is present in the query (so the user can use it independently)? <br/> <br/> Thanks!!<br/>Thu, 26 Nov 2009 15:27:05 Z2009-11-27T11:41:24Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/60516ccb-d4aa-4a37-8eb8-fe65f860d703http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/60516ccb-d4aa-4a37-8eb8-fe65f860d703Abdeslam60http://social.msdn.microsoft.com/Profile/en-US/?user=Abdeslam60SSAS 2008 - Level All not visible in a Dimension <p>Hi,<br/><br/>I am working on dimension which contains several hierarchy, and I want to display for each hierarchy the level All but it doesn't work.<br/>I think that I did everythings properly but without succes.<br/>For exemple : Dim Time : Year - Month - day<br/>I specified for each attribut the true value in the IsAggretable case but the level All doesn't appear. The result is the first level on my dimension (Year)<br/>Do I miss something important.<br/>I need to display the All level which aggregate all of my descendant level.<br/><br/>thanks.<br/><br/>regards<br/><br/>Abdeslam</p>Wed, 25 Nov 2009 16:43:27 Z2009-11-27T11:33:55Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/6cec521d-49b3-494b-9e1f-21d455b57fd7http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/6cec521d-49b3-494b-9e1f-21d455b57fd7Ramakrishnan.lhhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ramakrishnan.lhHelp needed in Weekly reportings from ASHi All,<br/><br/>   I have a time dimension which is  generated from AS 2005.  By default in some cases the last week will fall in between two months. Now i need to create a report in which my  WEEK is fixed. i.e from<br/> <p class=MsoNormal style="margin-left:1in;text-indent:-0.25in"><span style="font-size:x-small;color:#000000;font-family:Courier New"><span style="font-size:11pt;color:black"><span><span style="font-size:xx-small;font-family:Times New Roman"><span style="font-weight:normal;font-size:7pt;line-height:normal;font-style:normal;font-variant:normal">          </span></span></span></span></span><span style="font-size:x-small;color:#000000;font-family:Arial"><span style="font-size:11pt;color:black;font-family:Arial">Week1:1<sup>st</sup> to 7<sup>th</sup> <br/></span></span><span style="font-size:x-small;color:#000000;font-family:Courier New"><span style="font-size:11pt;color:black"><span><span style="font-size:xx-small;font-family:Times New Roman"><span style="font-weight:normal;font-size:7pt;line-height:normal;font-style:normal;font-variant:normal"> </span></span></span></span></span><span style="font-size:x-small;color:#000000;font-family:Arial"><span style="font-size:11pt;color:black;font-family:Arial">Week2:8<sup>th</sup> to 15<sup>th</sup> <br/></span></span><span style="font-size:x-small;color:#000000;font-family:Courier New"><span style="font-size:11pt;color:black"><span><span style="font-size:xx-small;font-family:Times New Roman"><span style="font-weight:normal;font-size:7pt;line-height:normal;font-style:normal;font-variant:normal">  </span></span></span></span></span><span style="font-size:x-small;color:#000000;font-family:Arial"><span style="font-size:11pt;color:black;font-family:Arial">Week3:16<sup>th</sup> to 22<sup>nd</sup>  <br/></span></span><span style="font-size:x-small;color:#000000;font-family:Courier New"><span style="font-size:11pt;color:black"><span><span style="font-size:xx-small;font-family:Times New Roman"><span style="font-weight:normal;font-size:7pt;line-height:normal;font-style:normal;font-variant:normal">  </span></span></span></span></span><span style="font-size:x-small;color:#000000;font-family:Arial"><span style="font-size:11pt;color:black;font-family:Arial">Week4:23<sup>rd</sup> to end.<br/></span></span><br/><br/>Please let me know how will i achieve this kind of fixd week into my AS so that i can report from this.<br/><br/>Regards,<br/>Ram<br/><br/></p>Wed, 25 Nov 2009 11:41:46 Z2009-11-27T10:22:08Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/c1f6921a-f4dd-439d-a6eb-fa143b108f88http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/c1f6921a-f4dd-439d-a6eb-fa143b108f88hal9000xhttp://social.msdn.microsoft.com/Profile/en-US/?user=hal9000xAdd additional entries to generated Time DimensionHi,<br/> <br/> I have a generated Tme Dimension (with the dimension wizard) which was also generated as table in my DB. I generated the dimension from 1990 - 2020. Now I have the problem that I have also entries in my fact table lower than 1990. Now I want to add more entries to that dimension table. Is there a way to do that?Fri, 27 Nov 2009 09:18:06 Z2009-11-27T09:33:21Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/eb12eb3f-4e15-4022-b1fb-8b6f52377018http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/eb12eb3f-4e15-4022-b1fb-8b6f52377018Leo Schelvishttp://social.msdn.microsoft.com/Profile/en-US/?user=Leo%20SchelvisReplace NonEmptyCrossJoin<p>Hi all,</p> <p>I have a MDX query which performs very badly. I was able to rewrite the query using a NonEmptyCrossJoin and now it performs much better. However, I want to replace the deprecated function with the correct SSAS2005 alternatives.</p> <p>Original query:</p> <span style="font-size:x-small"> <pre>SELECT ( DESCENDANTS([LimitType].[LimitType],,SELF_AND_AFTER), { [Measure].[Measure].[Limit], [Measure].[Measure].[Position], [Measure].[Measure].[Excess] } ) PROPERTIES [LimitType].[LimitType].[Alias], [Measure].[Measure].[Alias] ON COLUMNS, NON EMPTY ( DESCENDANTS([Division].[Division].[Client Structured Products],,AFTER), DESCENDANTS([Branch].[Branch].[(ALL)],,AFTER), DESCENDANTS([BookCurrency].[BookCurrency].[(ALL)],,AFTER) ) PROPERTIES [BookCurrency].[BookCurrency].[Alias], [Division].[Division].[Alias], [Branch].[Branch].[Alias] ON ROWS FROM [CRIS_LCS] WHERE ( [Measures].[Amount], [PositionDate].[PositionDate].[20090904] ) <br/></pre> <br/>Rewritten query:<br/> <pre>SELECT ( DESCENDANTS([LimitType].[LimitType],,SELF_AND_AFTER), { [Measure].[Measure].[Limit], [Measure].[Measure].[Position], [Measure].[Measure].[Excess] } ) PROPERTIES [LimitType].[LimitType].[Alias], [Measure].[Measure].[Alias] ON COLUMNS, NonEmptyCrossJoin( DESCENDANTS([Division].[Division].[Client Structured Products],,AFTER), DESCENDANTS([Branch].[Branch].[(ALL)],,AFTER), DESCENDANTS([BookCurrency].[BookCurrency].[(ALL)],,AFTER)) DIMENSION PROPERTIES [BookCurrency].[BookCurrency].[Alias], [Division].[Division].[Alias], [Branch].[Branch].[Alias] ON ROWS FROM [CRIS_LCS] WHERE ( [Measures].[Amount], [PositionDate].[PositionDate].[20090904] )</pre> I just cannot figure out how to replace the NECJ without loosing performance. Can anyone give me a push in the correct direction?</span>Thu, 26 Nov 2009 08:44:41 Z2009-11-27T09:27:25Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/fd0caa7d-eaa5-4f54-a69c-f471e6ce21a6http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/fd0caa7d-eaa5-4f54-a69c-f471e6ce21a6MAQ1http://social.msdn.microsoft.com/Profile/en-US/?user=MAQ1SSAS writeback on a partition that contains aggregate functions other than SUMDear all,<br/><br/>I have a cube that contains inventory levels by week. Most of the measures use the 'Last non empty' aggregate function as the total picture of what we have in stock is based on the last set of records. However we need to make adjustments to these based on stock takes and inventory counting.<br/><br/>What I'd hoped to do was enable writeback and use Excel 2007 pivot tables, but I see this is not possible with aggregate functions other than Sum. Can anyone suggest any alteratives to this?<br/><br/>I need to allow certain end users to make these changes, so it has to be reasonably simple, auditable and quick.<br/><br/>We are using SQL 2008 - Enterprise Edition.<br/><br/>Many thanks<br/><br/>MattThu, 26 Nov 2009 22:23:34 Z2009-11-27T09:17:58Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/6c33c865-2012-49c8-a025-7e4baff76af7http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/6c33c865-2012-49c8-a025-7e4baff76af7Abdur Rauof Thameemhttp://social.msdn.microsoft.com/Profile/en-US/?user=Abdur%20Rauof%20ThameemCalculated Member in AdomdCommand<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:small"><span style="font-family:Calibri">Hi, </span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt"> </p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:small"><span style="font-family:Calibri">I am trying to execute a MDX query with calculated members using adomdCommand, it throws an exception below are the details. </span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-family:Calibri;font-size:small"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:small"><span style="font-family:Calibri">MDX query :</span></span></p> <br/> <div style="background-color:white;color:black"> <pre><span style="color:blue">WITH</span> <span style="color:blue">SET</span> orderedemployees <span style="color:blue">AS</span> <span style="color:blue">Order</span> (<br/>[Employee].[Employee].[Employee].MEMBERS,[Measures].[Reseller Sales Amount] ,bdesc) MEMBER Measures.[Employee Rank] <span style="color:blue">AS</span> Rank ( [Employee].[Employee].CurrentMember ,orderedemployees ) <span style="color:blue">SELECT</span> Measures.[Employee Rank] <span style="color:blue">ON</span> 0 <span style="color:blue">FROM</span> [Adventure Works] <span style="color:blue">WHERE</span> [Employee].[Employee].&amp;[46]</pre> </div> <p class=MsoNormal style="margin:0in 0in 0pt">C# Snippet:</p> <div style="background-color:white;color:black"> <pre><span style="color:blue">string</span> mdxQuery = <span style="color:#a31515">&quot;...&quot;</span>; <span style="color:green">// MDX query</span> AdomdCommand adomdCommand = <span style="color:blue">new</span> AdomdCommand(mdxQuery, adomdConnectionObj); CellSet = adomdCommand.ExecuteCellSet(); </pre> </div> <p class=MsoNormal style="margin:0in 0in 0pt"><br/>Error Message :<br/><br/>&gt;&gt;&gt;&gt;&gt;&gt;</p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:small"><span style="font-family:Calibri"><br/>&quot;The '[Measures].[Employee Rank]' object was not found. Parameter name: uniqueName&quot;</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><br/>&gt;&gt;&gt;&gt;&gt;&gt;<br/></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-family:Calibri;font-size:small">Can anybody please point me out how this can be resolved..??<br/> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:small"><span style="font-family:Calibri">Thanks,</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:small"><span style="font-family:Calibri">Thameem</span></span></p>Wed, 25 Nov 2009 15:50:17 Z2009-11-27T11:18:03Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/031ad7e0-bcb1-4acd-98e9-a55d45398e17http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/031ad7e0-bcb1-4acd-98e9-a55d45398e17Ramu Sqlhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ramu%20SqlFilter function in where clasueHi All,<br/><br/>How to use filter function  in where clause using MDX?Wed, 25 Nov 2009 11:18:14 Z2009-11-27T09:01:38Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/d23dddec-da79-4c9d-9113-751afae00fb5http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/d23dddec-da79-4c9d-9113-751afae00fb5Ramu Sqlhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ramu%20Sqlin usage in mdx<p>Hi All,</p> <p>I need to create a member in mdx based on condition If &lt;Customer Base No&gt; InList (&quot;0000071682&quot; ,&quot;0000056247&quot; ,&quot;0000055932&quot; ) Then &quot;EM&quot; Else</p> <p>&quot;External&quot;<br/><br/>How to create it?</p>Wed, 25 Nov 2009 10:59:52 Z2009-11-27T09:43:46Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/8f097ee1-d17f-454e-bac2-56f129afba94http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/8f097ee1-d17f-454e-bac2-56f129afba94Abrasaxhttp://social.msdn.microsoft.com/Profile/en-US/?user=AbrasaxMDX Prior Year to Date (YTD) using Shell Dimension<span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt">Good morning, <br/><br/>Ok, so this has been quite a long journey so far to try and get the relative time calculations to work correctly. That said, the last hurdle we need to cross is to get the Prior Year to Date (YTD) calculations to work. </span><strong><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt">My MDX Skill level</span></strong><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt">: Complete Novice.<br/><br/>Let me list what I have already tried so that hopefully I don't get redirected to the same posts again:<br/><br/>* Marco Russo's &quot;Date Tool Dimension&quot; Solution (MDX currently beyond my understanding)<br/>* A different approach to Time Calculations by David Shroyer<br/>* Quite a few online blogs and posts<br/><br/>Ok, so let's get down to the nitty gritty:<br/><br/>I have a simple Time Dimension set up with 3 Levels: Year, Quarter, Month. The Time Dimension only goes down to a month level, and thus we do not have daily Fact data available. Each of the levels mentioned above have been set up correctly in terms of Time Properties (Type). So the Year level has been defined as &quot;Years&quot;, the Quarter Level has been defined as &quot;Quarters&quot;, and the month has been defined as &quot;Months&quot;.<br/><br/>Below is a snippet of the data in the source table for our Time Dimension:</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 12pt"> <table class=MsoNormalTable style="width:389.25pt;border-collapse:collapse" border=0 cellspacing=0 cellpadding=0 width=519> <tbody> <tr style="height:15pt"> <td style="background-color:transparent;width:77pt;height:15pt;border:#ece9d8;padding:0cm" width=103> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><strong><span style="color:black;font-size:10pt">Month</span></strong><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;width:77pt;height:15pt;border:#ece9d8;padding:0cm" width=103> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><strong><span style="color:black;font-size:10pt">Month_Name</span></strong><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;width:77pt;height:15pt;border:#ece9d8;padding:0cm" width=103> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><strong><span style="color:black;font-size:10pt">Quarter</span></strong><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;width:77pt;height:15pt;border:#ece9d8;padding:0cm" width=103> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><strong><span style="color:black;font-size:10pt">Quarter_Name</span></strong><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;width:77pt;height:15pt;border:#ece9d8;padding:0cm" width=103> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><strong><span style="color:black;font-size:10pt">Year</span></strong><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;width:77pt;height:15pt;border:#ece9d8;padding:0cm" width=103> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><strong><span style="color:black;font-size:10pt">Year_Name</span></strong><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> </tr> <tr style="height:15pt"> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-01-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-07-03</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">Qtr 3</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-07-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> </tr> <tr style="height:15pt"> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-02-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-02</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-07-03</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">Qtr 3</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-07-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> </tr> <tr style="height:15pt"> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-03-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-03</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-07-03</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">Qtr 3</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-07-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> </tr> <tr style="height:15pt"> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-04-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-04</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-07-04</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">Qtr 4</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-07-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> </tr> <tr style="height:15pt"> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-05-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-05</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-07-04</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">Qtr 4</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-07-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> </tr> <tr style="height:15pt"> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-06-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-06</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-07-04</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">Qtr 4</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-07-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> </tr> <tr style="height:15pt"> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-07-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-07</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2007-07-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">Qtr 1</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2007-07-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2007</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> </tr> <tr style="height:15pt"> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-08-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-08</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2007-07-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">Qtr 1</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2007-07-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2007</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> </tr> <tr style="height:15pt"> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-09-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-09</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2007-07-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">Qtr 1</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2007-07-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2007</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> </tr> <tr style="height:15pt"> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-10-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2006-10</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2007-07-02</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">Qtr 2</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2007-07-01</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> <td style="background-color:transparent;height:15pt;border:#ece9d8;padding:0cm"> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri"><span style="color:black;font-size:10pt">2007</span><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"></span></span></p> </td> </tr> </tbody> </table> </p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"><br/>So the year starts in July, and ends in June the following year i.e. 2010 would start in 2009-07-01 and end in 2010-06-01. NOTE: The Month, Quarter and Year columns are defined as DATETIME however I removed the time portion of the information in this post due do space limitations.<br/><br/>My cube currently contains 187 measures in it &amp; counting. Due to the large amount of measures, it would be impractical to create time calculations such as YTD, Prior YTD, QTD, and Prior QTD for each measure because then we would end up with 187 * 4 calculated measures...<br/><br/>To get around this issue we implemented a Shell Dimension for these time calculations called &quot;Frequency Dimension&quot;. What it table does is it contains the actual MDX code for the time calculations, and it is also a Parent Child Dimension. Let me post a snippet of the code so that perhaps it makes more sense:</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><strong style=""><span style="text-decoration:underline"><span style="font-family:'Verdana','sans-serif';color:black;font-size:8pt">I am going to post the rest of my question as a reply to this one due to character limitations per post...</span></span></strong></p> </span></span>Thu, 26 Nov 2009 07:45:52 Z2009-11-27T08:35:04Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/fb8d965f-d3d1-47a2-b296-a61adca2eaaehttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/fb8d965f-d3d1-47a2-b296-a61adca2eaaeORIONSQL2005http://social.msdn.microsoft.com/Profile/en-US/?user=ORIONSQL2005DistinctCount based on results of another Measure ValueI created a DistinctCount measure on column &quot;dossiernummer&quot;.  The result is not correct beause it counts also dossiers where the sum of the revenue is 0 (depending of the slice and dice you do) How can i define a DistinctCount on the &quot;dossiernummer&quot; column where the sum of revenue&gt;0 ??? Can somebody help ???<br/><br/>I wrote an sql statement directly on my star schema to give an example of what kind of calculation i want:<br/><br/><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"> <p>select</p> </span></span></span></span><span style="font-size:x-small">   vfenummer</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">,<br/></span></span><span style="font-size:x-small">   dossierreputatiecode</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">,<br/></span></span><span style="font-size:x-small">   jaar</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">,<br/></span></span><span style="font-size:x-small;color:#ff00ff"><span style="font-size:x-small;color:#ff00ff">   count</span></span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">(</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">distinct</span></span><span style="font-size:x-small"> dossiernummer</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">)</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">as</span></span><span style="font-size:x-small"> distinctdossier<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">from<br/></span></span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">(<br/></span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">select<br/></span></span><span style="font-size:x-small">   t1</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">.</span></span><span style="font-size:x-small">vfenummer</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">,<br/></span></span><span style="font-size:x-small">   t1</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">.</span></span><span style="font-size:x-small">dossiernummer</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">,<br/></span></span><span style="font-size:x-small">   t2</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">.</span></span><span style="font-size:x-small">dossierreputatiecode</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">,<br/></span></span><span style="font-size:x-small;color:#ff00ff"><span style="font-size:x-small;color:#ff00ff">   datepart</span></span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">(</span></span><span style="font-size:x-small;color:#ff00ff"><span style="font-size:x-small;color:#ff00ff">year</span></span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">,</span></span><span style="font-size:x-small">t1</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">.</span></span><span style="font-size:x-small">declaratiedatum</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">)</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">as</span></span><span style="font-size:x-small"> jaar</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">,<br/></span></span><span style="font-size:x-small;color:#ff00ff"><span style="font-size:x-small;color:#ff00ff">   sum</span></span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">(</span></span><span style="font-size:x-small">t1</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">.</span></span><span style="font-size:x-small">bedragomzet</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">)</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">as</span></span><span style="font-size:x-small"> bedragomzet<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">from<br/></span></span><span style="font-size:x-small">   _TBL_OMS_Feiten_Omzet t1<br/></span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">   LEFT</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">JOIN</span></span><span style="font-size:x-small"> _TBL_OMS_Dimensie_Dossier t2 </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">ON</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">(</span></span><span style="font-size:x-small">t1</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">.</span></span><span style="font-size:x-small">dossiernummer</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">=</span></span><span style="font-size:x-small">t2</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">.</span></span><span style="font-size:x-small">dossiernummer</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">)<br/></span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">group</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">by<br/></span></span><span style="font-size:x-small">   t1</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">.</span></span><span style="font-size:x-small">vfenummer</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">,<br/></span></span><span style="font-size:x-small">   t1</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">.</span></span><span style="font-size:x-small">dossiernummer</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">,<br/></span></span><span style="font-size:x-small">   t2</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">.</span></span><span style="font-size:x-small">dossierreputatiecode</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">,<br/></span></span><span style="font-size:x-small;color:#ff00ff"><span style="font-size:x-small;color:#ff00ff">   datepart</span></span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">(</span></span><span style="font-size:x-small;color:#ff00ff"><span style="font-size:x-small;color:#ff00ff">year</span></span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">,</span></span><span style="font-size:x-small">t1</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">.</span></span><span style="font-size:x-small">declaratiedatum</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">)<br/>)</span></span><span style="font-size:x-small">s1<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">where<br/></span></span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">   not</span></span><span style="font-size:x-small"> bedragomzet</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">=</span></span><span style="font-size:x-small">0 </span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">and</span></span><span style="font-size:x-small"> vfenummer</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">=</span></span><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">'102'</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">and</span></span><span style="font-size:x-small"> jaar </span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">between</span></span><span style="font-size:x-small"> 2006 </span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">and</span></span><span style="font-size:x-small"> 2009<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">group</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">by<br/></span></span><span style="font-size:x-small">   vfenummer</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">,<br/></span></span><span style="font-size:x-small">   dossierreputatiecode</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">,<br/></span></span><span style="font-size:x-small">   jaar<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">order</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">by<br/></span></span><span style="font-size:x-small">   vfenummer</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">,<br/></span></span><span style="font-size:x-small">   dossierreputatiecode</span><span style="font-size:x-small;color:#808080"><span style="font-size:x-small;color:#808080">,<br/></span></span><span style="font-size:x-small">   jaar</span>Thu, 26 Nov 2009 22:01:22 Z2009-11-27T08:18:18Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/457eb0db-3ed9-4a37-b199-acfb7ab09549http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/457eb0db-3ed9-4a37-b199-acfb7ab09549Ramakrishnan.lhhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ramakrishnan.lhTo get the Count as a total in a reporthi all,<br/><br/>  I have a scenario as follows. I am calculatind the absolute deifference of a measure as follows<br/>if abs(M1-M2) is positive then 1else if Abss(M1-M2) is negative then 2 else 0 . so in my report if i drag my time and geography dimenion i get the following<br/><br/>                    Day1  Day 2     Day3  ................................................................ Day 30           Total Count<br/>East              0         0          1                                                                              1                         2 <br/>West             0          1          2                                                                             2                          2   <br/>North             0           0         0                                                                             0                          0<br/>South             0         1            0                                                                            0                          1<br/><br/>I need to get the counts of 1 and 2 for the region across al the days for the month selected and need to display in the report.<br/>Please let me know how can i achieve it.<br/><br/>regards<br/>ram Mon, 23 Nov 2009 09:41:55 Z2009-11-27T09:06:19Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/c0ff38ac-867a-41f4-97e5-fa438718d2eahttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/c0ff38ac-867a-41f4-97e5-fa438718d2eaMr SPhttp://social.msdn.microsoft.com/Profile/en-US/?user=Mr%20SPCaching SSAS stored procedure outputHi, I am using a custom DLL function (SSAS stored procedure) for the Cell Security in SSAS role. This function returns a MDX Expression like below for each logged in user ( ( ( ( Ancestor([Geography].[Geography].CurrentMember, [Geography].[Geography].[Country]) IS [Geography].[Geography].[Country].&amp;[Australia] OR Ancestor([Geography].[Geography].CurrentMember, [Geography].[Geography].[Country]) IS [Geography].[Geography].[Country].&amp;[Canada] ) ) AND ( ( [Promotion].[Promotion Category].currentmember IS [Promotion].[Promotion Category].&amp;[No Discount] ) ) AND ( ( [Measures].CurrentMember IS [Measures].[Internet Gross Profit] ) ) ) ) When I am using Excel 2007 to browse the cube I am getting performance hit on each click (it takes 20 to 60 seconds to return results). The cube and excel are on different servers. However if I put the hardcoded MDX expression (like above ) in Cell Security then I get results within 5 - 10 sencods. My question is - Is there any way that I can cache this function output for a user? Any help would be appreciated. Thu, 12 Nov 2009 09:00:24 Z2009-11-27T08:00:47Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/431b4da7-94ef-4b27-b34c-c708db715ef9http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/431b4da7-94ef-4b27-b34c-c708db715ef9Thotamoulihttp://social.msdn.microsoft.com/Profile/en-US/?user=ThotamouliFilter condition in Where clause using MDXHi All,<br/><br/>Am trying to use FILTER condition in where clause in MDX.<br/><br/><br/>Ex: FILTER([Operating Client].[By Marketing Client].[Operating Client].MEMBERS<br/>//        ,LEFT <br/>//                (<br/>//                 --[Operating Client].[KeyMarketingClient].CurrentMember.Member_key <br/>//                    [Operating Client].[By Marketing Client].CurrentMember.Properties( &quot;Marketing Client&quot; )<br/>//                 , 5 <br/>//                ) = &quot;UNDEF&quot;)<br/>//<br/>Please guide me how can i use this in MDX.<br/><br/>This above query i want to place in Where clause.Wed, 25 Nov 2009 10:50:53 Z2009-11-27T07:59:56Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/5518f45e-ec87-4e0b-86dc-35a14881028ahttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/5518f45e-ec87-4e0b-86dc-35a14881028aMortenNorgaardhttp://social.msdn.microsoft.com/Profile/en-US/?user=MortenNorgaardSumming two tuplesHello all,<br/> <br/> I'm afraid I'm stuck in newbie-land with this SUM thing. I need to SUM two tuples, should be simple but I can't for the life of me get it to work. I tried a variety of things, but end up with &quot;two sets cannot have different dimensionality&quot; error.<br/> <br/> I have this query:<br/> <br/> SELECT <br/> { AnnualTotalCount, crossjoin({ [Date].[Calendar Year].[Calendar Year].[CY 2001]}, {[Geography].[City].[City].[Arlington], [Geography].[City].[City].[Atlanta] }) } ON COLUMNS,<br/> NON EMPTY {[Measures].[Reseller Sales Amount]} ON ROWS<br/> FROM [Adventure Works]<br/> WHERE <br/>   (<br/>     {[Geography].[Country].[Country].[United States]}<br/>   );<br/> <br/> ... which gives me this table:<br/> <br/> <br/> <table border=0> <tbody> <tr> <td></td> <td>CY 2001</td> <td>CY 2001</td> </tr> <tr> <td></td> <td>Arlington</td> <td>Atlanta</td> </tr> <tr> <td>Reseller Sales Amount</td> <td>$37,781.64</td> <td>$603.40</td> </tr> </tbody> </table> <br/> <br/> What I'm after is this:<br/> <br/> <table border=0> <tbody> <tr> <td></td> <td>CY 2001</td> <td>CY 2001   CY2001<br/></td> </tr> <tr> <td></td> <td>Arlington</td> <td>Atlanta    Arlington+Atlanta sum<br/></td> </tr> <tr> <td>Reseller Sales Amount</td> <td>$37,781.64</td> <td>$603.40   $38385,04<br/></td> </tr> </tbody> </table> <br/> <br/> How on earth...? <br/> <br/> Many, many thanks in advance,<br/> <br/> Morten<br/>Mon, 23 Nov 2009 10:32:17 Z2009-11-27T07:50:20Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/abb6aee9-02da-4cea-86e5-6e24cfdb0f3chttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/abb6aee9-02da-4cea-86e5-6e24cfdb0f3cadriana legorretahttp://social.msdn.microsoft.com/Profile/en-US/?user=adriana%20legorretaProblem with Measure visualization in Analysis Services<p>Hi Everyone, Im facing a weird problem and I hope you can help me figure it out.<br/><br/>I have a named query as a table in Analysis Services, I have a measure that is a double... from the sql table comes like 75.00000 or 0.0000000 <br/>but when I see it in SASS browser or Proclarity it shows like 76 or 1 ... <br/><br/>Does anyone know what is causing this.<br/><br/>Thank you very much<br/><br/>Adriana</p>Wed, 25 Nov 2009 06:40:53 Z2009-11-27T07:24:23Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/cb6457cd-dc1b-44a0-a8b2-bca1e7bdf400http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/cb6457cd-dc1b-44a0-a8b2-bca1e7bdf400eshwar7606http://social.msdn.microsoft.com/Profile/en-US/?user=eshwar7606Implimenting security for non-domain usersHi Team,<br/><br/>We have a requirement for providing access of dashboard to non-active directory users. The users will be accessing the dashboard througha  web portal, there they enter the username and password. Please provide some information on this.<br/><br/>We have table which is storing the users information, is there any possibilities of providing securities at the report level. If anybody has any information please do share.<br/><br/>Thanks in advance. Have a nice day :)<br/><br/>Regards,<br/>RamTue, 24 Nov 2009 03:53:44 Z2009-11-27T09:47:58Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/7e0373d4-5fea-44f2-b78f-a487e54ecf5dhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/7e0373d4-5fea-44f2-b78f-a487e54ecf5dET77http://social.msdn.microsoft.com/Profile/en-US/?user=ET77Cumulated Sum BDESC ordered SetHi,<br/><br/>I need to calculate a cumulated sum over customers sorted by their overall revenue in a given time period. So using [customer].currentmember + [customer].Prevmember wont work since it is not adding the sorted customers but the hirarchy members.<br/>What it should be is something like this:<br/><br/> <div style="background-color:white;color:black"> <pre>Cust# Revenue Cumulated Sum 453 100 100 277 80 180 234 5 182 </pre> </div> My starting point was using the order by function but as stated before the current - Prev addition doesn't work of course. All examples i found are based on the time hirarchy and not on an ordering by something different like revenue except this one <a href="http://social.msdn.microsoft.com/forums/en-US/sqlanalysisservices/thread/46608bf0-a3ba-49bf-882c-382ac7ebb0d6/">http://social.msdn.microsoft.com/forums/en-US/sqlanalysisservices/thread/46608bf0-a3ba-49bf-882c-382ac7ebb0d6/</a>. <br/><br/>I tried to adapt it, but the calculated member produces an error.<br/><br/>I need to have the cumulated sum to build a chart in SSRS and the x-axis or grouping won't allow me to use the runningvalue function so i need to provide this value from the mdx query. The whole thing is an ABC Analysis for the costomers for different time periods.<br/><br/>Any help or different solution is apreciated.<br/><br/>Thanks in advance<br/><br/>Andre <br/><br/>This is the query:<br/><br/> <div style="background-color:white;color:black"> <pre><span style="color:blue">WITH</span> <span style="color:blue">SET</span> [KundenSortiert] <span style="color:blue">AS</span>(<span style="color:blue">ORDER</span>( [Kunden].[Nummer].Siblings,[Measures].[Eigener Umsatz Gesamt] , BDESC)) Member [Measures].[UmsatzKumuliert] <span style="color:blue">AS</span> <span style="color:magenta">Sum</span>( Head([KundenSortiert] ) , (Rank([Kunden].[Nummer].CurrentMember, [KundenSortiert]),[Measures].[Eigener Umsatz Gesamt])) <span style="color:blue">SELECT</span> NON EMPTY { [Measures].[Eigener Umsatz Gesamt], [Measures].[UmsatzKumuliert] } <span style="color:blue">ON</span> 0, NON EMPTY { <span style="color:blue">ORDER</span>({[Kunden].[Nummer].[Nummer].AllMembers},[Measures].[Eigener Umsatz Gesamt] , BDESC) * [Kunden].[Kunden Name].[Kunden Name] * [Kunden].[Ort].[Ort] } <span style="color:blue">ON</span> 1 <span style="color:blue">FROM</span> ( <span style="color:blue">SELECT</span> ( { [Vermietungen].[Vertragsart].&amp;[M] } ) <span style="color:blue">ON</span> COLUMNS <span style="color:blue">FROM</span> ( <span style="color:blue">SELECT</span> ( StrToMember(<span style="color:#a31515">&quot;[Kalender].[Jahr-Monat-Tag].[Tag].&amp;[&quot;</span> + Format(vba!<span style="color:blue">dateadd</span>( <span style="color:#a31515">&quot;yyyy&quot;</span>, -2, vba![Date]()),<span style="color:#a31515">&quot;yyyy&quot;</span>) + <span style="color:#a31515">&quot;-01-01T00:00:00]&quot;</span> ) : StrToMember(<span style="color:#a31515">&quot;[Kalender].[Jahr-Monat-Tag].[Tag].&amp;[&quot;</span> + Format(vba!<span style="color:blue">dateadd</span>(<span style="color:#a31515">&quot;d&quot;</span>, -1, vba![Date]()),<span style="color:#a31515">&quot;yyyy-MM-dd&quot;</span>) + <span style="color:#a31515">&quot;T00:00:00]&quot;</span> ) )<span style="color:blue">ON</span> COLUMNS <span style="color:blue">FROM</span> [Vermietung])) </pre> </div>Mon, 23 Nov 2009 16:31:25 Z2009-11-27T07:01:51Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/5d799e31-6f83-427e-95e9-9b67fa7a7f5chttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/5d799e31-6f83-427e-95e9-9b67fa7a7f5cchaitanyaBIhttp://social.msdn.microsoft.com/Profile/en-US/?user=chaitanyaBIPartition processing in SSAS - increasing processing performanceHi,<br/><br/>I am intrested in knowing about the improvement we will be getting with creating partitions in cube. <br/><br/>I assume once we can create the partitions, <br/><br/>1. We can process them parallelly to load at the same time. As all the partitions queries will be running on the top of DB parallelly and fetch and load the data faster, <br/><br/>2. also once the data is fetched the index and aggregation creation is also fast(in parallel). I am not sure about this, can anybody confirm the same. Along with this i want to know any other advantages of partitions. <br/><br/>3. The cube will be online while the partitions are getting processed without taking it offline.<br/><br/>Please clarify the same. It will helpfull.Fri, 27 Nov 2009 04:53:36 Z2009-11-27T06:22:35Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/13f3d905-46f0-4d8c-bcaa-942eefaa19f5http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/13f3d905-46f0-4d8c-bcaa-942eefaa19f5mohshafihttp://social.msdn.microsoft.com/Profile/en-US/?user=mohshafiHierarchy data visible in dimension browser but not in cube browser.I have created a user hierarchy using some attributes in a dimension. I processed the dimesion and then the cube successfully.  When viewed in the dimesion browser, the hierechy levels pan out well. But whe nI drag the hierarchy in the cube browser, I am unable to see any data. In the drop-down of that attribute (in the hierarchy), I am able to see the various attribute members. But they are not visible in the browser.  Same is the case when I try dragging a single attribute in to the cube browser. Even though there is data for that attribute in the DB, I cannot see it in the browser. <br/>Wed, 25 Nov 2009 12:03:30 Z2009-11-27T12:47:35Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/5654d6a1-06d8-4e4a-9307-872780b2b9b1http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/5654d6a1-06d8-4e4a-9307-872780b2b9b1Ramakrishnan.lhhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ramakrishnan.lhNeed to restrict Slicing and dicing in cubeHi All,<br/><br/>  My requirement is as follows. I have a month attribute and a week attribute. There is a measre M1 which needs to show month value only even when the week parameter is selected in the filters. How can i achieve this. Please let me know if there are any solutions.<br/><br/>the measure M1 is calculated as<br/><span style="font-size:x-small"><font size=2> <p>(</p> </font></span> <p><span style="font-size:x-small;color:#800000"><span style="font-size:x-small;color:#800000">Sum</span></span><span style="font-size:x-small"> (</span><span style="font-size:x-small;color:#800000"><span style="font-size:x-small;color:#800000">ClosingPeriod</span></span><span style="font-size:x-small"> ([Time].[Month Hierarchy].[Month],[Time].[Month Hierarchy].</span><span style="font-size:x-small;color:#800000"><span style="font-size:x-small;color:#800000">currentmember</span></span><span style="font-size:x-small">).</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Lag</span></span><span style="font-size:x-small"> (03)<font size=2> <p>:</p> </font></span></p> <p><span style="font-size:x-small;color:#800000"><span style="font-size:x-small;color:#800000">ClosingPeriod</span></span><span style="font-size:x-small"> ([Time].[Month Hierarchy].[Month],[Time].[Month Hierarchy].</span><span style="font-size:x-small;color:#800000"><span style="font-size:x-small;color:#800000">currentmember</span></span><span style="font-size:x-small">).</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">Lag</span></span><span style="font-size:x-small"> (01),[Measures].[M1]))</span></p> <br/><br/>Thanks and regards,<br/>RamThu, 26 Nov 2009 09:41:23 Z2009-11-27T04:10:08Z