Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all 10045 articles
Browse latest View live

Divide by zero error

$
0
0

I have SSRS 2012 and have a report with an expression shown below.  I am getting an error of "[rsRuntimeErrorInExpression] The Value expression for the textrun ‘Textbox133.Paragraphs[0].TextRuns[0]’ contains an error: Attempted to divide by zero."

Textbox 133 has an expression as shown below and I cannot figure out why I get the error because I thought the IIF would bypass divide by zero. Thanks.

=IIF(Sum(Fields!PriorQty.Value) = 0.0, 1,(Sum(Fields!CurrentQty.Value) - Sum(Fields!PriorQty.Value)) / Sum(Fields!PriorQty.Value))


Tablix within a tablix

$
0
0

Hi, 

I'm having some issues with a tablix within a tablix.

This is the dataset I'm using:

Shop id
-------Visit date
------------Task 1  #completed
------------Task 2  #completed
------------Task3    #completed
-------Visit date
Shop id 
...

What I'd like to get is a tablix like this:

Shop id ...
------------------ Task 1  Task 2 Task 3 
-------Visit date result  result result  Total
-------Visit date result result result   Total

------------------------Total    ...       ....      ....

Shop id...

Where Shop id is the parent grouping and Visit date is the child grouping. The child grouping (the whole tablix within the parent tablix should be hidden and the display of it should be toggled by the Shop id).

How far I got?
Issue 1
--> Parent grouping and child grouping are based on the parent tablix. The row of the child grouping is merged into 1 big cell. A rectangle is placed in this merged section and then the second tablix is placed inside it.

--> However, because Task is a column grouping in the second tablix it expands when a report preview is shown and hence my parent tablix is stratched horizontally.

Issue2
--> 
Once the two tablixes are merged I cannot make the toggled visibility of the second tablix work. I receive the next error:
"An irem with the same key has already been added"
--> I assume that's because both are based on the same data set?

Any help with this would be much appreciated.

Thanks in advance



TOP n sometimes gives wrong number of lines (SSRS 2008 SP1)

$
0
0
Hello all,

a workmate has created a dashboard report which contains (among other items) a top n chart item. The user can select the value of n using a report parameter. We have observered that for some values of n and specific values of the other parameters the chart shows the wrong number of lines (bars), e.g. I choose to select TOP 5, but the chart shows in some cases the TOP 6.

Is such a behaviour already known?

I will try to create a minimal sample for reproducing this behaviour during the next few days.

Thanks in advance and best regards,
Gerald

Conditional formatting on date value in textbox

$
0
0

I want to change the font color of the date that appears in a textbox depending on whether it is 31 days less than today.

I have this in the Color property of the textbox and the report runs but formatting doesn't happen.

=iif(Fields!BIRTH_DATE.Value < dateadd("day",-31,Today),"RED","BLACK")

Is separate licensing required for Report Builder 3.0 ?

$
0
0
Is separate licensing required for Report Builder 3.0 ?

Need to group & sum items & sub items into one record

$
0
0

I'm having an issue creating a report that can group & sum similar items together (I know in some ways, the requirement doesn't make sense, but it's what the client wants).

I have a table of items (i.e. products).  In some cases, items can be components of another item (called "Kits").  In this scenario, we consider the kit itself, the "parent item" and the components within the kit are called"child items".  In our Items table, we have a field called "Parent_Item_Id".  Records for Child Items contain the Item Id of the parent.  So a sample of my database would be the following:

ItemId | Parent_Item_Id | Name | QuantityAvailable
----------------------------------------
1 | NULL | Kit A | 10
2 | 1 | Item 1 | 2
3 | 1 | Item 2 | 3

4 | NULL | Kit B | 4
5 | 4 | Item 3 | 21
6 | NULL | Item 4 | 100

Item's 2 & 3 are child items of "Kit A", Item 5 is a child item of "Kit B" and Item 6 is just a stand alone item.

So, in my report, the client wants to see the SUM of both the kit & its components in a single line, grouped by the parent item.  So an example of the report would be the following:

Name | Available Qty
--------------------------
Kit A | 15
Kit B | 25

Item 4 | 100

Any idea how I can setup my report to group properly?

Thanks in advance.

aggregate functions cannot be used in group expressions

$
0
0

Hi have report showing sales by Vendor. I need to list all the vendors with Monthly Total>5000 and combine the rest as "OTHER VENDORS"

Vendor is a Group in my report, so I tried to put an expression as a Group on:

=IIF(Sum(Fields!Mth_1_Sales.Value)>5000,Fields!Vendor_No.Value,"OTHER VENDORS")

