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

[BC30201] Expression expected.

$
0
0

Hi All,

I currently have a field that is calculated with the following code:

IIF(Sum(Fields!issued.Value)=0,0, Sum(IIF(IIF(ISNOTHING(Fields!hoursFromDToIssued.Value) = true,25,Fields!hoursFromDToIssued.Value) <= 24,1,0))) / IIF(Sum(Fields!issued.Value)=0,1,Sum(Fields!issued.Value))

Currently that works fine, and i have changed the formatting settings to 'Percentage' with a two point decimal mark.

However i would like the font to turn red if the value isn't above 90% (Target).

I put in the following code: 

=IIF(IIF(Sum(Fields!issued.Value)=0,0, Sum(IIF(IIF(ISNOTHING(Fields!hoursFromDToIssued.Value) = true,25,Fields!hoursFromDToIssued.Value) <= 24,1,0))) / IIF(Sum(Fields!issued.Value)=0,1,Sum(Fields!issued.Value)) < 90, "#e6eefc", "LightCoral")

But recieved the following error:  [BC30201] Expression expected.

Any suggestions? 

Kind Regards,

Plain_Clueless


Plain_Clueless



SQL Reporting for SCCM, sort by number?

Interactive sort on a text field having decimal numbers

$
0
0
I have the following text field in SSRS report:

Version
2.2.32.7
1.0.0.0
2.0.0.0
1.2.0.0
2.1.8.8
1.4.11.0   



I want to sort this field interactively.I have already sorted other fields, but as this field is text but has decimal data, its not sorting properly. How do I do this correctly?

Once sorted ascending, report should show

 
Version   
1.0.0.0   
1.2.0.0   
1.4.11.0   
2.0.0.0   
2.1.8.8   
2.2.32.7



Thank you in advance

Getting ERR_NAME_NOT_RESOLVED when open a link in SSRS 2005 report

$
0
0

Hello All,

Recently, one of my colleagues reported that when they open a report link from their emails, they cannot actually view the report and get the ERR_NAME_NOT_RESOLVED. Can anyone explain why as this happens? I am not sure, this is even a report issue/

Thanks,


How to improve performance of Reports

$
0
0

Hi Guys,

I have a report with one tablix and 6 charts (column,pie-may increase further). I use datasets for all these chart objects to load data for the reports. I only use 2 tables from which I get data from. One table has 252190 rows and this will increase monthly. I get the charts to load depending on user selection of a company. There are around 1000 companies.

Now the report takes a long time to load and I am not sure why this is. One of my table (with 252190 rows) does not have any primary keys defined. I cannot find any columns that will uniquely identify a row. Because this is a snapshot from a external vendor. I tried creating indexes recommended by the Databse Engine Tuning Advisior.

Is the charts on the report making it slow?

Any recommendations to make the response time faster?

Thanks

Lucki

How to write RowNumber for each row in Group

$
0
0

Hi Everybody.

I have got question because time is running but I still don't know how to do it.

So I have 1 group with 3 rows and I would like to put for each row not only group individual number like 1,2,3,4,5 ... etc untill end of report.  Generally using fuction RowNumber I got 1,2,3 and then 1,2,3 again.  

I will be grateful for your help.

Mar-kus




How to Export 2 Datasets to 2 Excel sheets in single report ssrs

$
0
0

Hello Techie, 

I have two different dataset in one Report,

Each Dataset result is binded to a different Table component

When I export as Excel ,I am getting all this in One Excel sheet

I need this in separate excel, as dataset1 in excel1 and dataset2 in excel2

May any one Please help me how to acheive this.

Thanks

Remove duplicates based on a specific column

$
0
0

I have some duplicate values for my query results, about 200 duplicates out of 30000 rows.  Of these 200 duplicates I want to keep the ones that have a higher value for... 'UpdatedBatchID'.  Not sure how to do this.  Thanks

SELECT

    IR.Id                            as 'ID'
  , CAST(IR.Priority as varchar)    as 'Priority'
  , IRSupportGroupDN.DisplayName    as 'Support Group'
  , DATEADD(MI,DATEDIFF(mi,GETUTCDATE(),GETDATE()),IR.CreatedDate)    as 'Created Date'
  , DATEADD(MI,DATEDIFF(mi,GETUTCDATE(),GETDATE()),IR.ResolvedDate)    as 'Resolved Date'
  , SLOConfig.DisplayName            as 'SLO'
  , DATEADD(MI,DATEDIFF(mi,GETUTCDATE(),GETDATE()),SLOFact.TargetEndDate)    as 'SLO Target'
  , SLOStatusDN.DisplayName            as 'SLO Status'
  , SLOMetric.DisplayName            as 'SLO Metric'
  , SLOFact.UpdatedBatchId            as 'UpdatedBatchID'

 

