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

Add a break after a column

$
0
0

I have a problem. I have a complex report with a lot of rows and abouts 35 columns. I would export this report to PDF. The columns have a logical groups (some cols with quantity, some cols with costs, some cols with margins, ...), I need a way to add a "page break" after a particular column so I can export to pdf and in each page I have all columns of the same logical groups.
The effect is the same to enable page break of the column groups, but in this case, I haven't a column groups.

Any ideas? Thanks.


Sort a tablix in SSRS based on another column in the table

$
0
0

Greeting 

im kinda new to SSRS ! i have a tablix that provide the top 5 selling store of my client 

i want to sort the tablix based on sales by stores 

NB : my Datasource is a cube of sales 

Thanks in advance 

Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException:

$
0
0
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.;

unable to create or edit report with help of report builder 2016

$
0
0

Hello,

I have installed report builder 2016 on server with SSRS 2017.

when trying to create new report or upload any rdl file it shows report builder is not installed.

Any help or suggestion would be appreciated.

SSRS visability expression

$
0
0

Im struggling to hide / show a Tablix row

=Iif (LEN(Fields!deposit.Value) > 0, false, true)

I've tried the above but not getting the result I need

Im trying to get the row to be visable if ;

 deposit value ( money field ) has a value and the value is greater than £0.00

example  ..

a. deposit has no entry ( null )  hide the row

b. deposit is £0.00  hide the row

c deposit is £0.01 ( or above ) show the row 


Dont ask me .. i dont know

SQL Server Data Tools (SSDT) 2017 issue

$
0
0

Hi,

I get the below issue:

[30FC:20C8][2019-06-10T16:56:33]i410: Variable: PromptToUninstallOldExtensionText = Seems you have installed a previous version of SSAS or SSRS extension that is incompatible with the version to be installed, you may need to uninstall both of them before continuing the setup, or current installation may fail. Do you want to continue anyway?

Then it fails. I have managed to install SSDT 2015 fine but i also need 2017. Any ideas what might be wrong? could it be some security issue or antivirus software? i am using a  company PC so high security settings. Thank you.

The report execution **** has expired or cannot be found. (rsExecutionNotFound)

$
0
0

 Hi guys,

I have a report that runs on SSRS 2016.

A particular user is currently having issues viewing this report.

She is getting this error message:

"The report execution **** has expired or cannot be found. (rsExecutionNotFound)"

When I viewed the report logfile, this is what I found:

"

session!ReportServer_0-56!8654!06/10/2019-06:06:15:: e ERROR: Error in getting session data: Invalid or Expired Session: ******
session!ReportServer_0-56!8654!06/10/2019-06:06:15:: i INFO: LoadSnapshot: Item with session: ******, reportPath: , userName: ****** not found in the database
library!ReportServer_0-56!8654!06/10/2019-06:06:15:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ExecutionNotFoundException: , Microsoft.ReportingServices.Diagnostics.Utilities.ExecutionNotFoundException: The report execution ****** has expired or cannot be found.;
library!ReportServer_0-56!777c!06/10/2019-06:06:15:: e ERROR: Throwing 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.;"

"


I have tried to increase the SessionTimeout under the Advance Settings in SSMS as well as setting the UseSessionCookies to False yet the issue still persist.

Any one with idea on how to solve this.

Thanks


me


How to show Top 5, Other and Zero values separately in same SSRS Report

$
0
0

Hi

I am creating a SSRS report which has to show top 5 values, other values and zero values in separate groups in same SSRS report and there should be a subtotal at the end of the table which shows sum of all the rows from three groups. How can I do it ?

Please let me know if you have any suggestion 

Thanks 



Disable Download Button SSRS

Using Dataset field as a table name but the field is variable

$
0
0

Hi,

As the title says i want to use dataset field as a table name but the field is variable, which means that the field name is constantly changing. You know the name of the table that you get in query editor when executing it, yeah, I need that name in my tablix. Like:

Name              Age       <--- Table names in query editor, which I need in my report

Isaac               34

----------------------------

How can I get it out?

Thanks

SSRS subreport visibility based on parameter length count

