SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

Lbarbosa
Starting Member

Brazil
1 Posts

Posted - 11/05/2013 :  10:31:21  Show Profile  Reply with Quote
Mdx Query:
--------------------
with set g1 as
EXTRACT( nonempty( filter(
(
[Customer].[Customer].children,
[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  
 New 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.09 seconds. Powered By: Snitz Forums 2000