I've got an error: "aggregate functions cannot be used in group expressions"

How do I get Vendors with Sales < 5000 into  "OTHER VENDORS" ?


SSRS 2012 background color format by expression issue when exporting to Excel.

$
0
0

We are using SSRS 2012. We have a report that conditionally formats a background color for some cells. The report renders properly in a browser and in Excel 2003 format. In Excel format all cells after the first one that meets the condition are highlighted, even if only one cell should.

The sample expression that triggers this condition looks like this:

=IIF(Fields!VIOL_NOTE.Value="Internal","Green","No Color")

All cells after the first one that meets the condition Fields!VIOL_NOTE.Value="Internal" have a green background.

Excel 2003 (proper) results:

Excel (improper) results:

Zenon




Dynamic Columns in SSRS

$
0
0

Hello,

 I am using sql 2012 SSRS.

My requirement  :

I have Database which has got 100 tables.I need to create SSRS report which display top 10 records from the table within that database.

User will select The table name as parameter in the report. the number of column in each table will vary .

kindly shed some light on above problem.

I am using the below statement in stored proc, and calling same from ssrs report

exec(
'select top 10 * from  ['+@datbasename+'] .[app].'+@tablename+'')

Regards

Prasanna KJ


Praxy


how to create alternate color columns in MS SQL reporting services (rdl)

$
0
0
I found something related to row coloring at ::
http://weblogs.sqlteam.com/joew/archive/2008/08/20/60691.aspx

i went through all the properties for column but none that would help me achive me goal.

SO in my case .. the no of rows are fixed .. but columns vary .. so i wnat the alternate columns to be of different color (say white and silver)

Multi value Cascading Parameters Not working

$
0
0

Hi ,

I have created two report parameters and want them as Cascading. District Parameter depends on Region Parameter which should allow Multi selection. When I select single value in Region it works perfectly. But when I choose multiple values, District turns out to be a blank text box. Can you please advise on how to fix this?

I have used the In clause in my code

SELECT

DISTINCT

SalesDistrict

FROMDistrict(NOLOCK)

WHERESalesRegionIN(@SalesRegion)

Screen shot of the report when multiple values are selected


SG

Help to debug

$
0
0
  • An error has occurred during report processing. (rsProcessingAborted)
  • The execution failed for the shared data set 'DataSet1'. (rsDataSetExecutionError)
      • Cannot create a connection to data source ' Data source for shared dataset'. (rsErrorOpeningConnection)

      Hello, the above error message I get on the published report, but everything works fine when I do a preview in Visual Studio.

      How can I see exactely what is wrong?


Freeze Header Browser Issue

$
0
0

Hello All,

I want the header to be visible while scrolling. 
After changing on the static Properties FixedData=True, it is working on BIDS and Internet Explorer 11 . But is does not work in Chrome. Most of my users are using Chrome. Is there any way to fix it for google Chrome.

Many Thanks,

Pragati

Tablix causing other fields to move

$
0
0

Hi,

I've got a report consisting of nested list items and a tablix inside the last list.

As seen below - the tablix seem to shift the  "Brand No:" textbox details to the right when it becomes bigger.  How do I prevent this? Is there some anchor property of the text boxes that link them to the tablix?



Different Headers on different pages

$
0
0

hello,

  I would like to have different headers on different portion of the report?

Any ideas?

Thanks


how to show a compressed image in the report?

$
0
0

Hi

I have created a new report.what i do in application is i  compress the image and save it in database.now i need to retrieve the compressed image and display in the report. I have used the following code to decompress the binary data save in the image.I dont know after that what should i do. Please help me to show the picture in SSRS Report. I need to show picture in many reports.one of my doubt is how to call this function in SSRS Report. The function accepts input as byte but in database the column in varbinary. should i convert the input type of function to varbinary instead of byte array? Please help me.

Public Function Decompress(ByVal arr As Byte()) As Byte() Dim notCompressed As Boolean notCompressed = False Dim MS As MemoryStream MS = New MemoryStream() MS.Write(arr, 0, arr.Length) MS.Position = 0 Dim stream As GZipStream stream = New GZipStream(MS, CompressionMode.Decompress) Dim temp As MemoryStream temp = New MemoryStream() Dim buffer As Byte() = New Byte(4096) {} While (True) Try Dim read As Integer read = stream.Read(buffer, 0, buffer.Length) If (read <= 0) Then Exit While Else temp.Write(buffer, 0, buffer.Length) End If Catch ex As Exception notCompressed = True Exit While End Try End While If (notCompressed = True) Then stream.Close() Return temp.ToArray() Else Return temp.ToArray() End If End Function



