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

Drilldown and filter across same hierarchy

$
0
0

With Member [Sales Territory].[Sales Territory].[All Sales Territories@] As [Sales Territory].[Sales Territory].[Country].&[Germany]+[Sales Territory].[Sales Territory].[Country].&[United Kingdom]+[Sales Territory].[Sales Territory].[Group].&[NA]+[Sales Territory].[Sales Territory].[Group].&[North America]+[Sales Territory].[Sales Territory].[Group].&[Pacific]
Member [Product].[Category].[All Products@] As [Product].[Category].&[1]+[Product].[Category].&[3]+[Product].[Category].&[2]
Select
{
[Geography].[Geography].[Country].&[Australia],
[Geography].[Geography].[Country].&[Canada],
[Geography].[Geography].[Country].&[France],
[Geography].[Geography].[Country].&[Germany],
[Geography].[Geography].[Country].&[United Kingdom],
[Geography].[Geography].[Country].&[United States]
}
 ON COLUMNS,
CrossJoin
(
{[Date].[Calendar].[Calendar Year].&[2007].Children}
,
[Measures].[Internet Order Count]
)
 ON ROWS
 From [Adventure Works]
 where (
{[Sales Territory].[Sales Territory].[All Sales Territories@] },
{[Product].[Category].[All Products@] },
{[Sales Territory].[Sales Territory].[Europe] }
)

{[Sales Territory].[Sales Territory].[All Sales Territories@] } is the filter string,

[Sales Territory].[Sales Territory].[Europe]  this is the parent on which the child is shown


Viewing all articles
Browse latest Browse all 14337

Trending Articles