Howto: Display a parameter on a SQL Server Report? - mdx

I'm creating some reports in Visual Studio BIDS, out of our SQL Analysis Server 2008.
The report works fine, and uses an MDX query with parameters. So far, so good.
The problem is that I would like to display the parameter on the report. For example, I would like to display the 'Month' of the Date parameter, but it shows up on the report like this:
[Date].[Month].&[2010-01-01T00:00:00]
Not really what I want. How can I display this value as 'January' ? I can't find any function which does this. The only way I see this is possible is to include the date value in the returned fields.
Does anyone have experience with this?

I fixed this by adding the necessary values in the Select-fields.

Related

SQL Server Report Builder Field Formatting

I am creating Reports in SQL Server Report builder.
When I set format of any number fields, in design it is displaying sample value.
For e.g. If I set format 0.00 to one numeric field, it started to display 12345.00
I have 10-12 fields in design, it caused very much confusion.
Is there any solution to change this?
When I open report in Visual Studio, it doesn't display like that.
Check Following screenshots:
In Report Builder:
In Visual Studio:
Finally, I got solution:
There is option in toolbar

How to include 'NULL' value in Microsoft SQL server Report Builder

I would like to include NULL value from the database in Micorsoft SQL Server Report Builder 2012.
Problem:
Whenever I try to include NULL value in parameter drop-down list.. I can't sort by 'NULL' values in my report.
You mean like the Null values go last?
Well I had problems when I tried to order my results by Query or by hand (I mean, like selecting how to order in the tablix) because none of this would work at all.
It will result for sure if you use "Dynamic Order". :)
It's not too "Comfortable" to use it because when you run the report you will have to click in the column you will use as a reference to order your report and when it's done you will be able to sabe or print your report.
It would be great if it ordered the results by itself by just running the report but it won't work.
:) I hope I could help.

Allow Drop Downs in an SSRS Report (2008) to accept text as an input

Okay, so I have an SSRS report that has a parameter with available values from a query. All of this works fine, but I would like the user to be able to select multiple items using: "SomeText%" which will retrieve all like: SomeText12, SomeTextHeyThere etc. The sql for this is all set up, but once you set the parameter to get values from a query in visual studio, you don't have the option to enter in text as well. This seems like it should be a common feature. Does anyone know how to add it so that the user can enter text and select from the drop down at the same time? I can create 2 parameters to do this, but that is just clunky.
Thanks!

Can i pass a parameter from a calculated member on a ssas 2008 cube to cognos report studio?

Can i pass a parameter from a calculated member on a ssas 2008 cube to cognos report studio? I know how to do this in Microsoft reporting sevices, but not Cognos Report Studio 10.1. I do not know the format the calculated member should be in, or how to get Cognos to recognize any parameters passed. Example: Say i wanted to pass the code below, that shows the top 25 accounts, but instead, i wanted to adjust it to have a variable / parameter that enabled me to adjust it at run time to say the top 10 accounts. Is this possible. I know i can create the code in report studio itself, but i would rather do it in the cube for performance and re-usability reasons. Here is a copy of this particular example and thank you!
TOPCOUNT( [Instrument].[Account Name].[Account Name].members,
25, [Measures].[Committed Amt])**strong text**
If I understood you correctly, you can do it in the following way:
Drag a data item into the query and use the embeded parameter (?prmTopCount?):
topeCount([Instrument].[Account Name].[Account Name],
?prmTopCount?, [Measures].[Committed Amt])
You can build a prompt page and define a textBox Prompt which uses existing prompt (prmTopCount).
I have also tried to write manual MDX in the report, but it looks it does not support macros embedded inside the manual written MDX.

Format SQL query results

I am looking for a way to set the width on the returned column result from a SQL query.
I run a query like Select Product from ConfigScheduling where Product is an Nvarchar(Max) column.
The result in SQL Server Management Studio with Results to Grid is a 90 char wide visible column, with the full result present, but not visible.
Thank you
Couldn't find it by default, but if you double-click on the right part of the Column Header it will stretch like in Excel.
Tools>Options>Query Results>SQL Server>Results to Grid>Non XML data
Tools>Options>Query Results>SQL Server>Results to Text>Maximum number of characters displayed in each column.
If these still don't suit your needs, you'll need to use another tool such as bcp or sqlcmd/osql.
If I remember correctly, SQL Server Management Studio cannot pull the whole nvarchar(max) field into display and won't attempt to either. The only way to fully access the resultset is to use a third party tool or display it in a gridview or something in a webapp.