Solved

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

Posted on 2011-03-15
4
2,446 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
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Introduction In the following article I’ll be discussing and demonstrating several different ways of how images can be put on a report. I’m using SQL Server Reporting Services 2008 R2 CTP, more precisely version 10.50.1352.12, but the methods ex…
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

821 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