[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2607
  • Last Modified:

How do I remove an 'unknown' in a column generated by MDX query for SSRS report?

In the MDX query for this report serveral columns return an 'unknown' and either I need to remove this at the MDX query or at the parameters in SSRS.  Please advise.
0
rhservan
Asked:
rhservan
  • 2
  • 2
1 Solution
 
rhservanAuthor Commented:
I have attached the MDX query below.  Also,  is there a way to do this without the MDX query or SSRS parameters and just remove 'unknown' as a member?
MDX-Example.txt
0
 
itcoupleCommented:
Hi

To remove it witout using query you would have to have clean data which is not realistic if the field is not mandatory.

Sometimes unknown value is valid and you can remove using non empty (with side affects) or except function which will explicitly remove it from the query.

Below is link to except function
http://technet.microsoft.com/en-us/library/ms144900.aspx

Remeber that unknown can be in two forms .unknownmember or just empty string ''

Hope that gives you some more information to play with it.
Regards
Emil
0
 
rhservanAuthor Commented:
Okay,  I have made a grand attempt at this with the syntax, worked through several issues then received:

"The xxx hierarchy already appears in the Axis1 axis"

Any thoughts
0
 
itcoupleCommented:
You cannot duplicate the same hierarchy (dimension attribute).

So if you use [product].[category] it cannot exist more than once. (eg cannot be both in on rows and where).

Regards
Emil
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now