Displaying column names at the top in MDX like in SQL - ssas

Is it possible to display the column name on top in MDX query.
Below is the Result of my MDX query. I want to display the Year column name at the top (Marked in Red)
blank amount(Measure)
ALL 1000
2010 500
2011 500
In above blank section, I want to display the attribute name of the dimension i.e. YEAR.
Thanks in advance

This information is available in the result that is coming back as answer to the MDX query, no matter if you get it back in multidimensional or in tabular form.
But what is displayed is totally dependent on the tool displaying the data.

Related

ssrs with visible filter

I have the above SSRS Report. I used adventurewoorks2014. Any adventureworks will do. My problem is that I want to filter by month in this example October 2011 so that the corresponding graph will turn yellow and others are still in blue and visible.
In other words, whenever I choose a value from the top the corresponding graph should turn yellow and I can still see other graph but in blue. Any question please let me know. Many thanks in advance
----Query FROM Adventureworks
SELECT [SalesOrderID]
,[OrderDate]
,DATENAME(MONTH,[OrderDate])+' '+DATENAME(YEAR,[OrderDate]) AS MonthYear
FROM [Sales].[SalesOrderHeader]
enter code here
--------Parameter query
SELECT distinct
DATENAME(MONTH,[OrderDate])+' '+DATENAME(YEAR,[OrderDate]) AS MonthYear
FROM [AdventureWorks2014].[Sales].[SalesOrderHeader]
Create an expression on the backcolor for the graph which sets to yellow if the corresponding label is the same as the selected parameter and blue if not.
Note that if the parameter is changed then the report will need to be regenerated in order for the colour to change. There is no alternative to this behaviour in SSRS.

SSRS Matrix Report : Colors condition

I have a matrix table created with Rows as Days ,Columns as Months and quantity of rainfall as the data field(got all this information from same table 'Rainfall'). I have taken this data from a dataset containing multiple tables in SQL. All of this information displays properly.
Now I have many tables with date field in my dataset in tables other than 'Rainfall'.
In the data field of the matix I need to be able to add my own colors using a Switch case.
The Condition I need is "if a certain date from one table matches the date in my report then i want xxx colour."
eg: there is a table called fertilization which has 3 dates. Now if these 3 dates also exists in my matrix then that block should be colored blue.
Can anyone help me. Thanks!
You can also manage it from sql side while retrieving data from Rainfall table.
You can do this using by right clicking the field that you want the dynamic color on and selecting properties. Select Border and then where it says color hit, click the Fx button. Here you can write a custom expression that will change the background color based upon your code.

Creating column heading that dynamically increases in SSRS report

I have to create a report that looks like below. All the months are dynamically called through Matrix report. And i am not able to place the heading "Yearly Counts" that also dynamically varies with no of months.
Could you please help me in doing this.
If I understand you correctly, you are able to get the Matrix to dynamically add 1 column per month, but you can't get the "Yearly Counts" cell to work correctly, right?
If you use the following option (right-click on the box to the left of the Month row to get to this menu), you should be able to add a header row above the month headers that will expand to cover as many month columns that dynamically appear:
The Matrix should end up looking like this (in design mode):

Customize the last three rows of a Tablix in SSRS

I have a table which is getting data from a query. Because I am not doing any calculation in SSRS, but instead in SQL and only pulling the data, I am having hard time figuring out how to customize the style for the last three rows.
Here is the design view:
Here is the preview:
Now as you can see the last three rows are either SUM or AVG of the above numbers. How can I make it so that the table displays a different background color for the bottom three rows?
You will need to add an expression for the text box format for the three rows that says something like:
=IIF(Fields![ARRIVED_DATE].Value="WEEKLY TOTAL","Grey",IIF(Fields![ARRIVED_DATE].Value="Prior Week","Red",IIF(Fields![ARRIVED_DATE].Value="12 WEEK AVERAGE","Green","Transparent")))
If i understand your point correctly this would be the solution =iif(total number of records(int)=rownumber(nothing), "Color1",iif(total number of records(int)-1=rownumber(nothing),"Color2",iif(total number of records(int)-2=rownumber(nothing),"Color3",""))) use this expression in Background color of row properties.

Group and subtotal columns in Reporting Services 2005

I have a report (RS2005, against a MSSS2005 instance) which I have inherited. It shows a basic table of data: a handful of key fields which are used to group rows together, a few basic numeric fields, then a number of dated ('bucketed') fields (e.g. 1 month away, 2 months, 6 months, a year, 2 years, etc.)
The user would like to group together these dated fields in aggregated groups and be able to collapse or expand the columns as you can the rows. So we'd be able to show the next year's values' subtotal or expand it to break it out by month. Hiding the invidual months if the subtotal is shown.
This is basic pivot table behaviour (and can be done with the Group/Subtotal feature on Excel - that's the closest analogous behaviour I could use to describe the requirements).
While grouping by rows seems trivial in RptgSvcs, grouping columns and collapsing a group into a single subtotal and blowing it out again, seems hard to impossible.
Unless someone knows better?
You should be able to do this by selecting the columns that you would like to hide and set their visibliity to be hidden.
Then set the toggle item on the hidden columns to be the textbox that shows the subtotal.
This textbox will then have the [+] symbol on it, and clicking will show/hide the your month-by-month breakout(the hidden columns).
On the right hand side of the table control on your report (RDL file), you should see icons representing the detail and grouping information for the table.
Here you can see whether or not a grouping has a header/footer and how it is calculated e.g. =SUM(fields!mySalesValue)
You can also set things like whether it is collapsed and so on