$
0
0
I'm very new to SSRS , i'm working on subreport visibility based on
expression which does count on the parameter when passed to the store
procedure.
The store procedure create report for "Branch managers" and "regional
directors"  and "regional director " doesnt see some subreport which is
in the report for branch manager.
on the store proc i have a column called "branch_code" where each branch
has a code
eg SE001 ,SW237 .....  When i pass parameter SE it becomes visible to
the "regional director" when i pass parameter SW001 it becomes visible
to "Branch managers"
And there is a parameter called @branch
I have two sub-report where i have written an expression on one of the
sub-report which i don't want "Regional managers" to see, the expression
counts the length of the branch code as 
=IIf(len(Parameters!branch.Value)=2,True,False) so, if @branch length is
2 ie "SE" it won't show the sub-report to the "Regional directors" but
it will show to the "Branch managers", here "the parameter is "Branch".
Now i want to do the opposite of it to another sub report where it
should say when the parameter count is equals to 2 show the report else
don't show. How do i achieve it.
I have tried with the expression
=IIf(len(Parameters!branch.Value)=2,False,True) but it didn't work. Any
help on this would be greatly appreciated.

How to get the right result for average weekdays average saturdays and average sundays in ssrs reporting services

$
0
0

Hi,

I have one table which contains entered calls for employees.Grouped by hour and date.I have column Average Weekdays,which should returns me the average value for weekdays without saturday and sunday.I use this expression : 

=iif(weekday(Fields!DATE_YYYYMMDD.Value,2)<>6 and 7,avg(Fields!N_ENTERED.Value),0)

------<>6 and 7 not in Saturday and Sunday,but doesn't work in this case. --------

I understand that i should received the result average for weekdays,but my report returns me result with saturdays and sundays.

In other expression the things are similarly.(Average Saturdays and Average Sundays).

=iif(weekday(Fields!DATE_YYYYMMDD.Value,2)=6,avg(Fields!N_ENTERED.Value),0)  ---6 is saturday ---

=iif(weekday(Fields!DATE_YYYYMMDD.Value,2)=7,avg(Fields!N_ENTERED.Value),0)  ---6 is sunday---

When am i wrong ?

i expected this in red - >  https://i.imgur.com/h2b1TOd.png

Using Dataset field as a table name which shows in query desinger

$
0
0

Hi,

As the title says i want to use dataset field as a table name but the field is variable, which means that the field name is constantly changing. You know the name of the table that you get in query editor when executing it, yeah, I need that name in my tablix. Like:

Name              Age       <--- Table names in query editor, which I need in my report

Isaac               34

----------------------------

How can I get it out?

Thanks!

Could not Open a Connection to SQL Server [53]

$
0
0

I tried to run a report in SSRS but when i execute the said report i got this error.

An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for dataset 'DataSet1'. (rsErrorExecutingCommand)
Named Pipes Provider: Could not open a connection to SQL Server [53]. 

This was running perfectly before but after we installed a windows patch on to the DB Sever (that is running on windows server 2018R2 with SQL2018) everything went down so i decided to roll back all installed updates on that day and after the roll back was successful the SSRS is back online but this error above pops out. Can someone enlighten me on what is happening here.

Any suggestions is much appreciated.

Varchar Sorting in SSRS

$
0
0

In SMS the following sorts find:

SELECT CONVERT(VARCHAR(15), [Date], 101) as [Date]WHERE (DATEPART(w,[Date]) NOT IN (7,1))AND--First and 15, and Last Day of Current Month	([Date] >= DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()), 0) AND  [Date]<{fn NOW()}) --First day of previous monthORDER BY [Date] asc

Date
06/03/2019
06/04/2019
06/05/2019
06/06/2019
06/07/2019
06/10/2019
06/11/2019

But, in SSRS, it sorts like below. I have tried sorts from within the Tablix, Advanced Group. 

And, it will not sort.

Thanks,



jer


Wildcard Searching with Parameters

$
0
0

This one is starting to annoy me... I have pieces of the puzzle but can't solve it completely. What I am after is a drop down box where users can search for a list of keywords.


