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

Set financial Year Value dynamically in SSRS Report

$
0
0

Hi All,

I have a requirement to display the count of project data by their status (On Hold,  In Progress, Pre-concept and Closed) for the current FY and Last FY based on column 'Financial Year' and 'Project Status'. 

Financial Year column has a value in the following format (FY2011-12, FY2012-13, FY2013-14,FY2014-15, FY2015-16,FY2019-20 ,FY2020-21,FY2021-22)

 

I need to set the financial year value dynamically in above format for the last and current year (FY2013-14, FY2014-15) based on today's date and  Financial Year is from July to Jun. For example,

 

  • When today's  date is 28-06-2015 then it should set the current FY as FY2014-15 and Last Financial Year as FY2013-14
  • When today's  date is 28-06-2021 then it should set current FY as FY2020-21 and Last Financial Year as FY2019-20

 

Has anyone come across this requirement? I really appreciate your help.

 

Thank you.


Badal Ratra MCTS



Graph Error SSRS Report Builder

$
0
0
I am getting the following message when I attempt to preview my SSRS report:

"Failed to preview report.

The Y expression for the chart 'Graph4' uses a RunningValue function in an outer aggregate. RunningValue functions cannot be specified as nested aggregates." 

I am not 100% where the code is thats creating the issue, nor am I 100% positive on a fix. Suggestions?

Design Pattern for holding back Subscriptions when ETL hasn't completed

$
0
0

I'm working on an application that allows users to set up scheduled time based reports. Each scheduled report creates a SQL Agent job associated with a schedule.The default time to fire these off is 8:00 AM. There are several hundred. They run off a Kimball DWH and it has no trouble running hundreds of reports all fired off at the same time.

There are several ETL processes and occasionally they don't complete before our verbal SLA of 8:00 AM.

My problem is on days where the ETL runs past 8:00 AM I wan't to hold these scheduled jobs from firing off.

I have a klunky solution but was wondering if there are any best practices around this and what people's opinions are on the matter.

Best Regards

Set Bar Space in Column Chart in SSRS Report

$
0
0

Hi All,

I need to set the space between the bar within the column chart. Could you let me which chart property need to be used for setting the space?

Current Chart

Expected Chart after bar space

Thanks in advance.


Badal Ratra MCTS


SSRS 2012 - Cant figure out how to create a matrix report to show my data - AARRGGHH!!

$
0
0

Hi all

I am trying to create the following matrix report in SSRS2012:

GLAccountNum       GLAccountName        Dept                Branch1      Branch2        Total
1100                      Motor Repair              FR                    12,000        15,000          27,000
1100                      Motor Repair              FS                     250             500              750
1100                      Motor Repair              FT                     2,500          3,500           6,000
1200                      Fuel                            FR                    150              350             500
1200                      Fuel                            FS                    1,000          2,000           3,000
1200                      Fuel                            FT                     500             600              1,100

So I am trying to report on costs incurred by Branch and Department. I want the Branches to be displayed as Columns, and the GLAccountNum/GLAccountName/Department to be displayed by row. I have tried every combination I can think of in the matrix design to display the report like above, but nothing works. The best I have got is that Branches are displaying correctly, but I only get one department for each GL account being displayed, not all of the departments for each GL cost account. Theres only five possible fields I can use:

GLAccountNum
GLAccountName
Branch
Dept
Amount

Can anyone help with how to design this please? I am going insane trying to figure it out

Many thanks for all help
Naz

RDL's present in SSRS folder path but not visible in Report Viewer URL?

$
0
0

I have an issue as to where only some reports are visible within Report Viewer url. But if I navigate to the path of the rdl's there are many more present that should be visible through Report Viewer. The client was recently upgraded, and I seem to have all out of box roles and permission levels yet can only see some of those reports, as if some were manually copied to this folder location at a later point and perhaps some user job needs to be run to reflect\import those additional rdl's? I'm not too sure as I'm a developer and not really a dba. 

Also, seeing as my knowledge is limited around this matter what are some good literature for shooting for MCSA SQL Server 2012?

Thanks!

Mike


Violation of PRIMARY KEY constraint 'PK_PersistedStream'

$
0
0
We are facing one issue related to SSRS. Appreciate any pointers in identifying the real cause of this issue. Symptoms as below. • Our application is a windows smart client with WCF based App server. Report Viewer control is used for rendering reports. Server side reports are used. • It happens for only for few reports when accessed from client through report viewer control. It is not happening all the time and the symptom is random • The error message is as below Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database., ; chunks!ReportServer_0-6!3e48!07/08/2011-10:59:23:: w WARN: Rolling back shared chunk transaction for snapshot 'a60631fe-4866-4c2c-b976-63ecfbe6760e', Permanent=False. library!ReportServer_0-6!3e48!07/08/2011-10:59:23:: w WARN: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database. ---> System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK_PersistedStream'. Cannot insert duplicate key in object 'dbo.PersistedStream'. The duplicate key value is (emdav1y45x40ymngxfiev245, 1). The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ReportingServices.Library.InstrumentedSqlCommand.<ExecuteNonQuery>b__0() at Microsoft.ReportingServices.Library.SqlBoundaryWithReturn`1.Invoke(Method m) --- End of inner exception stack trace ---

