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

Group on multiple fields

$
0
0

Is there a way to create a tablix group using multiple database fields?

I think the old PUBS database (book sales and authors) would be a good example for this. I no longer have PUBS so here's an example of the type of SQL data:

select 'Fiction' as FictNon ,'US' as Country, 'Online' as RetailerType, 'English' as BookLanguage, 'Horror' as Category, 'Soft' as BookCover, 12.95 as Sales
union all
select 'Fiction' as FictNon ,'FR' as Country, 'Retail' as RetailerType, 'French' as BookLanguage, 'Comedy' as Category, 'Hard' as BookCover, 19.95 as Sales
union all
select 'NonFiction' as FictNon ,'US' as Country, 'Retail' as RetailerType, 'English' as BookLanguage, 'Biography' as Category, 'Hard' as BookCover, 22.89 as Sales
union all
select 'Fiction' as FictNon ,'CA' as Country, 'Retail' as RetailerType, 'English' as BookLanguage, 'Horror' as Category, 'Soft' as BookCover, 12.95 as Sales
union all
select 'Fiction' as FictNon ,'CA' as Country, 'Retail' as RetailerType, 'French' as BookLanguage, 'Horror' as Category, 'Soft' as BookCover, 15.95 as Sales
union all
select 'Fiction' as FictNon ,'FR' as Country, 'Retail' as RetailerType, 'French' as BookLanguage, 'Romance' as Category, 'Hard' as BookCover, 19.95 as Sales
union all
select 'NonFiction' as FictNon ,'US' as Country, 'Online' as RetailerType, 'English' as BookLanguage, 'Biography' as Category, 'Soft' as BookCover, 12.59 as Sales



This data is for sales of books. Each book can belong to many dimensions that we want to track. The actual data comprises several years and is over 200,000 rows. The end users want a SSRS report on the various dimensions like:

Fiction/Non-Fiction
Fiction    81.75
NonFiction    35.48

Country    Sales
CA    28.90
FR    39.90
US    48.43

BookLanguage    Sales
English    61.38
French    55.85

I could create multiple datasets but that would just be querying and returning the same data over and over.

The only way I can think of to accomplish this with one query is to create a report with many separate tablixes and set the group per tablix to group on the desired dimension. The above example output is very simplified, there is more complexity to it. If I have to use a separate tablix per dimension then any changes or error correction must be done many times. There are currently about 12 dimensions with more likely to be added in the future.

So is there a way to create a tablix group based on multiple dataset fields?





Pass intersection values when drilling through by clicking on a value in a matrix

$
0
0

I have two SSRS reports. One is acting as a source report and the other as a target report.

Both reports give information about "Customer Contact".


My source report contains one matrix with the following attributes:

Columns:Contact type (Email, Phone, Desk)

Rows:Employee function (Administrative, Manager)

Measure:Contact quantity

The source report has two parameters on 'Contact type' and 'Employee function'

My target report contains one matrix with the following attributes:

Columns:Customer name

Rows:Employee name

Measure:Contact quantity

The target report has two parameters on 'Contact type' and 'Employee function'

I am using [Action] from the [Textbox property] of 'Contact Quantity' to go to my target report.

What i want to achieve is the following:

Lets say i select All for both parameters when running my source report.

I get all the Contact types against all the Employee functions.

Now the intersection between 'Email' and 'Manager' is 27.

When i click on the value 27 in the matrix i want to go to my target report and pass trough Email and Manager so filtering can take place based on the intersection i clicked on in the source report.

What it does now is just pass the full parameter value selected from the prompts in source report. I want to narrow it down.

Any help? Thanks!

 


SQL Server Reporting Services configuration issue

$
0
0

When I click on “System Settings” in the SSRS service application management I get an 503 (server Unavailable) error even though the service is running.

The farm consists of 4 servers (2 Web and 2 Application server). SSRS is running on one of the application server. SharePoint 2013, SSRS 2012.

SP2013 WFEs - Installed only RS Add In

SP2013 APP1 - Installed RS in SP Mode, SQL 2012 SP1 and Add-in.

In services on server, The SSRS service is started on the application server.

I can activate/deactivate Site collection feature for Report Server Integration Feature.

Add Reports Content Type in document library.

Has anyone see anything like this or have an explanation of what is happening?


Thanks and Regards, Parth

SSRS2012 forms authentication cookie domain is missing

$
0
0