The below is what I am after but it only brings back exact matches. So if someone put apple in the drop down, if title = apple it will work, but if title = banana apple kiwi, then it will not.


WHERE

CREATE_DATE_TIME >= @FromDate
AND CREATE_DATE_TIME <= @ToDate
AND AREA.CODE = '40'
AND TEXT.TEXT IN (@KeywordList)

OR

CREATE_DATE_TIME >= @FromDate
AND CREATE_DATE_TIME <=@ToDate
AND AREA.CODE = '40'
AND TEXT.TITLE IN (@KeywordList)

So then i tried the below. This works in terms of bringing back what i need from the text search but it will only take one keyword at a time. If i put apple (press enter) and then Banana, it crashes.

CREATE_DATE_TIME >= @FromDate
AND CREATE_DATE_TIME <=@ToDate
AND AREA.CODE = '22'
AND TEXT.TEXT LIKE '%'+ (@KeywordList) +'%'

OR

CREATE_DATE_TIME >= @FromDate
AND CREATE_DATE_TIME <=@ToDate
AND AREA.CODE = '2'
AND TEXT.TITLE LIKE '%'+ (@KeywordList) + '%'


Is there a way of combining the IN and a wildcard search?

Data Matrix Bar Codes in SSRS 2017

$
0
0

Hi,

I'm looking for some direction for a new requirement to use Data Matrix bar codes. We currently have a Code 128 working in SSRS 2017 by installing the font and adding the barcodelib.dll and then adding a bit of code and some references.

I'm going to test this with similar logic on the Data Matrix, but is there any suggested path for this? I see that there are various vendors out there with products that supposedly integrate with SSRS, but it seems like a bit of over kill for my requirements.

Any thoughts or suggestions would be appreciated.

Thanks,

Trish


Trish Leppa

Migrate SQL Server Reporting Service from SQL Server 2008 R2 to SQL Server 2016

$
0
0

I want to migrate SQL Server reporting service from old SQL Server 2008 R2 to a new SQL Server 2016. Old server used user defined instance and new server uses default instance. I backed up Reporting Service databases and tried to restore the database into new SQL Server 2016. I checked Relocate all files to folder 

Data file folder: E:\Data\MSSQLSERVER

Log file folder: F:\Logs\MSSQLSERVER

 and then I changed Restore As 

E:\Data\MSSQLSERVER\ReportServer.mdf from E:\Data\ReportServer$UserInstance.mdf

F:\Logs\MSSQLSERVER\ReportServer_log.ldf from F:\Logs\MSSQLSERVER\ReportServer$UserInstance_log.ldf

In the options I checked Overwrite the existing database (with replace) and Take tail-log backup before restore.

But the database restore failed and have the following error:

Resore of database 'ReportServer$UserInstance' failed
System.Data.SqlClientError: Exclusive access could not be obtained because the database is in use

How to fix it? Thanks

Matching the Line Chart with Tablix data

$
0
0

Hello,

I am working this SSRS report for the client who have issues where the chart doesnt match with the  Tablix .

The Tablix 5 uses row groups . Each row has its own row group. And there is one column group DataLabel.  The goal is to match the data  in chart with the tablix . I tried to use the same formula for chart  that we used it in tablix but no luck. The numbers are always off.  

Any suggestions would be helpful

SSRS Export to Excel is not exporting all the fields in the footer

$
0
0

Hi All,

I have a SSRS report footer with multiple text boxes to display the below data positioned at different places in the footer

1)The page no based on the following expression ="Page "&Globals!PageNumber &" of "&Globals!TotalPages 

2)Dynamic terms & conditions from the database

3)Logo from the database

4)auto generated number from the database 

but when I export to excel, Only Page number and only some part of the the dynamic terms & conditions is exporting(though it has only 252 characters including spaces).I have tried to put all the fields in different rectangles but no luck.

Note : Without the terms & conditions field remaining data is exporting to excel.I have even tried by removing the dynamic terms & conditions and entered a static text but it has not resolved my issue.

Can someone help me to solve this issue. I am attaching the images for your reference.

Viewing all 20764 articles
Browse latest View live


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