Advice with an expression please

$
0
0
Hello

I am trying to write an expression in a calculated field that shows if one date value is greater than another:

=(IIF(fields!date1.value>fields!date2.value,"late","on time")

This works fine when there is a value in fields!date2.

However, if fields!date2.value is blank, the expression returns "on time". I don't want it to do this, as date1 may be 1/4/15 - if date2 is blank, that mean's it's overdue and I therefore want the calculated field to say "late".

Therefore I want the expression to say "late" if fields!date1.value is < today's date (basically, if it's blank and fields!date1.value is before today's date, then it means it's overdue).

Please can anyone advise on how to amend the expression to accommodate this?

Thanks

Hiding Sub-report based on WeekDayName value

$
0
0

I'm working on a scheduling report to display work to be completed on each day. I have each day iteration as separate subreports by adding day values to "Today()" 

I'm trying to hide subreports that return as Sat or Sun. Here's what I'm using to define my WeekDayName

=WeekDayName(Weekday(DateAdd("d",1,Today())),True,0)

What I would like to do is =WeekDayName(Weekday(DateAdd("d",1,Today())),True,0) = 'Sat' ORWeekDayName(Weekday(DateAdd("d",1,Today())),True,0) = 'Sun' but I get an error when I attempt that. I'm entering this under Sub-Report Properties - Show/Hide based on Expression using Report Builder 3.0

Does anyone have any insight to how I can achieve this? I'm fairly new to SSRS and SQL, so bear with me if this is an easy task and I'm going about it the wrong way. 

Using Report Builder 3.0 on SQL 2008 R2

Thanks!

SSRS 2008: Calendar-type Parameter Input

$
0
0

Greetings one and all on this fine summer morning! It's late June in Texas and the weekend looks to be only in the 80s! Wow!

Anyway, I'm modifying a report that uses a date parameter as a report filter. The original report had no restrictions on what dates may be entered, so it displayed a neat Calendar picker tool for use in selecting the date for the parameter.

Thing is, this new version needs to have the dates limited to only those available in the source data. So, when I provide a query to describe the available values in the parameter properties window, instead of the nifty Calendar picker, I get a texbox dropdown list.

[insert sad sound here]

I was hoping that it would still provide the Calendar picker, but with available dates highlighted in bold or some color or the unavailable dates greyed out, something along those lines; not an unimaginative dropdown list. To define the available values, I use a very simple query;

SELECT DISTINCT Load_Date
FROM Census
ORDER BY Load_Date

Is there a way to get it to display a Calendar tool rather than the dropdown list, if the parameter is given a list of available dates?

Thanx!

Splitting Data in a Tablix on Two or More Rows

$
0
0

Greetings, all!

I have a report I'm designing where, as a simple SQL report viewed only on a screen, it was irrelevant how wide it was.

However, now I've been asked to duplicate this report in SSRS and to include the option to print it out.

Well, the problem is, as it stands - with 8pt font, even - it will require a sheet of paper about 24" wide to get all of a single row to print.

So, I'm trying to create a Tablix that will split the data into two sets of header/detail rows in the same Tablix. The solutions I've found with online searches have been unsatisfactory and I wondered if someone here might have found a workable solution that doesn't involve writing an app in basic or C.

Thanx!

accidentally deleted reportservertempDB

$
0
0

Hi,

I accidentally deleted the reportserver TempDB. On the web I found something to restore the TempDB that makes me run the script: CatalogTempDB.sql after creating a new database and assigning users. However this doesn't seem to work for me.

I get the following error message: could not use function 'ExtendedCatalog'because of binding errors.

Can anybody please tell me what I did wrong??? Thanks









Help with Expression

$
0
0

