matrix display only first value of a field - reporting-services

i have the below matrix in report builder 3.0:
the field "Market Company Name" could have multiple values, however when i generate the report only the first value is displayed, while it should display each value on a row.
i tried to put it in the row group or column group it will display properly but the position of the field is not where i want it, i want it in this format.
can any one assist??

If the data are displayed correctly when you use row grouping you can set the width of this column to 0. This way you keep the grouping but the column as such will not be visible.

Related

Arrange Columns in SSRS Matrix by Label by Percent

I have a dataset like in the image below. I have used a Matrix in SSRS to unpivot the data.
What I have is like in the second image below. You will notice that percentage columns are at the far right. But what customers want is the name of a product followed by it percentage as seen in the last image. How do I accomplish this?
Add a blank tablix to your report, drag the agent field into it and go to row groups and add a group. Group it by the field agent. Now add next to the agent field in the tablix your phone field and afterwards the percentage field. Now your data is grouped by agents like in your image and the fields are were you placed them.

Is there a way to make an SSRS cell display either a sub-report or an expression?

I have an SSRS report that has a cell which I need to show the value of a Dataset item unless a parameter is selected, in which case I need to display a sub-report in that cell.
I tried setting the sub-report's visibility but then it never displays the expression since it takes over the entire cell. It's like it is either one way or the other.
If you put a subreport in a cell then you can't optionally display something else in that cell.
However from your comment you're trying to display values from two different datasets based on a condition, and you should be able to do this with an expression. Assuming there is some field in the table that can be used to relate to either dataset, then you might be able to use the lookup() function to get the relevant value, e.g. a code outline for this:
Iif(some_condition, lookup(value1 in datasetA), lookup(value1 in datasetB))

How can i hide a Column group when I use pagebreak

I have made a matrix report in SSRS with two column groups. I have added one of the column group also in the Row groups to use page break so I can have each column group on a separate page.
And you see in the following pictures the preview of what has happened with the output.
Page One
Page Two
You see that the page break has worked but it doesn’t hide the other column that shouldn’t be present.
Does somebody has a clue how to fix this?
I don't think just adding a page break will hide the column group's visibility. In SSRS, you can set visibility of a column group based on a condition. Right click on the column group, select Group Properties, Select "Visibility", and "Show and Hide Based on Expression".
You could set an expression based on a field or parameter value. For example, if a parameter value is such, the visibility is true, else false. Example:
=IIF(Parameters!"PARAMNAME".Value.Equals(value),false,true)
I would think in your case, if some a field was null or blank, hide the column group. The page break will take care of itself.
I have solved it with the list object in the toolbox.
I have put the matrix in the list and used a page break on the list.

Access 2007: Conditional Formatting not working for control based on lookup value

I have an Access 2007 report with a control based on a lookup field which has a list of values. The field values are strings:
0. Late
1. Critical
2. Urgent
3. Normal
4. Low
5. Closed
6. Draft/On Hold
In the conditional formatting box, I use:
Field Value Is equal to "0) Late"
and choose a different color background and text color. This should conditionally change the background and text color of the textbox when it's value matches "0) Late", however instead of showing up as expected, the report simply doesn't print that value.
Access help says "When you apply conditional formatting to a lookup field, the condition must be based on the lookup ID, not the value returned by the lookup field."
I'm not sure what it means by Lookup ID. Is that a number based on the position in the lookup value list? I've tried using 1 instead of 0) Late, but that doesn't work either.
The fields in the report were set with background "Transparent"; the backgrounds needed to be set to "Normal" for the fill colors to show up.

SSRS Tablix Column Group based formating with cells that contain no values

I have a report with a tablix. In the Tablix I have 2 Column Groups, the first level in the Column Groups is "Continent" and the second level is "Country". Now the users want to have different background colors depending on the value in the "Continent" group so that all Asian Countries are green and all European Countries are blue. This works fine as long as a cell has a value. However sometimes there is no record for that in the database therefore a cell on the tablix stays empty.
Is there a way to find out to which Column Group such an empty cell belongs to use this information in the formating expression ?
moontear is on to something, it may be easier to change the query to always return a result for every combination.
You can get what you're after directly in RS tho. If you add another cell to your tablix to force RS to calculate a result for the intersection of the two columns then you can use Fields!Continent.Value. i.e. if you add a cell that is =count(Fields!Continent.value) then it'll return 0 and you can then have an expression like =iif(Fields!Continent.Value=1,"Red","White")
You'll then want to shrink the column down to 0 width and hide it so it doesn't get seen in the final output.