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

SSRS Aggregate functions using lookup function

$
0
0

Hi,

We have created one report in which we need to display average/sum/max value for particular tags.

We are using lookup function as follows:

=Sum(LookUp(Fields!TagName.Value,Fields!TagsName2.Value,Fields!TagVal.Value,"IP21"))

=Avg(LookUp(Fields!TagName.Value,Fields!TagsName2.Value,Fields!TagVal.Value,"IP21"))

=Max(LookUp(Fields!TagName.Value,Fields!TagsName2.Value,Fields!TagVal.Value,"IP21"))

How can we use aggregate function within lookup function.

If we embed the above expressions in our data set then it shows us the actual value only but does not shows the average/sum/max value.

Please help!


Microsoft.ReportViewer.Webforms 14.0.0.0 has toolbar disabled

$
0
0

I have installed SQLServer.Types (version 14.0.314.76 from NuGet) followed by Microsoft.ReportingServices.ReportViewer.Webforms 14.0.0.0
(version: 140.802.134 NuGet) . 

I have followed all the steps (to add the control to a web page) and make sure web.config has the related entries for both ReportViewer.WebForms and ReportView.Common dlls, httphandlers, handlers etc. But, when I try to run (from Visual Studio 2015), it breaks at code line

  // Setup responsive toolbar layout
        var self = this;

        if ($) {
            window.$RSjQuery(window).on("resize", function () {
                self.ResizeToolbarIcons();
            });
        }

 in Microsoft.Reporting.WebFormsClient._Toolbar.prototype.ConnectEventHandlers() of Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=14.0.802.134&Name=ViewerScript[dynamic] and I noticed that the error is because 'window.$RSjQuery is undefined'. What could I be missing in my installations ? Could you please help?

Thank you

does ssrs 2016 have a go to section feature?

$
0
0

hi we run 2016 enterprise. We have a 5 part (each part is a matrix) report whose matrices are easy to manage when everything is in "collapse all" mode.

But when we hit the expand all button some of the less voluminous sections require navigation to page 2 and higher with the user really not knowing how far he/she will need to go.  Matrix 1 tends to be the most voluminous when expanded.  But it is also considered the most important.

Is there a feature or known pattern in ssrs where perhaps a button (like in pdf's) can be used to skip to a certain section.  We do also have a section selector for the time being where the user can select which sections show and which ones don't , so its possible the user hasn't really thought this thru yet anyway.

MSSR - Can a parameter default be 'show all'

$
0
0

I have a report with a filter for Country that is IN 

I would  like the Parameter @Country be Show All, instead of let's say US

Is that Possible?

Thank you,

Eva

File error: data may have been lost - when opening SSRS exported report to excel with barcode image

$
0
0

Hi,

I have a report where I have added code:

Public Function Convert(Text As String) As Byte()

           Dim b As System.Drawing.Bitmap

        '   Dim bar As New BarcodeLib.Barcode

           bar.Alignment = BarcodeLib.AlignmentPositions.LEFT

           bar.IncludeLabel = True

           bar.RotateFlipType = Drawing.RotateFlipType.RotateNoneFlipNone

           b = bar.Encode(BarcodeLib.TYPE.CODE128, Text, 400, 50)

           Dim bitmapData As Byte() = Nothing

           Using ms As New System.IO.MemoryStream()

               b.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp)

               bitmapData = ms.ToArray()

           End Using

           Return bitmapData

       End Function

references and a barcode image to a report and this function:

=Code.Convert(Fields!IC_LOT_NUMBER.Value)

This works great exporting to PDF or word, but when I export to excel I get the error File error: data may have been lost. The file opens, but the barcode is gone. I tried changing the MIME type to Jpeg, gif, etc, but still I get this error.

Does anyone have any idea why this doesn't work or if there is a workaround?

Thanks,

Trish


Trish Leppa


Calculated Field to Show Yes or No

$
0
0

Hello, 

I am using SQL Server Report Build 2012 and I am attempting to create an IF then statement(if there is a thing) that returns a value of yes or no based on dates. I am building a report for On time Delivery based on the customers required date and our actual shipped date. See below example and function I have attempted.