In my output, I am getting blanks where the value was 0. I have tried using the iif(isnothing wrapped around my expression and can't seem to get the syntax right or to produce the results i need. 

My current expression:

=SUM(Lookup(Fields!InsFinClassId.Value , Fields!InsClassId.Value, Fields!TotalBalance.Value, "InsAgingSubReport"))

The permissions granted to user '' are insufficient for performing this operation. (rsAccessDenied)

$
0
0

when I try to connect to the "http://localhost:8080/ReportServer" I get this error.

The permissions granted to user 'DOMAIN/USERNAME' are insufficient for performing this operation. (rsAccessDenied).

I have configered the Reporting services Configuration manager.

I am an administrator on my machine and on the reportserver DB. when I try to log on the my 2008 R2 reporting services I get a simalar error.

does any one have an idea of what I am missing?

thank you.

Jeff


Jeff

Blank Page in PDF Export - SSRS

$
0
0

Hi All,

I have the multiple pages with in the report. For Example,

1. Dashboard Page
2. Risk Summary Page
3. Issues Summary Page
4. Key Summary Page
 
I am using the rectangle for the physical page break and set the page break option as "Add a page break after" for each rectangle except for the last key summary page in the RDL
 
Other Report details
Report Paper Size is A4, Landscape, Width = 29.7cm, Height = 21cm
Report Margins - Left=0.2cm, Right=0.2cm, Top=0.25cm, Bottom=0.25cm
 
Rectangle size in the report body in each page as
Width=28.7cm, Height=17.5cm,

Header Height= 2cm
Footer Height = 1cm
 
Now, the issue is when I add the Tablix with the rectangle to display the details data, it also adds the blank page after the page and when I remove the Tablix and only keep the graphs within the rectangle then blank page issue get fixed.
 
Has anyone come across this issue or can advise the solution options to fix the blank page issue.
 
Thanks for your help in advance.


Badal Ratra MCTS






Report Header / Footer

$
0
0

Hi,

I am creating a report that will be used to produce Quote documents from data entered in a SQL database.  In the document, as you might expect to see in a quote, I will have a table of products and associated pricing and quantities.  This table (tablix) will grow / shrink depending upon the number of lines of items being quoted on.

Following on from this tablix there are various texboxes that will be printed and their position will need to shift according to the height of the tablix.  SSRS does this automatically.  So far - brilliant.

What I need though is a report header and a report footer.  The report header will include our company logo, address, the customer's name, contact, address, quotation number, etc.  The report footer will include the sign off, e.g. "We hope you find our offer acceptable.  Regards, John Smith, General Manager, 0135-256-5263,john.smith@domain.com".  I don't want these repeating on every page, and I don't want them taking up space on a page where they will not display.  I don't want them interfering with other controls (textboxes, tablixes, etc.).

I am using SSRS 2012 SP2, which apparently does not support report headers and footers.

What can I do?

Thanks,

Charles




Any idea how to rotate Text 180 degrees without using images?

$
0
0

I'm currently working on a report and have all the requirements taken care of save one. I need to flip my text 180 degrees. I have seen how to do this by making an image on the fly and then rotating the image, etc. And that is what we previously had in place. Unfortunately the reports are getting so large (20 images on a page, 150 pages for the report) that the reports will not print in their entirety through Citrix and cuts off after about 120 pages.

I also tried using upside down fonts which won't work as they flip the letter on a X axis as opposed to rotating them along a pivot. Sadly we can't reduce the number of occurances per page or decrease the page count. So those are not options. They were the first things I asked about.

Thanks in advance for any ideas of how to do this.

DataSet of SSRS is not showing Fields

$
0
0

Hi.

 

 I am currently working With SSRS . I have created a Store Procedure To show Data from different table in my Database,I have Used a temp table with #xxx Name,when i am creating DataSet  for this Store procedure . but its not Showing the Fields of Store Procedure, but when i create other  Store procedure without temp table with #xxx  then its showing the fields in Data Set.

 

 What Could be the possible Reason,

 

Thanks

 

SSRS Expression for visibility

$
0
0

Hi All,

I would like to suppress the entire row in tablix if no data despite multiple expresions used in a text box.

If data the it will show per the DB data else it should not show anythig or leave it as blank row

The issue is where I have appended ";" and "'" in the expressions but still comes in the report output because it is appended even if no data

Anuy solutions please in SSRS 2012?

Thanks in Advance

Mahesh MSBI


rg.mahesh2006@gmail.com



SSRS 2005 custom report rendering format not working

$
0
0

I'm trying to add a custom report format to ssrs 2005 as per this

https://msdn.microsoft.com/en-us/library/ms156281(v=sql.90).aspx

I've added the code snippets in the example to three different ssrs 2005 server RSReportServer.config files but it does not work i.e do not show up in the export drop down when rendering report. I've tried starting and stopping reporting services and it still does not works. I've also modified the existing csv extension  with different options to see if it works but to no avail.

However it works with SSRS2008 R2 . In fact it works right after I saved the config file, no restart needed.

For SSRS2005 the file is in C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer. I checked the registry setting  just to make sure I'm looking at the correct installation 'HKEY_LOCAL_MACHINE', 'SOFTWARE\Microsoft\Microsoft SQL Server\90\Tools\ClientSetup', 'SQLPath'

The three ssrs2005 instances are in three different physical servers and the problem is with all of them so it is not an isolated incident. I've dbowner rights to all three servers. The server versions are 9.0.4060, 9.0.4035 and 9.0.4053

Viewing all 10045 articles
Browse latest View live


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