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

Query Works in Query Designer - Doesn't Work in Report

$
0
0

I have a report that runs just fine in the Query Designer, but for some reason does not run when I run the actual report. Here is the query in question:

SELECT

    {[Measures].[Employee Hours]} ON COLUMNS
 ,NON EMPTY
    {
        [Employee].[Employee Full Name].[Employee Full Name].ALLMEMBERS*
        [Employee].[Employee Discipline].[Employee Discipline].ALLMEMBERS*
        [Employee].[Employee Department].[Employee Department].ALLMEMBERS*
        [Employee Hours Time Category].[Utilization Category].[Utilization Category].ALLMEMBERS*
        [Employee Hours Time Category].[Time Category].[Time Category].ALLMEMBERS*
        [Project].[Client].[Client].ALLMEMBERS*
        [Time].[Year].[Year].ALLMEMBERS*
        [Time].[Month].[Month].ALLMEMBERS*
        [Time].[Formatted Week].[Formatted Week].ALLMEMBERS
    }
  DIMENSION PROPERTIES
    MEMBER_CAPTION
   ,MEMBER_UNIQUE_NAME
   ON ROWS
FROM
(
  SELECT
     LastPeriods (7, StrToMember
    (@SelectedWeek
     ,CONSTRAINED
    )) ON COLUMNS
  FROM
  (
    SELECT
      StrToSet
      (@Department
       ,CONSTRAINED
      ) ON COLUMNS
    FROM
    (
      SELECT
        StrToSet
        (@Disciplines
         ,CONSTRAINED
        ) ON COLUMNS
        FROM [OLSON BI]
      )
    )
  )
CELL PROPERTIES
  VALUE
 ,BACK_COLOR
 ,FORE_COLOR
 ,FORMATTED_VALUE
 ,FORMAT_STRING
 ,FONT_NAME
 ,FONT_SIZE
 ,FONT_FLAGS;

The result set is below:

When I try to run the actual report, I get an error on the parameter being passed in. I'm passing in a date that is formatted as a varchar as you can see from the screen shot below:

Not sure what's going on here, but any insight would be appreciated!

Thank you!


A. M. Robinson


Count/Datediff function

$
0
0

I am trying to get the count of documents that were signed within 24 hours. 

I've tried many combinations, this is my current expression:

=Count(DateDiff("h",Fields!ID.Value,Fields!CONTB_TIME.Value) <=24)

ID = the date and time the document was started

CONT_TIME.VALUE = the date and time the document was signed

This expression keeps returing True and False or the wrong numbers.  I have checked the query, it is correct.

SSRS SUM IIF wrong total

$
0
0

Hi all,

For some reason the total on my expression is giving the wrong result and I can't figure out why.  Please see img. below. I am trying to get the correct figure where it is highlighted in red.  This total should be around 18000.  My gross weight total expression is

=SUM(Fields!qty.Value * (Fields!NetWeight.Value + Fields!TaraWeight.Value)) + RunningValue(IIF(Fields!palletTypeId.Value = "Pallecon", Fields!PalleconWeightKg.Value, (Fields!BluePalletWeightKg.Value + Fields!PackagingWeightKg.Value)), SUM, "Group1") 

which should equal around 18000 as stated above (if you add all the lines up).  However the total I'm getting is23323.21805 which is way over what I would be expecting.  I narrowed the issue down to part of my expression which is

IIF(Fields!palletTypeId.Value = "Pallecon", Fields!PalleconWeightKg.Value, (Fields!BluePalletWeightKg.Value + Fields!PackagingWeightKg.Value)).  At line level this gives 33kg which is correct.  However the SUM of this in total box

SUM(IIF(Fields!palletTypeId.Value = "Pallecon", Fields!PalleconWeightKg.Value, (Fields!BluePalletWeightKg.Value + Fields!PackagingWeightKg.Value)))

gives 6336 which is totally incorrect.  It should be 33 * 32 lines which is 1056.  Why is the SUM failing to provide the correct result? 


Cannot implment security setting on the report level - SSRS 2012

$
0
0

Hi All:

I am having a weird problem on my SSRS 2012 reporting portal, I cannot click any of the drop down list like the example below. Is there anything from the setting?

