• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2712
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

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