Solved

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

Posted on 2011-03-15
4
2,473 Views
Last Modified: 2012-05-11
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
Comment
Question by:rhservan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Author Comment

by:rhservan
ID: 35141036
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
 
LVL 10

Expert Comment

by:itcouple
ID: 35141454
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
 

Author Comment

by:rhservan
ID: 35142952
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
 
LVL 10

Accepted Solution

by:
itcouple earned 500 total points
ID: 35145155
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SSRS Expression syntax with Iif Else 1 62
SQL Server 2008 R2 service pack updates 5 61
SQL Server for XML PATH giving wrong results. 6 59
What does "Between" mean? 6 45
Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question