Data Needed: If the Required Ship Date is less than or equal to the actual ship date then YES otherwise No. 

i.e. Required Date is 1/1/18

      Actual Ship Date is 12/31/17

      On Time Result: YES

i.e. Required Date is 1/1/18

      Actual Ship Date is 1/31/18

      On Time Result: No

Here is my current argument:

=IIF(Fields!ACTLSHIP.Value<=Fields!ReqShipDate.Value , 'YES', 'No')

When I run the report I get the error: "The Value expression for the filed 'ONTIME' contains an error:[BC30201] Expression expected."

I gather this means I need something else in my function. What is it? Is there a better function that I can create? Can anyone help me?

 Kyana Brooks

mid-groups subtotal and grand total

$
0
0

All,

I have an SSRS Report that like this

Single group based on Unit of Measure(UOM), Min, Qty

there are two types of Unit of Measure lets say CM and IN

within CM (and only CM) there is a Min column

I need to subtotal within cm rows that don't have a min, rows that do have a min.  Then a separate total for each and then IN.

So..

UOM, Min, QTY

CM,,5

CM,,10

Subtotal 15 (no Min)

CM, 1, 5

CM, 1, 10

Subtotal (CM, min 1) 15

CM, 2, 5

CM 2, 5

Subtotal (CM, min 2) 10

Grand Total CM 35  (CM with no min(10) , cm with min 25)

IN,,5

IN,,5

SubTotal IN  10



Any help would be appreciated.

cant pass url parameters to ssrs report


ssrs 2012 show or hide parameter area

$
0
0

In an existing SSRS 2012 application, there is an up or down area that appears sometimes in the paramneter area of the SSRS report. When I hover over the up or down arrow, the tooltip calls this the 'show or hide parameter area'. I have the two parameters set to be visible that can be accessed by the user in this ssrs report. I do not know how to control this arrow.

The best link I can find from a google search is: http://msdn.microsoft.com/en-us/library/ms152835.aspx. However I do not know what part of link would apply to the show or hide parameter area arrow.

 Thus can you tell me and/or point me to a reference that tells me how to control when this arrow appears when the ssrs report is running? Can you tell me how to control this show or hide parameter area arrow in bids 2008 r2 or bids 2012 and in ssrs 2012?

Can deploy report locally but not run report the report on server/web ui

$
0
0

Hello and thank you in advance for the help. I have the following folders created (+reports) and can be accessed at the link below.

I am able to deploy my datasets, data sources, and reports from my local machine to the report server no problem with the following properties.

However, When navigating to the newly deploy report through the web, it does not run. I receive this error:

I believe it's a permissions issue but not sure where. When attempting to edit the report from the datasource in the web ui, I also receive the following error:

Is this an issue on the database side? If so, isn't granting anonymous access a bad practice? Any help would be greatly appreciated. Thanks!

Reports not being rendered properly from web farm

$
0
0

We have a web farm running on Microsoft's WebFarm Framwork where the reports are not rendered properly.  When we run from a standalone web server the reports are fine.  Is there a special configuration for them to run from the web farm?  I have included the outline of the infrastructure and links to the reports so you can see the results.

Web Farm 

Servers (1 gateway, 4 content)

  • OS - Windows Server 2012
  • IIS - Version 8

Configuration

  • Shared Content
  • Shared Config
  • Centralized SSL

SSRS Servers

  • OS - Windows Server 2012
  • SQL Server Reporting Services 2017

