Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Analysis Server and Reporting Services (2012)
 Extract function Issue
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 11/05/2013 :  10:31:21  Show Profile  Reply with Quote
Mdx Query:
with set g1 as
EXTRACT( nonempty( filter(
[Measures].[Act. Net Sales],
[Time].[Calendar Year Hierarchy].[Month Year].&[2012]&:
[Time].[Calendar Year Hierarchy].[Month Year].&[2013]&[1] )
,[Measures].[Act. Net Sales] > 0 )
), Customer.Customer)
select non empty { g1} on 0,

{ [Material].[Brand Hierarchy].[Signature].&[21] } on 1

from sell_in
The G1 Set returns a tuple (Customer - YYYY-MM - Measure).

I've created this G1 set to get all customers in the lats 2 months with act. net sales >0.

How could I get just the Customers(no duplicates) members of this G1?

I ┬┤ve tried Extract(), but it not working. It is returning all customers, and not just memmbers of G1.

any Idea?

  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000