How do I hide a table row element based on a condition - reporting-services

I have a table with the fields 'TotalNumber' and 'TotalConfirmed' on each row. The row also has a Percentage field whose value is calculated in the report query, and a field with an asterisk if that percentage value is below a certain value. I want to add a summary column with sum of TotalNumber and TotalConfirmed (done), a calculation of the overall Percentage (done), and then an Asterisk in the column if the overall Percentage is below a certain value. I've tried a conditional hide on the item, using
=(ReportItems!NumConfirmed1.Value / ReportItems!NumOffenders1.Value) >= 0.65
and having an Asterisk show in the box by default, but it doesn't show for values above or below the cutoff. What am I missing?

iif(cdbl(ReportItems!NumConfirmed1.Value / ReportItems!NumOffenders1.Value)>=0.65,true,false)

Related

Calculate percentage of a grouping column in SSRS

Calculate percentage of "TotalFound, NotFound"
I need to calculate the percentage of the subgroup "compare".
If you name the textboxes containing your totals, you should be able to use reportitems:
= ReportItems!FoundInCMDB_Total.Value / ReportItems!NotFoundInCMDB_Total.Value
Just select each textbox containing the totals relevant to the percentage and change the name in properties. Then in the textbox you want your percentage to appear in type =ReportItems! and a list should appear including the named textboxes.
I found an answer for the (unclear) question I've tried ask above. SSRS calculates percentage group only when you total column is inside the same group. This way you can call the total as an expression in your percentage column to do calculate %. But if the Percentage is outside your X/Y group you need to mention the group name like =((Fields!Total.Value,"X")*100/sum(Fields!Total.Value,"X"))&"%"
Thanks,
Kavin

Find the value smaller neighbors

I have a table:
What is the query that allows me to take the next smallest value based on what I entered?
Use your input instead of myinput:
select max(value)
from mytable
where value < myinput
EDIT:
We are filtering out all the elements, which have at least myinput value and find the maximum of the remaining elements, yielding the searched neighbour.

Sum in a textbox with calculated values

I have got a Column (Weight) which is multiplied by the amount. I need an extra textbox in the footer which shows the Sum of Weight. But I only get the weight of the non multiplied data. Is it possible to SUM the weight without the footRow for the tablix?
Firstly get the name of your textbox in properties then you add textbox in your footer and add this:
ReportItems![Text Box name].Value

matrix display only first value of a field

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.

Left align columns with fixed width in SSRS 2008 column chart

I hope this is a simple question, but I have been beating my head against the wall for hours now. I would like to create a column chart in SSRS 2008 with columns that are always the same width and always the same width of space between columns. The catch is that the chart will not always have the same amount of columns.
Here is what I have in scenario 1 with 12 columns:
Here is what I have in scenario 2 with 4 columns:
I would like to see something more like scenario 3 instead:
As of now this is a very simple column chart. The only real modification I have done that I feel will be important to mention is that I have set the PixelPointWidth value to 20 in the Chart Series -> Custom Attributes section. This ensures that the columns all stay the same size. I notice that the PointWidth value in the same section is used to control spacing between columns, but it does so by making the columns larger/smaller to fit. The PointWidth value has no effect when the PixelPointWidth value is greater than zero.
Please help me find the way to keep the columns the same width and also maintain the same width between columns!
Manipulate your Dataset so that it always provides rows for Value 01 through to Value 12, with null values for the measure. Then in the Chart's Category Group properties, use an Iif function for the Label property to set it to an empty string "" if the measure is null (or use another column as a flag).