Url to test server: https://reports.efc-test.com/displayreport.aspx?id=C3ADC3B9C3B5C3B3C3A5C3B2C2BDC2B8C2B0C2B0C2B0C2B0C2B0C2B1C2B8C2ADC2B1C2B2C2B4C2B6C2B8C2B1C2B5C2B2C2B1C2B5C2A6C3A3C3B5C3B3C3B4C3AFC3ADC3A5C3B2C3A9C3A4C2BDC2B1C2B0C2B1C2B5C2A6C3B3C3A5C3ACC3A5C3A3C3B4C3A5C3A4C3B5C3B3C3A5C3B2C2BDC2A6C3B0C3A1C3B2C3ADC3B3C2BDC3B2C3B0C3B4C3A9C3A4C2A5C2B3C3A4C2B1C2A5C2B2C2B6C3A7C3B2C3AFC3B5C3B0C3A9C3A4C2A5C2B3C3A4C2ADC2B1C2A6C3B3C3B1C3ACC3B2C3A5C3B0C3AFC3B2C3B4C3B3C3ACC3AFC3A3C3A1C3B4C3A9C3AFC3AEC2BDC2A5C2B2C3A6C3A5C386C381C381C383C394C393C391C38CC392C3A5C3B0C3AFC3B2C3B4C3B3C2A5C2B2C3A6C2A6C3A4C3A9C3B3C3B0C3ACC3A1C3B9C3A4C3A1C3B4C3A5C3B3C2BDC2B8C2A5C2B2C3A6C2B2C2B0C2A5C2B2C3A6C2B2C2B0C2B1C2B8C2A5C2B7C3A3C2B9C2A5C2B2C3A6C2B1C2A5C2B2C3A6C2B2C2B0C2B1C2B8C2A6C3A5C3A6C3A4C3A2C3AEC3A1C3ADC3A5C2BDC2B1C2B0C2B1C2B5C39FC383C38FC38AC382C38EC38BC395C397C390C381C388C38AC386C39FC3A5C386C381C381C383C394

Url to web farm: https://efaactcentral.com/displayreport.aspx?id=C3ADC3B9C3B5C3B3C3A5C3B2C2BDC2B8C2B0C2B0C2B0C2B0C2B0C2B1C2B8C2ADC2B1C2B2C2B4C2B6C2B8C2B1C2B5C2B2C2B1C2B5C2A6C3A3C3B5C3B3C3B4C3AFC3ADC3A5C3B2C3A9C3A4C2BDC2B1C2B0C2B1C2B5C2A6C3B3C3A5C3ACC3A5C3A3C3B4C3A5C3A4C3B5C3B3C3A5C3B2C2BDC2A6C3B0C3A1C3B2C3ADC3B3C2BDC3B2C3B0C3B4C3A9C3A4C2A5C2B3C3A4C2B1C2A5C2B2C2B6C3A7C3B2C3AFC3B5C3B0C3A9C3A4C2A5C2B3C3A4C2ADC2B1C2A6C3B3C3B1C3ACC3B2C3A5C3B0C3AFC3B2C3B4C3B3C3ACC3AFC3A3C3A1C3B4C3A9C3AFC3AEC2BDC2A5C2B2C3A6C3A5C386C381C381C383C394C393C391C38CC392C3A5C3B0C3AFC3B2C3B4C3B3C2A5C2B2C3A6C2A6C3A4C3A9C3B3C3B0C3ACC3A1C3B9C3A4C3A1C3B4C3A5C3B3C2BDC2B8C2A5C2B2C3A6C2B2C2B0C2A5C2B2C3A6C2B2C2B0C2B1C2B8C2A5C2B7C3A3C2B9C2A5C2B2C3A6C2B1C2A5C2B2C3A6C2B2C2B0C2B1C2B8C2A6C3A5C3A6C3A4C3A2C3AEC3A1C3ADC3A5C2BDC2B1C2B0C2B1C2B5C39FC383C38FC38AC382C38EC38BC395C397C390C381C388C38AC386C39FC3A5C386C381C381C383C394

SSRS Macros

$
0
0

Hi,

I have macro enabled excel based report.I need to migrate it into SSRS.

How can we use the same macro code in SSRS.

Could you please brief me about it?

An example could me more helpful!

Please help!

Column for each month values

$
0
0

Hi everyone

I'm building report with values for each month on various items. My goal is to have values for all 12 months, even though there are no data for some months. For example. I have sales for first 9 months, and other three have NULL values. How can I always show 12 months? I was able to show for 9 months, but as a requirement, I need to show all of them.

Also, when I use matrix and group, I can't set name for different month, I got 01-2018 format. How it can be modified?

Regards,

Yerkhan

Count distinct error

$
0
0

Hello,

I have a SSRS report designed as below. The distinct count is working fine and the totals on the bottom of the report are adding correctly. However the Total column is not adding my distinct values correctly