Switched SSRS2012 to forms authentication:

C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\web.config

.

.

<authentication mode="Forms">
<forms loginUrl="notused.aspx" name="ssrs" timeout="60" domain=".acme.com" path="/"/>
</authentication>

The cookie name is correct in the actual cookie but the domain is empty / not set for some reason.  The empty cookie domain causes a subsequent error in ReportingServiceProxy when trying to add the auth cookie to the request.CookieContainer.

protected override WebRequest GetWebRequest(Uri uri)

{ HttpWebRequest request; request = (HttpWebRequest)HttpWebRequest.Create(uri); // Create a cookie jar to hold the request cookie CookieContainer cookieJar = new CookieContainer(); request.CookieContainer = cookieJar; Cookie authCookie = AuthCookie; // if the client already has an SSRS auth cookie // place it in the request's cookie container if (authCookie != null) { request.CookieContainer.Add(authCookie); //Exception thrown here because of empty cookie domain } request.Timeout = -1;


Why is the forms auth / ssrs cookie domain empty?  How do you resolve this?

thanks

scott


SSRS report email Scheduling omit zero record

$
0
0

Is that a way to omit zero record for SSRS report email scheduling?

That means if zero record happened it shouldn't trigger emailing.

How to Hide Columns Based on Condition

$
0
0

Hi All,

i have an SSRS Report with below four columns.

Product_Name , Year , Credit_Amount , Debt_Amount

I want to hide the Credit_Amount Column if that column all values are Zero.

In the same way needs to hide Debt_Amount Column if that column all values are Zero.

Thanks in advance.


bala krishna

not searchable pdf is generated by RDLC

$
0
0

(As I mentioned here : http://stackoverflow.com/questions/27755180/not-searchable-pdf-is-generated-by-rdlc and here : https://social.msdn.microsoft.com/Forums/en-US/d8e58bb5-3c58-4378-b595-594c69821d24/not-searchable-pdf-is-generated-by-rdlc?forum=vsreportcontrols#d8e58bb5-3c58-4378-b595-594c69821d24)

I generated a pdf file with VS 2013 - Update 4 RDLC. This pdf output is unicode based and with some embeded fonts.

Everything is ok and I can view the file correctly after generation in all pdf viewer tools. But the problem is that I cannot search inside the pdf.

For example : 1- If I search a unicode character , It cannot find it. 2- If I search an ascii character which is not present in the pdf file(for example searching for "Q" character). It founds more than 30 occurrences!!

The problem is exactly as same as what mentioned here : http://objectmix.com/csharp/394335-%5Brdlc-reporting%5D-problems-unicode-chars-pdf.html

Also as mentioned here : http://msdn.microsoft.com/en-us/library/ms154682(v=sql.100).aspx I setHumanReadablePDF to true but nothing was changed except the file size!

PS. I installed the last version of report viewer too : https://www.nuget.org/packages/Microsoft.Report.Viewer



Mahmoud Moravej

not searchable pdf is generated by RDLC

$
0
0

(As I mentioned here : http://stackoverflow.com/questions/27755180/not-searchable-pdf-is-generated-by-rdlc and here : https://social.msdn.microsoft.com/Forums/en-US/d8e58bb5-3c58-4378-b595-594c69821d24/not-searchable-pdf-is-generated-by-rdlc?forum=vsreportcontrols#d8e58bb5-3c58-4378-b595-594c69821d24)

I generated a pdf file with VS 2013 - Update 4 RDLC. This pdf output is unicode based and with some embeded fonts.

Everything is ok and I can view the file correctly after generation in all pdf viewer tools. But the problem is that I cannot search inside the pdf.

For example : 1- If I search a unicode character , It cannot find it. 2- If I search an ascii character which is not present in the pdf file(for example searching for "Q" character). It founds more than 30 occurrences!!

The problem is exactly as same as what mentioned here : http://objectmix.com/csharp/394335-%5Brdlc-reporting%5D-problems-unicode-chars-pdf.html

Also as mentioned here : http://msdn.microsoft.com/en-us/library/ms154682(v=sql.100).aspx I setHumanReadablePDF to true but nothing was changed except the file size!

PS. I installed the last version of report viewer too : https://www.nuget.org/packages/Microsoft.Report.Viewer



Mahmoud Moravej


=SUM(IIF(Fields!OPTION_CODE.Value="M","0",Fields!COST.Value * Fields!TOTAL_UNITS.Value )) =IIF(Fields!OPTION_CODE.Value="P","0",SUM(Fields!COST.Value * Fields!TOTAL_UNITS.Value )) =SUM(IIF(Fields!OPTION_CODE.Value="M",CDbl(Fields!COST.Value * Fields

$
0
0

  in this i want to calculate only Option code 'M' Amount in gross total.BUT MY Gross total calculating M and P Amount.  option code P value should visible but not to add.

please any body help me to writing any function

=SUM(IIF(Fields!OPTION_CODE.Value="M","0",Fields!COST.Value * Fields!TOTAL_UNITS.Value ))

iam writing like below its showing error

=SUM(IIF(Fields!OPTION_CODE.Value="M","0",Fields!COST.Value * Fields!TOTAL_UNITS.Value ))



=IIF(Fields!OPTION_CODE.Value="P","0",SUM(Fields!COST.Value * Fields!TOTAL_UNITS.Value ))



=SUM(IIF(Fields!OPTION_CODE.Value="M",CDbl(Fields!COST.Value * Fields!TOTAL_UNITS.Value), CDbl(0,0)



White Space coming when tablix row is spilling over to next page

$
0
0
I am having a SQL Report in which tablix is there. On exporting the report to Word, I found that there is White space between two tablix of the group if the row of one tablix is spilled over to next page. 

Reporting Services Schedules failure

$
0
0

Hi,

We are facing certain issue in reporting services. We were trying to change the timing of shared schedule and when hit the save button, it did not saved new timings but shown below error. Before changing the timings, schedule was working fine.  

An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help


There are two or more jobs named 'F9756B18-FEF6-4197-B790-172D908ABAAE'. Specify @job_id instead of @job_name to uniquely identify the job.

Now clicking on Manage shared schedule is also showing same error. We had faced same issue earlier once. ReportServer Database table Schedule is

showing single  schedule. Please help me to figure out the problem

Filter dates by using number of days in parameter

$
0
0

Hi,

I have dataset containing various salesdata which I would like to filter using the invoicedate in my dataset.

The user should be able to enter a number of days in a parameter - for example "30" and then the report should be filtered by using the number "30" to display only the salesdata that have a invoicedate older than 30 days

The data is based on a OLAP cube.

Any suggestions how to achieve this?

Tx 

Report Manager Error : Item has already been added. Key in dictionary: 'Read Properties' Key being added: 'Read Properties'

$
0
0

Using SSRS2012 with Forms Authentication.  I successfully login and ultimately land on

http://ssrs.foo.com/Reports/Pages/Folder.aspx

At this point I get the following error in ReportManager

Stack Trace:      

>mscorlib.dll!System.Collections.Hashtable.Insert(object key, object nvalue, bool add) Line 437C#
ReportingServicesWebUserInterface.DLL!Microsoft.ReportingServices.UI.BasePermissions.ReadPermissions(string[] permissions) Line 27C#
ReportingServicesWebUserInterface.DLL!Microsoft.ReportingServices.UI.Permissions.GetPermissions() Line 78C#
ReportingServicesWebUserInterface.DLL!Microsoft.ReportingServices.UI.Permissions.Permissions(string path) Line 50C#
ReportingServicesWebUserInterface.DLL!Microsoft.ReportingServices.UI.Permissions.CurrentUser(string itemPath) Line 67C#
ReportingServicesWebUserInterface.DLL!Microsoft.ReportingServices.UI.ReportingPage.RSUser.get() Line 319C#
ReportingServicesWebUserInterface.DLL!Microsoft.ReportingServices.UI.FolderPage.Page_Init(object sender, System.EventArgs e) Line 42C#

BasePermissions.ReadPermissions is blowing up when trying to add the "Read Properties" permission.

protected virtual void ReadPermissions(string[] permissions)
        {
            foreach (string str in permissions)
            {
                Global.TraceVerbose("Read Permission: " + str);
                this.m_perms.Add(str, true);  //ArgumentException - Item has already been added. Key in dictionary: 'Read Properties'  Key being added: 'Read Properties'
            }
        }

What might cause this error?  How do you troubleshoot?

thanks

SSRS Report Delivery Options

$
0
0

I would like to reset the default showings for the Report Delivery Options of SSRS. I'm sure the Admin would have to setup, but wanted to provide as much information as I could:

Please see my screen shot:

Thanks,


jer

How to pass series of dates (between startdate and enddate) to subreport, which takes only one date as parameter

$
0
0
Relatively new to Microsoft report services. I have created a report which takes a single parameter named 'SelectedDate'. This report runs fine (uses complex query of hours of the selected date and complex joins & aggregate calculations between SQL database tables). I created a new report with two parameters, namely, StartDate and EndDate. Also created a sql stored procedure which gives all dates between StartDate and EndDate. Added subreport to this report which calls my first report and defined 'SelectedDate' parameter to get the value as "=First(Fields!dt.Value, "DataSet1") - where dt is the resultset of procedure called in DataSet1. When I run this report, in the subreport, all I see is the report for 'StartDate' which is the passed value of the first parameter. I can't find a way to pass entire array of dates as parameter, to which user can browse forwards and backwards. Any idea? Thanks in advance for your help!

Graphs not rendering when reports deployed to Report Server

$
0
0

I'll make this short...

I have several reports that contain graphs that preview just fine in Visual Studio but when I run them via our report server they don't display anything.

Has anyone encountered this before? If so, how did you resolve it?

SSRS Report - Group Totals are Zero when Group Row Hidden

$
0
0

I have a report with one group called Counties. This group has a filter.

I added code to produce the totals for Prior, Current and DistinctCount:

Public Shared Dim grandTotal1 as Decimal = 0

Public Shared Dim CountyTotal1 as Decimal = 0

Public Function AddTotal1(ByVal b AS Decimal) AS Decimal

   grandTotal1 = grandTotal1 + b

    CountyTotal1 = CountyTotal1  + b

   return b

End Function

Public Function GetCountyTotal1()

   Dim ret as Decimal = CountyTotal1

   CountyTotal1 = 0

   return ret

End Function

Public Function GetGrandTotal1()

   Dim ret as Decimal = grandTotal1

   grandTotal1= 0

   return ret

End Function

Public Shared Dim grandTotal2 as Decimal = 0

Public Shared Dim CountyTotal2 as Decimal = 0

Public Function AddTotal2(ByVal b AS Decimal) AS Decimal

   grandTotal2 = grandTotal2 + b

    CountyTotal2 = CountyTotal2  + b

   return b

End Function

Public Function GetCountyTotal2()

   Dim ret as Decimal = CountyTotal2

   CountyTotal2 = 0

   return ret

End Function

Public Function GetGrandTotal2()

   Dim ret as Decimal = grandTotal2

   grandTotal2= 0

   return ret

End Function

Public Shared Dim grandTotal3 as Decimal = 0

Public Shared Dim CountyTotal3 as Decimal = 0

Public Function AddTotal3(ByVal b AS Decimal) AS Decimal

   grandTotal3 = grandTotal3 + b

    CountyTotal3 = CountyTotal3  + b

   return b

End Function

Public Function GetCountyTotal3()

   Dim ret as Decimal = CountyTotal3

   CountyTotal3 = 0

   return ret

End Function

When it runs, it gives me this:

This works fine. But now I need to hide the details on the counties. I just need the line with the 15, 32 and the 9.

I highlighted the group row, right clicked -> Row Visibility and changed it to Hide. But when I do this, my results are three zeros.

I am at a loss now on how to just show the totals. Does anyone have any suggestions for me to try?


cpemtp1

Call custom code variable in dataset

$
0
0

Can I set a datetime variable in custom code and then call it within a SSRS dataset? Kind of like so (but I'm not sure of the syntax for the custom code variable in the SQL statement):

SELECT field1, field2, field3

FROM Table1

WHERE field4 > @CustomCodeVariablehere and field4 < @CustomCodeVariablehere

SSRS Report Manager error "Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500"

$
0
0

Hi All,

I am getting error "Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500"

in one of my Test Environment when trying to run the SSRS 2012 report from report manager.

Any clue why it is happening.


Thanks Shiven:) If Answer is Helpful, Please Vote

regarding ssrs

$
0
0

Hi, I have a doubt ,In my SSRS report I have 1000 rows then how to export particular number of rows (ex 150 to 550)...?

<form action="https://www.facebook.com/ajax/questions/eigenpolls/add_option.php" class="focus_target child_was_focused" id="u_jsonp_2_1e" method="post" rel="async" style="margin:0px;padding:0px;"></form>
Viewing all 20764 articles
Browse latest View live


Latest Images