Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Written by Valentino Vranken. Introduction: The first step of creating a SQL Server Reporting Services (SSRS) report involves setting up a connection to the data source and programming a dataset to retrieve data from that data source.  The data…
Hi, I have heard from my friends that it’s not possible to create Label Printing report using SSRS. I am amazed after hearing this words not possible in SSRS. I googled lot and found that it is possible to some of people know about the Report Bui…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now