Directorate    RepMth                             Total (NOT ADDING)
[Directorate]  [CountDistinct(Client.Value)]  [CountDistinct(Client.Value)] 
Total        [CountDistinct(Client)]        [CountDistinct(Client.Value)]

I looked online for a solutions and tried the following

=Sum(CountDistinct(Fields!Client.Value,"OD_Data"))

i then got the error: The Value expression for the text box ‘Textbox129’ specifies a scope that is not valid for a nested aggregate.  The scope must be the same name of the scope specified by the outer aggregate or the name of a group or data region that is contained in the scope specified by the outer aggregate.

Is there a solution to solve this problem? Thanks


SSRS Dynamic Year Parameters

$
0
0

Hi,

We need to pass year as a parameter in static date;

Example:09-JUL-"18" 07:00:00.0

We need to pass 18 i.e year dynamically to the query.

Required Output:

="SELECT  NAME WIDTH 100,IP_TREND_VALUE,IP_TREND_TIME,IP_ENG_UNITS FROM IP_ANALOGDEF WHERE NAME IN  ('" + Join(Parameters!TAGS.Value, "','") + "') AND IP_TREND_TIME='09-JUL-18 06:56:00.0'"

Current Output:

="SELECT  NAME WIDTH 100,IP_TREND_VALUE,IP_TREND_TIME,IP_ENG_UNITS FROM IP_ANALOGDEF WHERE NAME IN  ('" + Join(Parameters!TAGS.Value, "','") + "') AND IP_TREND_TIME='( "09-JUL-"+Parameters!Year.Value+"06:56:00.0")'"

It should dynamically take year which ever user will enter in the report parameter.

You can also refer the below snapshot indicating error :

Please help!



error while loading microsoft.sqlserver.management.reports

$
0
0

Good morning.

All my jobs are running, but one job failed. (SSIS)

When I tried to go into the reports to see why the job fail (on the SSIS  catalog, in the project folder), I got the following error.

error while loading microsoft.sqlserver.management.reports

how do i fix it?

thanks

astrid

PAGE NUMBERS ARE IN DATASET ITSELF!

$
0
0

I have multiple stored procedures, and thus data sets, that return data from the database that includes the page number the data is to be displayed on.  I cannot figure out how to use this information to build a report that will page based on these numbers.  Ideally I would like to have text boxes (and other controls)  that display data from the data set filtered by "Globals!PageNumber = MyDatasetPageNumber. - or something like that.  Here's a  simplified example of  2 of my data sets:

dataset_Header:

PAGE     CUSTOMER

1           Customer 1

2           Customer 2

3           Customer 3

dataset_Details:

PAGE     ITEMS

1           Item 1

1           Item 2

1           Item 3

2           Item 1a

2           Item 2b

3           Item 1z

It would seem that since the database already has the page number included in the data that displaying it on the appropriate page would be a breeze, but it's not.  Any thoughts?  Keep in mind, the header data contains more than just the one field and the report needs to display the data in various locations (i.e.e text boxes, not a table or matrix).  Thanks.


Pat Reddy

SSRS 2016 web page missing elements/page layout problem

$
0
0

On branding Tab under Site settings buttons like Download, Remove and Upload brand package are missing. I just see the Currently installed brand package and text box with None in it.

Also on the Home page some icons are missing.

SSRS version is Enterprise 13.0.4528.0

Do I need to somehow upload manually a layout package?

MSSR - How to pass a literal parameter to another report.

$
0
0

I am drilling from one report to another.

I am passing various parameters, but I also want to pass a literal, is that possible?

Imagine I have two Total Fields for two types of classes Math and English.

On each of those totals I want to drill to another report with all the parameters in the picture plus another one for the class type, where I can just pass the literal of 'Math'  is that possible?

Thank you!!

Eva

How to give user defined url to SSRS instead of default

$
0
0

Dear,

I am trying to give a user defined url for ssrs reports.

like http://abc.com/reports instead of http://servername/reports. 

Added host entry in the drivers/etc file and url is resolving to the server ip

added this url in report url selecting hostname and providing the (url) abc.com.

After doing this, when try to access the url, keep on asking the credentials even after entering the correct credentials.

Br,

Shams

Viewing all 28687 articles
Browse latest View live


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