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

Use ReportItems! to sum all textboxes in a tablix

$
0
0
Hi,
Is it possible to use the built-in ReportItems collection to sum up all the values in a particular column in a tablix? For example, I have a textbox called "Balance" that appears for every row in a tablix and I'm trying to sum them all up using
=Sum(ReportsItems("Balance").Value)
but when I do I get an error:
The value expression for the textrun 'Balance1.Paragraphs[0].TextRuns[0] uses an aggregate function on a report item.

By the way, using:
=SUM(Balance)
isn't an option because I am applying an additional business rule within the report which may or may not change the value in the 'Balance' field, hence why I want to access the value of the textbox after that business rule has been applied.

Can anyone help me out?

thanks
Jamie
http://sqlblog.com/blogs/jamie_thomson/ | http://jamiethomson.spaces.live.com/ | @jamiet

Report Viewer shows blank page - only some reports

$
0
0

I hope someone can help me.  I've been struggling with this issue for a couple of days.  Any guidance will be appreciated.

I have an ASPX page with a ReportViewer component. Basically that's all there is on the page (the ASPX is included further down).  This is served on IIS 7.5 on a Windows Server 2003 box.

I have 3 reports that I can view from this page.  The first report always works - the full report renders and the control buttons (export, print, next page, etc) all work fine.

However, on the other 2 reports I get a blank page rendered.  Nothing is visible at all except for the scrollbar.

A bit bizarre because the first report does show correctly.  Only the other two reports don't show.

So, I thought that maybe there was something wrong with the report files themselves - like another error can't be reported on screen for some reason.  But I am able to render those reports directly via the SSRS management web.  This screen below is one of the ones that fails via ReportViewer but works just fine in the SSRS management website.