It is not only about the reporting level, any arrow on the reporting server, like data source, are kind of dead as well.

Please kindly help and thanks in advance.

Cheers

Johnny

Can able to remove "Select All" in parameter since passing this value from main report doesnt make work the sub -report.

$
0
0
I have a multi-value parameter for the query in the sub report. It displays "Select All" & "All" and other values. when I choose "Select All" or "All" as a value in sub report it works fine. In the main report If I pass "Select All" as value to this sub -report parameter it says Parameters were not specified for the sub report and report is not displayed. But If I select just All , then it correctly passes the value and the subreport works fine. I checked the expression value on both selections, both returns the same value [Work Item].[System_AssignedTo].All. But why the sub-report behaves differently? I think there is no option to remove "Select All" option also. 

Display diagonal table header with text in SSRS 2012

$
0
0

Hi,

I'm trying to draw a diagonal cell in table header. 

I followed this topic http://social.msdn.microsoft.com/forums/en-us/sqlreportingservices/thread/C9095C79-0268-405F-968F-4A0683712BA4, drag a rectangle into header cell, then draw a diagonal line in the rectangle.

In Design view it succeeded to see the diagonal line in the header, but when I run the report the line gone.

Anyone know why the line disappear?

Or any workaround?

Thanks,

Thanh

UPDATE: 

I found the reason. In the previous table, I place a text box on the diagonal cell and this make the line disappear. 

Do you know how to place a text box in front of the line without making it disappear ?


Report Server Windows Service

$
0
0

Hi everyone,

 

I am not able to access my report server. Here is the message i get when i try to configure it.

System.InvalidOperationException: Cannot start service ReportServer on computer 'Machine-9JP5R91'. ---> System.ComponentModel.Win32Exception: The service did not start due to a logon failure
   --- End of inner exception stack trace ---
   at System.ServiceProcess.ServiceController.Start(String[] args)
   at System.ServiceProcess.ServiceController.Start()
   at ReportServicesConfigUI.Panels.ServerInformationPanel.StartStopServiceTask(Boolean start)

 

It says  log on failure but i dont know how to change the settings...

Please let me know....

 

Thanks!!

SqlNew

Expression Issue

$
0
0

Hi guys,

I am having an issue where I have one column in a table, which I wish to switch between fields dependant on what parameter group is selected. I.e. if group is 'App Support" then use fieldA if group is 'Infrastructure' then use FieldB.

I have tried to create an expression which always returns FieldB, even when only 'Application Support' is selected from the parameter list.

The functionality desired is below:

@group in ('Application Supprt')

Column to use FieldA

@group in ('infrastructure')

Column to use FieldB

@group in ('infrstructure', 'Application Support')

Column to use FieldB

I have tried many different expression variations including:

=IIF(InScope(Parameters!group.Value("Application Support")),Fields!No_Of_Incidents.Value,Fields!Num_Of_Incidents.Value)

or

=IIF(InScope(Fields!Assignment_Group.Value="Application Support"),Fields!No_Of_Incidents.Value,Fields!No_Of_Incidents2.Value)

I have also used the IIF statement exclusively to no avail such as

=IIF(Parameters!group.Value("Application Support"), Fields!No_Of_Incidents.Value,Fields!Num_Of_Incidents.Value)

but regardless of what @group parameter I select FieldB is always populated.

Any advice of how to switc the field would be greatly appreciated.

