Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > SQL Language
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 28th, 2013, 07:43 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default MDX WHERE clause don't work

Hi,

I am having problem with MDX query, I am not sure if the procedure is right or wrong !

CREATE MEMBER CURRENTCUBE.[Measures].For_Gross_Sales AS (
SELECT NON EMPTY [Measures].[Gross Sale] ON 0
FROM [Measures]
WHERE ([Data Type].[ID].[ID] = 2 AND [Chain].[Customer ID] = [Measures].[Customer ID]),

VISIBLE = 1 , DISPLAY_FOLDER = 'Forecast' , ASSOCIATED_MEASURE_GROUP = 'Data Types';

Bellow is the case; I have 3 dimensions(Datatype, Customer, Product) and one measure (GrossSales). so what will be the MDX query if I want GrossSales for ProductID = 1,2,3 and Dataype = 4,5,6 ? Here Datatype has relationship with GrossSales, Customer has relationship with GrossSales and Product has relationship with Customer. if you please help me. thanks in advance!

thanks
Reply With Quote
  #2 (permalink)  
Old October 28th, 2017, 03:15 AM
Banned
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 33%
Activity: 33% Activity: 33% Activity: 33%
 
Join Date: Oct 2017
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default MDX WHERE clause don't work

It would appear that you are simply beginning with MDX. There are some essential ideas that will enable you to get what you require. This examination of SQL and MDX may be useful. MDX utilizes the where provision as a slicer (to choose certain measurement individuals) as opposed to a channel. You can't put part = some incentive in the where statement. What's more, you can't generally utilize the where proviso to characterize a relationship to some other table. Pay Someone to Do My Essay for me
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MDX lem SQL Server 2005 1 June 6th, 2008 04:40 PM
Recursive Relationships with MDX Dima20 BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 0 October 6th, 2006 05:45 AM
Mdx queries and java mybestfuture SQL Server 2005 0 September 12th, 2006 06:56 AM
MDX filters an Parameters GabrielP BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 2 May 16th, 2006 09:31 AM
MDX - where clause with parameters?? boson SQL Language 3 August 24th, 2004 06:44 AM



All times are GMT -4. The time now is 12:29 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.