SSRS formatting numbers - reporting-services

I have a building a report in 2008r2 report server and have a field that I need it to be an avg and only show #.## in an iif statement. The code that I am using below just gives me an error(#Error) but if I take out the formatting it runs correct just is about 20 numbers long. Where am I going wrong here, please help, the last 3 pieces of hair I have left is begging you.
=Avg(iif(Fields!iEventID.Value=20,format(Fields!Letter.Value,"#.#"),Nothing))

Related

extra spaces in report - Report Builder

Good Day. I hope everyone is well and safe. I am writing a report that is counting the number of times an event occurs, however when I run the report, it has a lot of extra spaces in it. I have attached a sample of the output. I have tried playing with cell padding, and table spacing, just cannot figure it out. Hoping one of the brilliant people here could offer a suggestion. It seems like the number of results is influencing the number of spaces, but I don't know what I don't know.
Again thank you for your support.
Thank you.
Sample number 1
Sample number 2
report builder screen
dataset
query

SSRS Returning 1 Single Figure Differently to the rest of the resultset

This is a really strange one. I have a dataset which returns a small number of columns and a very small number of rows (49 in my example). I have an SSRS report with a table returning the data from that dataset.
Everything works perfectly, as I would expect........expect one value in one row! It does not return the figure that is in the dataset. Every other figure shows exactly as it is. This occurs in VS and once deployed.
So, in my dataset, the figure shows as -0.955980288917914. In the report, which is formatted to show as a 1 decimal place %, I would expect to see -95.6. It doesn't, it shows -999999900.0%. I have other negative figures in the dataset which show correctly. Its just this one figure. All the other figures show a similar number of decimal places.
I know, I could do the percentage calculation in SQL and just return it to the report but I'm curious as to why this behaviour is happening.
Any help or suggestions would be greatly appreciated. SQL version is 13.0.5292.0, Visual Studio SSDT is 15.9.16 and Reporting Services is 2016.
Thanks
UPDATE:
Sorry for the delay. Below are some screen snippets.
This is the data as shown in SQL Server, you will see all numbers have similar decimal places.
This one is from VS and shows the simple design. The highlighted cell is the one holding the % value
This is the output of that column. As you can see, its only that one figure that is completely wrong. All other 48 figures are correct.
Thanks again for your help

SSRS SUM of Header rows

I know there are a number of similar questions on here which I've looked at but I can't quite find one the same as my particular issue.
I have the following report built in SSRS (looking at a Dynamics 365 instance, so I believe SSRS version is 2016 but if not then it should be modern), and the yellow fields at the bottom are supposed to be a sum of the blue header rows throughout the rest of the report, but as you can see they are incorrect. I am using exactly the same syntax as I am for the other fields in white on the row that do sum correctly, so I don't understand why it's only these 3 I'm having issues with.
I have the following 2 groups set up:
The expression for my Budget Days sum is simply:
=FormatNumber((SUM(Fields!task_msdyn_effortValue.Value)/8),2)
The other fields are the same concept, a simple sum of the values. Based on another question here, I tried adding in the name of the ProjectTask group to the expression as I believe it's summing up all the rows in the report but this gives an error about scope so perhaps my group is set up incorrectly?
Any help much appreciated.

Visual Studio 2013 SSRSS - Column Grouping showing Nothing

In my ssrs report, I have an 'All' parameter which will show all of the offices associated with a division. SSRS is showing blanks for 2 months, but not the rest of the months. I am unable to have the groups not show the missing months or am I unable to show zero's in the data. Please Help.
Using VS 2013, SSRS
Can you attach your query here? I think you can control this issue through your sql query by using left join to a table containing all of months (maybe a temp table).

Expression to Sum on DataSet field in Textbox for SSRS2008

I have what I thought was a very basic SSRS scenario. I have two datasets in my SSRS 2008 report; dsMTD and dsYTD. They both contain the same columns, the only difference is the SQL statement that fills them both (but I don't imagine that's really relevant to the problem).
I have a textbox on my report, and I wanted to show the SUM of a certain column within the report. I tried to make my expression as follows:
=Sum(Fields!cost.Value, "dsMTD").ToString()
This works fine in SSRS 2005, but the expression in SSRS2008 gives an error of "Unknown Collection Member" on the field reference in my expression.
Am I not doing something right? I've recently installed CU6 for SQL Server 2008 on my machine, and wonder if that has changed something?
Just ignore this. The error is just misleading I assume. At first I was running and my dataset actually had no rows, which explained why a value wasn't coming back. I intially thought this was connected to the "Unknown Collection Member" error, but when trying to a different dataset that does have data, I still get that error, but also get the correct value.
I'll try and ask for help on things that actually are wrong next time!