Thanks & Regards Manoj

SSRS 2008 Line Chart Issue.

$
0
0

We are facing an issue with SSRS 2008 charts. We have a report which shows dynamic number of series on a line chart. The data values may not exist for all series for the same x axis points. We expected SSRS to connect the missing points as average and have set the empty point option to average.

 

The issue is that the

1)     lines for interpolated points only appear when we set the color of empty point to say red and not when it is set to automatic. We need the interpolated line in the same auto colour as the original line as we will have markers for the data points from the DB and no markers for empty points.

2)     The interpolated lines extend backwards in the series also – we expect it to only fill the gaps and not extend backward or forward.

 

Are these issues known and is there a work around for these issues ? We got your name from one of the SSRS community discussions. Could you please connect us with the right person if you are not the right contact for this issue ?

I also got following reply from one of the MS guy, it says

 

Hi Akshay,

 

The lines should not go backward.  I have seen this happen before and I’ll have to double-check on what that occurs. If you are using a Category Axis, make sure you set the sorting to use a Cdate() expression.  I think that might be it ,but I’ll have to double check.

 

As far as using the auto-coloring on the series when you have empty points like this, I don’t think that’s possible.  It would require a DCR.  You may need to implement something along the lines described in this article  http://msdn.microsoft.com/en-us/library/aa964128(SQL.90).aspx.

When I tried the suggestions I over come the auto colouring issue and also used CDATE () but lines still extend bacawords. Can anyone suggest what to do it this situation ?

 

Unable to bind a new certificate in SSRS 2008 R2

$
0
0

Hi

I've had a SSL wildcard certificate successfully in use, unless it had to be replaced because of its age.

Now I've imported a new certificate, but unfortunately I'm unable to set it up in the SSRS Configuration Manager Console (Web Service URL / Report Manager URL), because "We were unable to create the certificate binding". 

 

Here is the Error Message: 

 

Microsoft.ReportingServices.WmiProvider.WMIProviderException: An unknown error has occurred in the WMI Provider. Error Code 80070520

 ---> System.Runtime.InteropServices.COMException (0x80070520): A specified logon session does not exist. It may already have been terminated. (Exception from HRESULT: 0x80070520)

   --- End of inner exception stack trace ---

   at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.ThrowOnError(ManagementBaseObject mo)

   at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.CreateSSLCertificateBinding(String application, String certificateHash, String ipAddress, Int32 port)

   at ReportServicesConfigUI.WMIProvider.RSReportServerAdmin.CreateSSLCertificateBinding(UrlApplication app, String certificateHash, String ipAddress, Int32 port)

 

I've also deleted the existing bond in the netsh console with "netsh>http delete sslcert ipport=0.0.0.0:443", but this still doesn't fix the issue.

Thanks in advance

SSRS to export report as "structured" csv file (of sorts) . . .

$
0
0
I'm trying to use SQL Server Reporting Services (SQL Server 2008 R2) to produce a CSV file.  Row 1 in the CSV has to be a summary row with 8 columns.  The detail rows which follow have 24 columns.  The data in the summary row is "static" except for a date, a count of detail rows, and a total amount due based on the detail rows that follow.  Here's an example of what we need it to look like:

HDR,4242,0,1,20150203,25,I,25823.18,,,,,,,,,,,,,,,,
DTL,4242,0,1,20150203,255092,20150129,989,C,Net 0,Due Upon Receipt,12703,Some Super Customer,1001 Grandview Dr,,SomeCity,TX,US,75012,9729990000,,,,
DTL,4242,0,1,20150203,255093,20150129,1360,C,Net 0,Due Upon Receipt,23774,Another Awesome Customer,52 Six Flags Dr,,DeepInTheHeart,TX,US,76006,8174445555,,,,

I've been able to get the report itself to render correctly in Visual Studio or from a browser using several different approaches but they all fail in one way or another when I try to save it as a CSV (eg, a header is prepended to each detail so they end up side by side, header and detail end up with extra columns, etc).

I'm clearly a far cry from an SSRS expert but this seems like it should be easy.  Can someone whois an SSRS expert (or at least knows more than me) give me a hint or two?  Can this even be done?

thanks in advance for your help!




Is it possible to output a report as a text file (.txt) in a Data Driven Subscription?

$
0
0
Is it possible to create a Data Driven Subscription report as a text file output to a shared folder? Thanks.

Kahlua

Viewing all 10045 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>