﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / Business Intelligence  / how to show data one level above the filter hierarchy / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 16:01:09 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: how to show data one level above the filter hierarchy</title><link>http://www.sqlservercentral.com/Forums/Topic850345-147-1.aspx</link><description>Not sure how you have this setup or what tool you are using to return these results, but if you are just querying the database you could do something like this:SELECT Measures.[% Tasks Completed] on 0,{Ancestor([Organisation].[Hierarchy Name].[Employee Name],[Organisation].[Hierarchy Name].[Team]),[Organisation].[Hierarchy Name].[Employee Name]} on 1FROM [Cube Name]You would need to replace the hierarchy name, the employee name, and the cube name.  Also, this is referencing the name of the member and not the unique name, so it might look like this with the unique member (or key) reference:SELECT Measures.[% Tasks Completed] on 0,{Ancestor([Organisation].[Hierarchy Name].&amp;[Employee Number],[Organisation].[Hierarchy Name].[Team]),[Organisation].[Hierarchy Name].&amp;[Employee Number]} on 1FROM [Cube Name]By using the Ancestor function you can grab a related dimension member at a specified level in the hierarchy.[u][url=http://msdn.microsoft.com/en-us/library/ms145616(SQL.90).aspx]Ancestor (MDX)[/url][/u]</description><pubDate>Sat, 23 Jan 2010 19:21:34 GMT</pubDate><dc:creator>denglishbi</dc:creator></item><item><title>RE: how to show data one level above the filter hierarchy</title><link>http://www.sqlservercentral.com/Forums/Topic850345-147-1.aspx</link><description>It looks like you should create another calculated measure on the cube, which would go one level up (.parent) and calculate the currentmember against its parent.What are the facts on the cube?What soes the Task Completed % calculated measure do (code)?</description><pubDate>Fri, 22 Jan 2010 06:09:46 GMT</pubDate><dc:creator>VALEK</dc:creator></item><item><title>how to show data one level above the filter hierarchy</title><link>http://www.sqlservercentral.com/Forums/Topic850345-147-1.aspx</link><description>Hi,I am new to ssas and I have a specific requirement, In cube I have[b]Measures: [/b]1. "% Tasks Completed"   (Calculated Measure)[b]Dimensions:[/b]1. Date, with (Year - Quarter - Month) hierarchy.2. Organisation, with (Unit - Team - Employee) hierarchy.user want slice the measure "% Tasks Completed" by date and want to filter data by "Employee" level in "Organisation" dimension, BUT....Also [b]at the same time [/b]want to see "% Tasks Completed" related to the "Team" employee belongs to (the level above "Employee" as you cans see in dimension 2)how to accomplish this?any help would be very much appreciatedJad</description><pubDate>Wed, 20 Jan 2010 03:26:28 GMT</pubDate><dc:creator>Raj-115466</dc:creator></item></channel></rss>