Query attached ("No. Of Incidents" is FieldA, "Num OF Incidents" is FieldB:

select top 6 (ap.description),

p.number,

p.short_description,

sum(case when i.incident_state =8 then 1 else 0 end) [No. Of Incidents],

sum(case when i.incident_state<>8 then 1 else 0 end) [Num Of Incidents],

s.name [Assignment Group]

From Incidents i  (nolock)

                inner join problem p (nolock)

                                on p.sys_id=i.parent

                left join app_services ap (nolock)

                                on p.ServiceID=ap.ServiceID

                inner join sys_user_group s (nolock)

                                on s.sys_id = i.assignment_group

where s.name in (@group)

and p.problem_state not in (5)

group by ap.description,

p.number,

p.short_description,

s.name

order by sum(case when i.incident_state =8 then 1 else 0 end) desc, sum(case when i.incident_state<>8 then 1 else 0 end) desc


Partially Bold Text in SSRS 2005 using Expression ?

$
0
0

Hi,

I am using SSRS 2005.

I have one requirment. I need to Partially Bold some part of Text in column.

Below is the Example.

Name < - -- Column in SSRS 2005 Report.

This column contains combination of Last Name and First Name. All Database record contains Last name , while in some record our requirment is to append First Name with that.

That is i aleady handled using Nested IIF Expression.

Now, i want to display appended First Name in normal while all Last Name whihc is Database Field in BOLD Font.

How is it possible ?

 

ssrs 2008: csv export keeps putting quote qualifier around my fields

$
0
0

intended output of csv and how it appears in report preview:

"abc","123"

actual output of csv:

""abc"",""123""

csv render settings used:

<Extension Name="CSVNOHEADERNOQUALIFER" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering"><OverrideNames><Name Language="en-US">CSV NO HEADER (comma del)</Name></OverrideNames><Configuration><DeviceInfo><NoHeader>true</NoHeader><FieldDelimiter>,</FieldDelimiter><ExcelMode>False</ExcelMode><Qualifier></Qualifier><Encoding>ASCII</Encoding></DeviceInfo></Configuration></Extension>

My understanding is the qualifier should only be triggered if a field delimiter is present in a field.  But this is not the case.  How do I use double quotes  around my fields without the csv export wrapping it in another set of double quotes?

thanks




Possible to show a single point, e.g orderdate in a Databar?

$
0
0

Hi guys.

I am toying around with a

horizontal Databar. It seems intent on "filling up" to the point I use in value (a date).

I have formatted the horizontal max and min to be dates. I can also get the Databar to display a Diamond matching the "orderdate" I used for values. But somehow, it fills the rest from "0" to that date with a solid bar.

- is it not possible to make a Databar display a single point??? I just want to show the diamond in this screenshot, not the blue bar.

report not opening in windows 8

$
0
0

hello all,

on some machines report not opening after windows 8 installed can anyone had this issue .

Please help..


Dilip Patil..

Missing text in Text box

$
0
0

Hello,

please, I have a strange error in text box located in heading of Report. Namely, while in Report Builder Report Preview, everything is correctly presented but, if I click Page Layout button, suddenly text is missing? The same error is if Report is exported to .PDF file!

Like curiosity, there is one more text box in the same location (Heading) that is behaving correctly!

I can not notice any differences among them while looking into properties....

Any idea how to investigate ?

Thanks for any advice...

How to filter a sharepoint list with report parameters

$
0
0

Hello there,

I'm trying to make a sql report on a sharepoint library. I have no problems to connect to the library but i cannot find a way to filter my data source with report parameters. I've searched on the net a lot, found some stuffs about xml but nothing that shows how to do it with sharepoint. Any help would be greatly appreciated!

Thanks in advance!

Unable to pass parameters from Data Set

$
0
0

Hi,

The Views reside on the Composite Information Server and I use ODBC to fire the DSN. I created three parameters and when I try to reference them in the Shared Data Set  as (Select 1,2,3 from View 1 where Region=@Area and Dated between @startdate and @enddate) it throws an error:

TITLE: Microsoft SQL Server Report Designer
------------------------------

An error occurred while executing the query.
ERROR [HY000] Unable to parse query text:  unexpected char: '@'.  On line 4, column 11.  [parser-2904201]
Cause: unexpected char: '@'

------------------------------
ADDITIONAL INFORMATION:

ERROR [HY000] Unable to parse query text:  unexpected char: '@'.  On line 4, column 11.  [parser-2904201]
Cause: unexpected char: '@' (Composite Software 6.2.6 ODBC Driver)
------------------------------

Please help.   


SSRS interview questions

$
0
0

Hi,

First time I was called for an interview for a SSRS and SQL position (I have experience with both learned SSRS from previous jobs). The interview is short -about 45 minutes. I am nervous and want to prepare. What could they possibly ask to test my knowledge in such an interview?

Thanks

Parameter contains '&' character

$
0
0

Hi,

I am passing parameter through URL for SSRS report viewer. My parameter value contains '&' character like "P&B Ltd". It is showing below error :

  • The path of the item '..//' is not valid. The full path must be less than 260 characters long; other restrictions apply. If the report server is in native mode, the path must start with slash. (rsInvalidItemPath)

Please help.


Sachin Bhosale

how to resolve deadlock in ssrs subscriptions

$
0
0

Hi ,

i have a subscription which is sending emails to my multiple clients ..

subscription runs fine when there are only two recepients and gets errored as i list 3rd recepient inTo  field.

i found that 

, it is deadlock issue 

and when i create trace in SQL profiler on my server database and select deadlock graph event 

and it is caught ..

have a look on image ..

but i dont understand how to resolves issue using this ...

can anyone narrate this graph to identifiy ..


Dilip Patil..

rsServerConfigurationError when running subscriptions

$
0
0

Can someone please guide me, how to fix this issue : the subscriptions are no longer running and im getting rsServerConfigurationError in ExecutionLogStorage . Report name in logs"New ECP accounts  for ABC".

1. rsreportserver.config was not touched manually

2. I ve restarted Report server, IIS and SMTP but it did not help. What else should I check to resolve this error?

3. Subscription will work if I uncheck "Include Report" and check "Include Link"

LOGS:

library!WindowsService_0!2378!06/04/2014-10:00:09:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
notification!WindowsService_0!2378!06/04/2014-10:00:09:: i INFO: Handling subscription 2ca6550e-409f-4072-8cc9-fbca71577882 to reportNew ECP accounts  for ABC, owner: companydomail\reportuser, delivery extension: Report Server Email.
library!WindowsService_0!2378!06/04/2014-10:00:09:: i INFO: RenderForNewSession('/Reports/Marketing/New ECP accounts  for ABC')
library!WindowsService_0!2378!06/04/2014-10:00:09:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:AuthzInitializeContextFromSid: Win32 error: 110, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
library!WindowsService_0!2378!06/04/2014-10:00:09:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
emailextension!WindowsService_0!2378!06/04/2014-10:00:09:: e ERROR: Error sending email. Exception:Microsoft.ReportingServices.Diagnostics.Utilities.RSException: The report server has encountered a configuration error.  ---> Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.
notification!WindowsService_0!2378!06/04/2014-10:00:09:: i INFO: Notification 8c70c073-1586-4190-b93b-a8bb2129c87c completed.  Success: True, Status: Failure sending mail: The report server has encountered a configuration error. Mail will not be resent., DeliveryExtension: Report Server Email, Report: New ECP accounts  for ABC, Attempt 0




how to create the attached Bar Graph in SSRS

$
0
0

Hi 

I have the below query for my graph, but I was not able to get it in SSRS, though I am able to draw it in Excel

Select 334.077 AS TM60, 19.5384  AS TM40, 19.5384 AS TM40, 101.119 AS TM20, -40.3599 AS TM15,-72.0992 AS TM10,-21.5818 AS TM5,-10.2583 AS TM3,-18.3929 AS TM1,0 AS T0 ,'Median BUY' AS CalcType UNION
Select -1023.68 AS TM60, -1051.01  AS TM40, -1051.01 AS TM40, -881.481 AS TM20, -796.789 AS TM15,-689.613 AS TM10,-757.145 AS TM5,-674.026 AS TM3,58.2865 AS TM1,0 AS T0 ,'Median SELL' AS CalcType UNION
Select 846.886 AS TM60, 449.099  AS TM40, 449.099 AS TM40, 89.0941 AS TM20, 4.0854 AS TM15,23.6412 AS TM10,61.0626 AS TM5,50.793 AS TM3,27.7833 AS TM1,0 AS T0 ,'Mean BUY' AS CalcType UNION
Select -464.195 AS TM60, -476.59  AS TM40, -476.59 AS TM40, -399.714 AS TM20, -361.31 AS TM15,-312.71 AS TM10,-343.333 AS TM5,-305.642 AS TM3,26.4304 AS TM1,0 AS T0 ,'Mean SELL' AS CalcType

Here is my excel graph which I would need it in SSRS, please help me in getting this graph :

in SSRS, I wanted to which column to take in Category Groups, Series Groups???


Sanjay

Viewing all 10045 articles
Browse latest View live


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