I did go through other posts like these (http://forums.asp.net/t/1388924.aspx?ReportViewer+showing+an+Empty+report+on+Windows+Server+2008 and http://stackoverflow.com/questions/16607184/reportviewer-control-returns-blank-page) , but the config issue they described isn't a problem because one report does work.  And I tried all of the combinations of config they describe - classic mode / integrated and even 32-bit / 64-bit.  Broke it a few times (so that none worked), fixed it a few times (so that 1 out of 3 worked), but no closer to a fix for all reports.

Please help.  I've removed and added the site, changed the config many times, tried different pipeline modes in the app pool, re-installed the report viewer redistributable.  I'm not sure what else to try.

SimpleReportView.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SimpleReportView.aspx.cs" Inherits="SimpleReportView" %><%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %><!DOCTYPE html><htmlxmlns="http://www.w3.org/1999/xhtml"><headrunat="server"><title>Report Viewer</title><styletype="text/css">
        h2 {font-size:14pt;font-family: Calibri,'Microsoft Sans Serif','Open Sans', sans-serif;font-weight: bold;}#divErrorDetails {font-size:11pt;font-family: Calibri,'Microsoft Sans Serif','Open Sans', sans-serif;}</style></head><body><formid="form1"runat="server">    <asp:ScriptManagerID="ScriptManager1"runat="server"></asp:ScriptManager>

<divid="divReportViewer"runat="server"style="display: block;"><rsweb:ReportViewerID="rvMain"runat="server"ProcessingMode="Remote"Width="100%"Height="700"ShowExportControls="True"ShowFindControls="True"ShowParameterPrompts="False"ShowPromptAreaButton="True"ShowRefreshButton="True"BackColor="White"><ServerReportDisplayName="MainReport"Timeout="60000"/></rsweb:ReportViewer></div><divid="divError"runat="server"style="display: none;"><br/><br/><h2>There was an error generating this report</h2><divid="divErrorDetails"runat="server">Error details to go here</div></div></form></body></html>

Web.config

<?xml version="1.0" encoding="UTF-8"?><!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  --><configuration><connectionStrings></connectionStrings><system.web><compilationdebug="false"defaultLanguage="c#"targetFramework="4.0"></compilation><httpRuntime/><pages><namespaces></namespaces></pages><authenticationmode="Windows"></authentication><globalizationuiCulture="en-ZA"/></system.web><runtime><assemblyBindingxmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentityname="DotNetOpenAuth.Core"publicKeyToken="2780ccd10d57b246"/><bindingRedirectoldVersion="1.0.0.0-4.0.0.0"newVersion="4.1.0.0"/></dependentAssembly><dependentAssembly><assemblyIdentityname="DotNetOpenAuth.AspNet"publicKeyToken="2780ccd10d57b246"/><bindingRedirectoldVersion="1.0.0.0-4.0.0.0"newVersion="4.1.0.0"/></dependentAssembly></assemblyBinding></runtime><system.serviceModel><bindings><basicHttpBinding><bindingname="BasicHttpBinding_IWcfReportProcesses"/></basicHttpBinding></bindings><client><endpointaddress="http://servername/WcfReportProcesses.svc"binding="basicHttpBinding"bindingConfiguration="BasicHttpBinding_IWcfReportProcesses"contract="ReportProcessesWcf.IWcfReportProcesses"name="BasicHttpBinding_IWcfReportProcesses"/></client></system.serviceModel><system.webServer><handlers><addname="ReportViewerWebControlHandler"preCondition="integratedMode"verb="*"path="Reserved.ReportViewerWebControl.axd"type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/></handlers><modulesrunAllManagedModulesForAllRequests="true"/><validationvalidateIntegratedModeConfiguration="false"/></system.webServer></configuration>

Sum of last 3 dynamic columns

$
0
0

Hi All;

Is it possible to sum last 3 dynamic column in ssrs?

Any help much appreciated

Thanks




Pradnya07

Getting RDL Variant Type Error using Multilookup where SQL is the source and SharePoint List is the lookup table

$
0
0

Hi have a Report with 2 data sources & 2 Data sets

1. SQL (ProjectWebApp)

2. SharePoint List

The lookup() function works as expected, however I want the multilookup() to work.  I have many rows in the SharePoint List I want to return.

When I use the multilookup() SSRS returns the following and I am not sure how to resolve this:

Warning 1 [rsLookupOfInvalidExpressionDataType] The Value expression for the textrun ‘Textbox20.Paragraphs[0].TextRuns[0]’ uses a lookup function with an expression that returned a data type that is not valid for the lookup function. The data type must be an RDL Variant type. 

Here is the Lookup() expression that works

=lookup(Fields!ECP.Value, Fields!Project_Code.Value, Fields!Daily_Update.Value, "List")

Thanks

Andrew

Thanks


Andrew Payze

Report builder 3.0 How to display all months in x-asis

$
0
0

I can't get a chart to display all months on the x axis when there is data only for some months. I have data only for September and October, but I want to display all the other months too. I have to do this same thing for year, day, and quarter.


I would like to have in the x axis all the months from January to December even tho there is no data registered.

Part of my code:

=SWITCH
(
Parameters!Grouping3.Value = "Month", Monthname(Month(SWITCH(
Parameters!Grouping2.Value = "StartDate",Fields!StartDate.Value,
Parameters!Grouping2.Value = "DueDate",Fields!DueDate.Value,
Parameters!Grouping2.Value = "ProposedResolutionDate", Fields!ProposedResolutionDate.Value
))).ToString() & " " & Year(SWITCH(
Parameters!Grouping2.Value = "StartDate",Fields!StartDate.Value,
Parameters!Grouping2.Value = "DueDate",Fields!DueDate.Value,
Parameters!Grouping2.Value = "ProposedResolutionDate", Fields!ProposedResolutionDate.Value
)).ToString()

Action - Go to URL option in Power VIew

$
0
0

As in SSRS reports mentioned here http://msdn.microsoft.com/en-us/library/dd207116.aspx "Go to URL" section, is similar functionality exists in Power View?

I have Column chart in power view which shows High, medium and low issues. What I am trying to achieve is on Click of High column open the SharePoint list with filtering all High Issues and so on for other columns. Is it possible?



How do you load subReports in ReportViewer in remote processing mode using LoadReportDefinition

$
0
0

We have a reportViewer control on a web page that renders reports in Remote ProcessingMode.

However, it does not access the reports from the SSRS server, it loads them from our own repository, and sends the Stream of the RDL file to LoadReportDefinition.

This works fine when there are no SubReports.  However, I am not sure how to handle SubReports.

I know that in Local ProcessingMode you have to handle the events to load the SubReports manually, and that in normal Remote ProcessingMode when running a report stored on the server, it handles the SubReports for you.

But what is the process for handling SubReports for Reports in Remote Processing mode that are rendered with LoadReportDefinition?

Should I handle the event and load the SubReport manually somehow using LoadReportDefinition again?  Or is it simply not supported?

SSRS Header Image extension for Cross Tab type Reports to full page width

$
0
0

Hi All,

I'm trying  to adjust  a Image  on Header ,the problem I'm facing is the image doesnt extend with the page full width  when there is cross tab type reports.

Many thanks



Could not load file or assembly 'DundasWebChart, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

$
0
0

Hello,

I havea problemwith displayinga report thatcontainsgraphicsfrom theReporting Services Website.
Thisproblemonly occurswhen I displaya page thatcontainsa chart.
Theother pagesare displayedperfectly.

The erroris as follows:

Anerror occurredDuringrenderingof thereport.
Anerror occurredDuringrenderingof thereport.
Could notload fileorassembly'DundasWebChart,Version = 9.0.242.0,Culture =neutral,PublicKeyToken=89845dcd8080cc91' oroneofitsdependencies.The system can notfind the file specified.

It seemsthat the problemcomes from"DundasWebChart",butdo not know thesolution.

IntheVisual Basic solutionperfectlythe graphicsdisplayedon every page.

cansomeoneplease help me.

thank you very much

List of Month and Year in SSRS report parameter?

$
0
0
Hi, I have two parameters in my SSRS Report i.e. Month and Year. I want to show the list of all Months in dropdown and years for a particular range say 1995-Current Year.
Can any one suggest me the query for how to get it to work.
Thanks!! MCP

Getting dual axis on a graph in SSRS to align at 0

$
0
0

I have a graph that has 2 values that are plotted on dual axes.  Both values can be positive or negative.  Is there a way in SSRS to align the 0 point of both axes?  Preferably, I would like to retain dynamic values for the axes.

I'm using 2008r2

Thanks for any help.

Delete all subscriptions from Reporting Services

$
0
0

Hello,

Can anyone tell me if this is this the best way to remove all subscriptions from SSRS?

DELETE FROM ReportSchedule

GO

DELETE FROM Subscriptions

GO

DELETE FROM Schedule

GO

Or this method is not supported by Microsoft? Is there a better way like using the Web Services or so?

Thank you

Regards


Luis Simões

how to clear out a large dataset result from ssrs rdl (VS2005)

$
0
0

I am working with some large datasets, and when I run a stored procedure that returns 92,000 rows (in the datatab of my rdl) -- I try to close the report (in Visual Studio -- development environment), but it just hangs -- so I have to force it closed (with right-click- close  and close down all of Visual studio).  I vaguely recall there is a way to empty out/clear out the result set from an rdl. Any suggestions appreciated.


Rich P

How to retrive DAY name from Date in SSRS 2008 R2

To_Number Conversion

$
0
0

Hi

I'm working on Oracle/PLSQL using Sql developer. I'm have a trouble trying to convert to numeric using TO_NUMBER.

When i run the query:

SELECT TO_NUMBER(column1) FROM Table1

it works fine

But when i run below query:

SELECT * FROM Table1 t1 

LEFT JOIN Table2 t2 ON TO_NUMBER(t1.REF_NO) = TO_NUMBER(t2.REF_NO)

it throws error : ORA-01722: invalid number

NB: REF_NO column is of datatype CHAR for both tables.

Thanks in advance.


L.M


SSRS Reporting : Fill Cell Color according to the Location of the Cell in the Matrix

$
0
0

Hello,

I am trying to achieve below result in the SSRS but facing issues with Cell color Fill Expression when Detail value is NULL.

If you look at the image, it should show exact same colors of the cell irrespective of the values.

But in my case it is not showing color for NULL value cells.

Below is the expression which I have put in the Fill Expression window.

SWITCH(
Fields!Columns.Value = "Col1" And Fields!Rows.Value = "Row1","Yellow",
Fields!Columns.Value = "Col1" And Fields!Rows.Value = "Row2","Green",
Fields!Columns.Value = "Col1" And Fields!Rows.Value = "Row3","Green",
Fields!Columns.Value = "Col1" And Fields!Rows.Value = "Row4","Green",
Fields!Columns.Value = "Col2" And Fields!Rows.Value = "Row1","Red",
Fields!Columns.Value = "Col2" And Fields!Rows.Value = "Row2","Yellow",
Fields!Columns.Value = "Col2" And Fields!Rows.Value = "Row3","Yellow",
Fields!Columns.Value = "Col2" And Fields!Rows.Value = "Row4","Green",

Fields!Columns.Value = "Col3" And Fields!Rows.Value = "Row1","Red",
Fields!Columns.Value = "Col3" And Fields!Rows.Value = "Row2","Red",
Fields!Columns.Value = "Col3" And Fields!Rows.Value = "Row3","Yellow",
Fields!Columns.Value = "Col3" And Fields!Rows.Value = "Row4","Green"
)

Please suggest me to get the colors for the NULL value cells.

I tried with IsNothing() but then it is doing the same color of all NULL cells. I want them exactly same in the figure.

Thank you,

Mittal.


Displaying list of users with Cascading parameters

$
0
0

Hi

I have to try and get a list of users in SSRS.
I have 2 select options for them and if A selected from the first list then the second list should show all the values starting with A.
If I am selecting A and B from the first list then the second list should show all the values starting with A & Starting with B and so on

Both the user should be able to select multiple options from both the select list 

Rgds,

Shree

What is replacing the Report Model

$
0
0

Hi

Given that from SQL 2012 onwards it is no longer possible to create a Report Model for use in the Report Builder, I was wondering what is taking its place?

The scenario is that I want our end users to be able to create reports using Report Builder to query the live transactional database. I thought I should create a Report Model to help them, but now I'm not sure what to do.

I want to build a solution that we can take forward and not base it on something that is deprecated.

IS the recommendation to move to Analysis Server? If so, what about real time reports.

Thanks for your help.

Graham

Add Total to Stacked Column Chart on the top and another important thing is the data are from SharePoint site

$
0
0

the same with the following description from another question:

"How can I display a total on top of each column on a stacked column chart (using
reporting services 2008)? If I use Data Labels I can display the
values for each part of the stack on a stacked column, but I want to be display the total.

For Example: If I have stacked column on chart with a value of 10 for the 1st stack, 20 for the 2nd stack,
and 20 again for the 3rd stack - I want to display 50 (the SUM total) as the data label on top of the entire column..."

and a solution for this would create a new column named SUM(category group), this can be done with data source from SQL server, but my data is from SharePoint site list. its query seems can't be changed which means I can't add a SUM column.

what should I do with this? Can anyone give me a hand?

thank you very much.

SSRS Report Manger parameter panel customization

$
0
0

I am developing reports using SSRS 2008 using dynamic grouping and sorting. this grouping and sorting is handled at runtime & controlled optional parameters. if user does not select any value for the groups/sorts then i am using some default grouping and sorting. currently this info of default grouping is not displayed anywhere on the report. and user wants it to be displayed onreport parameter panel on report manager instead of in report header or body. please find attached image of report manager URL. it should look as seen in image if default group info is added. As per my knowledge, it is not possible to customize report manager and its panels. please let me know if there is any way around it.

 


Viewing all 10045 articles
Browse latest View live


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