Combining Two Different datasource in single matrix

$
0
0

hi to all,

Happy evening .

i got struck up in critical situation, can any one help in this.

i  have to to combine two dataset in single matrix

my sample scenario in below attached for reference.

in this first matrix values from one server and second one is another one server.

how to connect these to for getting desired result of thrid matirx.

in this 1,2,3,4,5,6 is in column grouping

how to solve this in using LOOKUP or CUSTOM CODE

Thanks in advance.


GVRSPK VENI


Reporting Services Error after Interactive sorting and drill down in pps

$
0
0

Hi 

 

i have a report  that has a drill down option that shows all workgroups within a specific  parent group and an interactive sorting ass well on both columns  parent group &  workgroup 

This is displayed  in pps combined with a SharePoint

---the problem is that after sorting the parent group column by name   i then press the drill through icon  (+) next to it hopping to see all workgroups related to each parent group  - but instead 

i receive this Reporting Services Error  :

"

  • The value for parameter 'SortItem' is not specified. It is either missing from the function call, or it is set to null. (rsMissingParameter) Get Online Help       

"

    If I don't press the sorting and just drill through it works fine. the sorting itself also works fine. 

    any suggestions ?

     

    Report server not fully functional after migratng to new domain

    $
    0
    0

    Hi Friends,

    I had to migrate my report server (2008R2) to a new domain. I built new server and restored the old ReportServer and ReportServerTempDB into new server and also restored the certificate from old server. The Report Server is running but I don't have full access to all server futures anymore, looks like it's AD authentication messed up. My new account is Admin on new server but I can't see all options, like New Data Source, or wehn going on report level to manage to see all option such as Parameters, Subscriptions, Data Source ....

    Looks like I'm missing some kind of permission issue , any idea how to fix this ?

    Thanks in advance,

    Patrick


    Patrick Alexander

    SSRS Reporting on A SharePoint server

    $
    0
    0

    All...

    A bit confused and looking for assistance - New to SSRS, and thrust into an immediate task generation...

    I am accessing SSRS Report Wizard via a SharePoint connection.  The Shared DataSource has been created and is accessible via the Report Server connection.  I can successfully build the Dataset based on field selection, with all filtering being applied at the dataset level, and I can successfully generate the expected results under the Query Designer - however when I insert a 'new table' into the Report Page and use the Table Wizard to place the fields in Row / Column and Values segments of the Wizard and then subsequently close the Wizard and execute the Report the page returns with no generated results. 

    I've tried building a new report without the Wizard, simply inserting a Table and dragging the fields to the respective segments and still no results are generated...  this is a very simple query, any ideas that I can review?


    joemac

    Call C# from SSRS

    $
    0
    0

    I'm new to C#, so please excuse me if this is a stupid question.

    I need to call a C# script from an SSRS report, and can't figure out how to do it.  I've built a table-valued function in C# and deployed that to SQL Server, and can now embed that function in a stored procedure, so I can now have SSRS call the stored procedure which in turn executes the C# in the function.  Is that the only way to do it?  I have some C# code in a script that runs in an integration services project that I would like to execute from SSRS.  I can move this code inside the function, I suppose, but that seems like a hack.  Is there a more natural way to do it?

    Thanks for any assistance.

    Mike

    SSRS 2012 - Is it possible to remove the Tick Marks on the Horizontal Axis Legend

    $
    0
    0

    hi everyone, I have this report...

    Does anyone know if it's possible to remove the tick marks that I have circled in red?

    The chart has data Week by week over a year, and the T1, T2 etc are equivalent to Quarter1, Quarter 2 etc

    I've got a 3 level grouping, with the top level being Year, then Quarter, then Week. The label for the "Week" grouping is set to blank, and that's why you don't see it here.

    Removing the Tick marks would make the chart legend more readable in my opinion.

    If anyone knows how this might be done, please let me know.

    thanks in advance.
    David Jones

    Clause issue in SSRS report

    $
    0
    0

    Dear Folks,

    I have below query which is working fine in SQL but if i use same query in SSRS dataset then it is not working at all.If i put only one condition in where clause then it works but if i put multiple conditions then it does not works in SSRS and through error "data is not available".

    SELECT id,
    	DATEDIFF(DAY, Created, BMTRequestReviewDate) AS 'EvaluateDays',
    
    .....all code goes here
    
    FROM [dbo].[SBWT_Data]
    WHERE
    	upper(Status) not like '%XX%'
    	AND upper(Status) not like '%DELETED%'
    	upper(Status) not like '%CLOSED%'
    ---OR
    WHERE Status NOT IN ('90 - Closed','XX - Rejected','XX - Request Rejected','XX - Deleted')

    As you can see in code i have tried with both where conditions but it is not working. It seems that SSRS does not supports multiple conditions for same field.

    Appreciate your help


    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help


    Using OR statement in an expression

    $
    0
    0

    I have a scenario where I would like to use the 'OR' statement in SSRS expression.

    I have the following fields:

    GLnumber, ProgramControl, GLAmount & EscrowDepositAndWithdrawal.


    What I would like to do is as follow:

    If GLnumber is 12200.22162 then I would like to take EscrowDepositAndWithdrawal

    OR

    If ProgramControl is 'escrow' then I would like to take EscrowDepositAndWithdrawal

    OTHERWISE

    I would like my expression to take GLAmount

    My expression looks something like this:

    =IIf(Fields!GLNumber.Value = "12200.221620" OR Fields!ProgramControl.Value = "ESCROW",Fields!EscrowDepositAndWithdrawal.Value,Fields!GLAmount.Value)

    It appears only the first IF statement is true.  It does not appear that the OR statement never be true.

    I am not sure why the OR statement never satisfied. I know I have a record with ProgramControl = "ESCROW".

    Thank you in advance.

    SSRS 2008 - Row Visibility is not working correctly

    $
    0
    0

    VS 2008. I have the following set up.

    Group1, Group2, Group3 header, Group 3 detail rows

    When I set the row visibility (hide based on Group2) on the Detail row, it still shows up when the report is originally rendered.

    It should be: Group1 expanded, Group2 collapsed, Group3 header hidden and detail rows hidden

    It is showing: Group1 expanded, Group2 collapsed, Group3 header hidden, Group3 detail row visible.

    I never had this trouble in 2005. Is there something different about row visibility in 2008?

    Thanks!


    Linda

    Report renders correctly in Report Manager, fails when attempting to export to PDF, Excel or Word

    $
    0
    0

    I am running a single SSRS instance that is Reporting Services 2014 SP1 Enterprise Edition.  I have a report that renders correctly in report manager but when I attempt to export it to any non-text renderer I get an exception "Value does not fall within the expected range".

    Looking for troubleshooting ideas; the server hasn't received a patch/reboot in five days, the RDL hasn't been changed in 4 months and this report was working great until yesterday. 

    Here's the details from the ReportServerService log:

    reportrendering!ReportServer_0-19!1b10!06/22/2015-15:36:32:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: , Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: An error occurred during rendering of the report. ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: An error occurred during rendering of the report. ---> System.ArgumentException: Value does not fall within the expected range.
       at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
       at Microsoft.ReportingServices.Rendering.RichText.TextRun.ShapeAndPlace(Win32DCSafeHandle hdc, FontCache fontCache)
       at Microsoft.ReportingServices.Rendering.RichText.TextRun.GetWidth(Win32DCSafeHandle hdc, FontCache fontCache, Boolean isAtLineEnd)
       at Microsoft.ReportingServices.Rendering.RichText.LineBreaker.GetLine(Paragraph paragraph, TextLine line, Win32DCSafeHandle hdc, FontCache fontCache, FlowContext flowContext, Single left, Single right, Single height, Stack`1 lineRunsIndex, Stack`1 lineRunsCharIndex, Int32 lineIndents)
       at Microsoft.ReportingServices.Rendering.RichText.LineBreaker.FlowParagraph(Paragraph paragraph, Directions direction, Win32DCSafeHandle hdc, Single dpiX, FontCache fontCache, FlowContext flowContext, Boolean keepLines, SizeF flowContextSize, Int32& contentOffset)
       at Microsoft.ReportingServices.Rendering.RichText.LineBreaker.Flow(TextBox textBox, Win32DCSafeHandle hdc, Single dpiX, FontCache fontCache, FlowContext flowContext, Boolean keepLines, Single& height)
       at Microsoft.ReportingServices.Rendering.RichText.LineBreaker.Flow(TextBox textBox, Graphics g, FontCache fontCache, FlowContext flowContext, Boolean keepLines, Single& height)
       at Microsoft.ReportingServices.Rendering.RichText.TextBox.MeasureFullHeight(TextBox textBox, Graphics g, FontCache fontCache, FlowContext flowContext, Single& contentHeight)
       at Microsoft.ReportingServices.Rendering.HPBProcessing.PageContext.PageContextCommon.MeasureFullTextBoxHeight(TextBox textBox, FlowContext flowContext, Single& contentHeight)
       at Microsoft.ReportingServices.Rendering.HPBProcessing.TextBox.CalculateVerticalSize(PageContext pageContext)
       at Microsoft.ReportingServices.Rendering.HPBProcessing.TextBox.DetermineVerticalSize(PageContext pageContext, Double topInParentSystem, Double bottomInParentSystem, List`1 ancestors, Boolean& anyAncestorHasKT, Boolean hasUnpinnedAncestors)
       at Microsoft.ReportingServices.Rendering.HPBProcessing.PageItem.CalculateVertical(PageContext pageContext, Double topInParentSystem, Double bottomInParentSystem, PageItem[] siblings, List`1 ancestors, Boolean& anyAncestorHasKT, Boolean hasUnpinnedAncestors, Nullable`1 sourceWidth)
       at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.RowInfo.CalculateVerticalLastDetailCell(PageContext context, Boolean firstTouch, Boolean delayCalc)
       at Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateDetailCell(Tablix t
    library!ReportServer_0-19!1b10!06/22/2015-15:36:32:: i INFO: Skipped creating a dump file for the error UnhandledReportRenderingException, because a dump with the identical stack trace (with signature 3319779397) was already created.
    library!ReportServer_0-19!1b10!06/22/2015-15:36:32:: w WARN: Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: An error occurred during rendering of the report. ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: An error occurred during rendering of the report. ---> System.ArgumentException: Value does not fall within the expected range.
    webserver!ReportServer_0-19!1b10!06/22/2015-15:36:32:: e ERROR: Reporting Services error Microsoft.ReportingServices.Diagnostics.Utilities.RSException: An error occurred during rendering of the report. ---> Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: An error occurred during rendering of the report. ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: An error occurred during rendering of the report. ---> System.ArgumentException: Value does not fall within the expected range.
    ui!ReportManager_0-20!204c!06/22/2015-15:36:32:: i INFO: Unhandled exception: Microsoft.Reporting.WebForms.ReportServerException: An error occurred during rendering of the report. (rrRenderingError) ---> Microsoft.Reporting.WebForms.ReportServerException: An error occurred during rendering of the report. ---> Microsoft.Reporting.WebForms.ReportServerException: Value does not fall within the expected range.
       --- End of inner exception stack trace ---
       --- End of inner exception stack trace ---
       at Microsoft.Reporting.WebForms.SoapReportExecutionService.ServerUrlRequest(AbortState abortState, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WebForms.SoapReportExecutionService.Render(AbortState abortState, String reportPath, String executionId, String historyId, String format, XmlNodeList deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WebForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WebForms.ServerModeSession.RenderReport(String format, Boolean allowInternalRenderers, String deviceInfo, NameValueCollection additionalParams, Boolean cacheSecondaryStreamsForHtml, String& mimeType, String& fileExtension)
       at Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)
       at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Please help with the encoding issue for SSRS rendering in CSV

    $
    0
    0

    My system environment: win2008 R2 SP1 64bit + SQL 2005 SP4 32bit

    I amended the configuration file of rsreportserver.config with the below:

      <Extension Name="CSV" Type="Microsoft.ReportingServices.Rendering.CsvRenderer.CsvReport,Microsoft.ReportingServices.CsvRendering" >
      <Configuration>
      <DeviceInfo>
       <Encoding>UTF-8</Encoding>
      </DeviceInfo>
      </Configuration>
       </Extension>

    If I run the report and then click export by selecting the csv format, it looks ok with the encoding of UTF-8.

    However, the same report , when I created a subscription and saved it in the hard driver. Its encoding became USC-2 Little Endian.

    Any assistance is much appreciated.

    Select Top 20 Percent Software Installed - Query Result shows software that dont belong to top 20 percent

    $
    0
    0

    Hi,

    I am hoping to create a report using Report Builder 3.0 that will show the Top 20 percent of software installed on the company PC's where those PC's have SCCM Client installed. I used the Select top 20 percent query below but the result shows software that has a count of 1 (see screenshot below). Note that there are around 15,000 PC's i may be wrong on this but i would expect that those software with 1 count should not be included on the report? 

    Appreciate if anyone could guide me please as i may have used the wrong syntax? Thanks in advance.

    SELECT TOP 20 percent s.DisplayName0, s.Publisher0
    FROM v_Installed_Software_Categorized as s

    Viewing all 10045 articles
    Browse latest View live


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