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

TFS SSRS bug age report

$
0
0

Hello,

I want to create pie chart report which will display bug counts according to their age i.e. within last month, 1-3 month old and 3+ month ago.

I have got dataset (TFS2010Olap as data source) which is displaying 2 columns, System_CreatedDate and WorkItem_count. I want to create group expression at chart level so it categories source data and display on chart accordingly.

I am using this expression in categoryGroup of pie chart:

=iif(CDate(Fields!System_CreatedDate.Value) > DateAdd("m", -1, now), "Within Previous Month", iif(CDate(Fields!System_CreatedDate.Value) > DateAdd("m", -3, now), "1-3 Months Old", "3+ Months Old"))

but I am getting error: Conversion from string "22/01/2012" to type "Date" is not valid. I tried to do with function"DateDiff" but getting same error. Please let me know what I am missing or wrong in the expression? I had a look at MSDN post with title "SSRS Report to calculate Bug Age" but getting this date conversion problem.

I tried to format date as well but getting format error again:

=iif(cdate(format((Fields!System_CreatedDate.Value),"dd/MM/yyyy")) > format(DateAdd("m", -1, now),"dd/MM/yyyy"), "Within Previous Month",
iif(cdate(format((Fields!System_CreatedDate.Value),"dd/MM/yyyy")) > format(DateAdd("m", -3, now),"dd/MM/yyyy"), "1-3 Months Old", "3+ Months Old")) 



Union All with Linked Servers - Works until loaded on to the report server then fails.

$
0
0

Hi,

On our production server I have 2 linked servers.  One that leads to ServiceNow via ODBC and one that leads to an HP Openview database.

Testing these linked servers works fine.  I have a query that obtains info from each source and 'union all' together.  When i run this query in SQL Server management studio it works fine and I get info from both data sources union-ed together perfectly.

I transfer this into Visual Studio and create a report, which again runs perfectly.

I upload this report to the report server and try to run it and get the error: 

  • An error has occurred during report processing. (rsProcessingAborted)
    • Query execution failed for dataset 'Dataset1'. (rsErrorExecutingCommand)
      • For more information about this error navigate to the report server on the local server machine, or enable remote errors

When I rummage through the log files for the report server, I find very little helpful errors, basically this:

ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'Dataset1'. ---> System.Data.SqlClient.SqlException: Cannot execute the query.

I did a test where I created a copy of the report and ran only he Servicenow  section of the report and it works, then ran only the HP section of the report and it works.  It seems the UNION ALL is the problem somehow. 

Anyone have any ideas??

Thanks

Kirsty

How to calculate WTD , MTD and YTD using SSRS

$
0
0

I have the below SQL Query and I want to Calculate the WTD, MTD and YTD sales figure using this and only group by the store codes -

                                                                                                                                                                                       

declare @DateFrom datetime , @dateTo datetime

set @datefrom = getdate()-6
set @dateto= getdate() 




select
st.store_code as Store,
p.product_code as Product,
PN.short_name as [Product Description],
c.description as Waist,
s.description as [Size(Length)],
rt.TRANSDATE as [Transaction Date],
rt.TRANSNUM as [Transaction number],
rt.operator_id as [Sales Associate ID#],
sta.name as [Sales Associate name],
dtp.QTY,
((dtp.qty*dtp.Price_Sold)+isnull(dtp.Tax_Amount1,0)+ISNULL(dtp.Tax_Amount2,0)) as [Price_Sold],
service.description as [Service Applied],
dts.PRICE_NET as [Service Amount],
@Datefrom as From_Date,
@DateTo as to_Date,

"YTD" = ?,
"MTD"=?,
"WTD"=? 

from RETAIL_TRANSACTION (nolock) rt  
inner join dt_product (nolock) dtp      on rt.store_code_id = dtp.store_code_id
                                           and rt.transtype = dtp.transtype
                                           and rt.transnum = dtp.transnum
                                           and rt.cais = dtp.cais




inner join retail_line (nolock) rl      on rl.store_code_id=dtp.store_code_id
                                        and rl.transnum=dtp.transnum
                                        and rl.transtype=dtp.transtype
                                        and rl.cais=dtp.cais
                                        and rl.line_id=dtp.line_id



Left outer join dt_service (nolock) dts      on dts.store_code_id=rl.store_code_id
                                           and dts.transtype=rl.transtype
                                           and dts.transnum=rl.transnum
                                           and dts.cais=rl.cais  


 inner join service (nolock)            on service.service_id=dts.service_id                           
 inner join store (nolock) st              on rt.store_code_id = st.store_code_id




 inner join staff (nolock) sta            on rt.operator_ID = sta.staff_id

inner join sku_conversion (nolock) sc    on  dtp.product_id = sc.product_id
                                           and dtp.size_id = sc.size_id
                                           and dtp.color_id = sc.color_id



inner join Product(nolock) P            on P.product_id=dtp.product_id
inner join Product_name(nolock) PN      on PN.product_id=P.product_id
inner join color(nolock) C              on C.color_id=dtp.color_id
inner join size(nolock) s               on s.size_id=dtp.size_id 

where dts.service_id in ('1000045','1000044')

and rt.TS_ID between @Datefrom and @Dateto

-- I dont want to Group by all the fields in the select statement , only group by Transdate and store. how to achieve this using SSRS Reporting . Please give me some idea..

Multiple parameters with CASE statement in the WHERE clause - I appreciate any help.

$
0
0

Hi all,

I am trying to query a parameter in SSRS report by validating three parameters, if the user select a date for Date1 and ignores Date2 and Date3 the result should filter based on Date1 only, and if the user select Date2 and ignore Date1 and Date3 the result should filter based on Date2 ...etc. The SQL data source provider is Microsoft DB2 OLE DB.

When I try test the below CASE statement I get an error message:

SELECT
 TAB1.DATE1
,TAB1.DATE2
,TAB1.DATE3
FROM
	TABLE1.TAB1 TAB1,
WHERE
(CASE
WHEN TAB1.DATE1 IS NULL AND TAB1.DATE2 IS NULL THEN TAB1.DATE3 = ?
WHEN TAB1.DATE1 IS NULL AND TAB1.DATE3 IS NULL THEN TAB1.DATE2 = ?
WHEN TAB1.DATE2 IS NULL AND TAB1.DATE3 IS NULL THEN TAB1.DATE1 = ?
WHEN TAB1.DATE1 IS NOT NULL AND TAB1.DATE2 IS NOT NULL TAB1.DATE3 IS NOT NULL THEN TAB1.DATE1 = ? AND TAB1.DATE2 = ? AND TAB1.DATE3 = ?
ELSE NULL
END)

Error Message:

TITLE: Microsoft SQL Server Report Builder
------------------------------

An error occurred while executing the query.
Token =?END was not valid. Valid tokens: *N. SQLSTATE: 42601, SQLCODE: -104

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

Token =?END was not valid. Valid tokens: *N. SQLSTATE: 42601, SQLCODE: -104 (Microsoft DB2 OLE DB Provider)

------------------------------
BUTTONS:

OK
------------------------------

Note sure what I am doing wrong.

I appreciate any help on this issue.

Thanks in advance

SSRS 2008 - create the interval values in y-axis dynamically

$
0
0

Hi All - 

I have a report which has number values in y-axis and date in x-axis. This is a clustered column chart, the problem is for a particular date if one of my value is very huge say (in Thousands, Ex: 10000) and another is small (Ex: 120). In this case my small value bar is hardly visible.

Hence in this case, I was looking around for an option like below, the y-axis interval needs to change dynamically based on value (i.e) until a threshold value the interval should be fixed say incremented by 120, once it reaches a threshold (Ex: 360) it should be auto (i.e) if the max value for that date is 3800 after 360 the interval needs to be in thousands or more based on the need.

So based on the above explanation i would want the values like below for my y-axis -> 120, 240, 360, 2000, 4000.

Please let me know in if this is possible

Reporting services in three tier SharePoint 2013 environment

$
0
0

Hi,

I am trying to integrate SQL Server 2012SP1 Reporting Services in a three tier SharePoint 2013 environment, but it seems it is not succesful.

The setup is as following:

SRV1: SQL Server with content, config,... and the Reporting Service databases.

SRV2: SharePoint 2013 Application server & Central Administration

SRV3: SharePoint Web Front with SharePoint sites

All application pools are started with domain accounts on SRV2 & 3

When opening the Central Administration site, the Reporting Services Service Application and its Proxy is created and configured. On SRV2 the Application exists in the application pool in IIS, but it does not appear in the SRV3. Should it be created manualluy?

In Central Administration, when opening the site settings the Reporting Services section is created, but when opening the Site Settings for the root site the section shows variables:

$Resources:ReportServerResources,ReportServerSiteSettingsGroupTitle;
$Resources:ReportServerResources,ScheduleList;
$Resources:ReportServerResources,SiteLevelSettings;
$Resources:ReportServerResources,ManageSiteDataAlerts;

I believe i need some help here.

Thanks in advance.

Best regards,

J

SSDT-BI Error installing Microsoft Visual Studio 2012 Shell

$
0
0
I'm trying to install SSDT-BI for SQL SERVER 2014.The error came up as VS Shell installation has failed with exit code -2147205120. Error code: 0x80044000. Anybody met the same problem? Please help me out.

SSRS subscription creating duplicate job

$
0
0
We have this sporadic problem where when we go in to save an edit on a SSRS report subscription, it gives us a duplicate job number error.  When I look at the Jobs in the Agent, there are duplicates, so I need to manually delete both duplicate jobs, then the subscription save will work.  If we delete just 1 of the jobs, the issue seems to clear for a while, but then reoccurs.  This has happened to us on multiple reports, but not consistently.  The subscriptions look fine.  Has anyone else run into this?  Any ideas what is causing this to happen?

Delete Reports from Reporting Server

$
0
0

Hi,

We have created and scheduled some test reports via Idera performance tool but we are unable to delete the reports. These are not custom reports and reports created with Schedule Email option in Idera. Unfortunately, I dera does not have any option to delete these reports and support is asking me if I tried this by deleting from SQL Server Reporting Services.

I looked at the Reporting services but can't find any place to delete these reports. This link does not help me because I don't have these (Or Report Manager)----> Configuration Manager console, navigate toSystem Center Configuration Manager / Site Database /Computer Management / Reporting / Reporting Services

https://technet.microsoft.com/en-us/library/cc678417.aspx

All I have is "Reporting Services Configuration Manager" under "Configuration Tools". How can I delete these reports from SQL Server Reporting services ?. Can I delete them from some tables in Reports databases ?. If so, what are the tables ?. I delete the jobs from SQL Server but the jobs are automatically created the next day emailing the reports again......Thanks for any help.

SQL Server 2012 SP2 - Windows 2008 R2.

Is there a reason for SSRS to have both local admin and SQL db_owner?

$
0
0

Management is starting getting aggressive about SOD conflicts. I have one instance where SSRS has local admin and SQL sb_owner. I haven’t seen this on any of our other servers. Can I safely get rid of one of the privileges?

Any good way to estimate time to rebuild an index?

$
0
0

Hi Experts,

Could anyone let me know how we could estimate the time it will take to rebuild an index? Can we calculate it using page_count, record count or other figures as parameters?

There are some indexes in our DB which we need to rebuild. The values for "avg_fragmentation_in_percent" are over 90% and we believe they should be rebuilt, not just reorganized.

Versions:

SQL server 2008 SP2 (10.0.4000)

Windows 2003 R2 x64

Thanks!

Problem authenticating when report has been deployed

$
0
0

Hi, we have SSRS and I've worked on my local PC and developed a report which connects to a database e.g. on server 3 with the credentials set as a particular SQL user. All works fine locally but as soon as I deploy the report to the report server (server 2), I receive the following error:

"

  • Cannot create a connection to data source"

    The database server records the following SQL error:

    "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. Reason: Could not find a login matching the name provided."

    Can somebody please shed light on what I need to do to successfully run this from server 2? The fact it works locally fine means that the login is working ok I guess so I'm not sure what happens when it is transferred to the database server.

    The user is a SQL user rather than domain one and the user exists on SQL databases on both servers. Please let me know if I haven't explained it well and if I need to provide more info. Thanks!


Conversion from string "20041023 " to type 'Date' is not valid.

$
0
0

Hi ,

   I have a table with one of the column(EmpHiredate) datatype is char(10). It has value like "20141023". I need to display this value as date format(dd/mm/yyyy) in report. 

Following methods i tried in textbox expression but no luck.

=Format(Fields!EmpHireDate.Value,"dd/MM/yyyy")

=Cdate(Fields!EmpHireDate.Value)

Error:

[rsRuntimeErrorInExpression] The Value expression for the textrun ‘EmpHireDate.Paragraphs[0].TextRuns[0]’ contains an error: Conversion from string "20041023  " to type 'Date' is not valid.

Is it possible to convert string to date using SSRS textbox expression ? Can anyone help me with the solution.

Thanks,

Kittu

Excluding NaN from SSRS expression:

$
0
0

Hi All,

Below is my query, it output's a percentage based on some calculations that i've had to make to fit in with requirements.

The trouble is that it is also coming with NaN values which i need set to 0%, could someone please help me modify the below query to accomplish this?

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

Thanks in advance!


Plain_Clueless

SSRS Do not Group if the Field value is NULL

$
0
0

I have an SSRS report that I am doing dynamic grouping on that displays an agenda with time. grouping performed on a field called subheader and then the agenda times (another field) displayed under that group subheader.

The problem that I am having is that I want to avoid the grouping if the parameter is null. I just want to sort by the time if there is nothing in the sub header group. Times are being displayed in the wrong order for the titles where the subheader field is null


Custom code throws error with email subscription. Otherwise, the report works fine.

$
0
0

I have a SSRS report that parses RTF to TXT and displays it in a report.  The report works fine and everything displays correctly.  The subscription email, however, contains a report with errors: Request for the permission of type 'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

The report contains embedded code as well as references to System.Security and System.Windows.Forms.  I've updated .....\Reporting Services\ReportServer\rssrvpolicy.config and ....\Reporting Services\ReportManager\rsmgrpolicy.config to change permissions to FullTrust.  Not sure what else I need to do.  Please help.


Need help with converting date format to decimal in SSRS expression.

$
0
0

Hi all,

I have a decimal data type column with a record in the following format 20150219 --> yyyyMMdd. And I am trying to convert the return value from SSRS date/time parameter to a decimal value.

The TMDTOP column is the decimal data type with date records in yyyyMMdd format.

My return parameter is the following:

=IIf(IsNothing(Parameters!SystemDate.Value),Fields!TMDTSY.Value,CDec(Format(Parameters!SystemDate.Value,"yyyyMMdd"))) 

When I try to run the report I get the following error:

Failed to evaluate the FilterValue of the DataSet ‘DataSet1’. (rsFilterEvaluationError)

I appreciate if anyone can help me on solving this problem.

Thanks in advance.


SSRS not able to connect postgres via ODBC Driver

$
0
0

Hello Team,

I am trying to connect postgresql data base via SSRS and having the following error.

"the specified dsn contains an architecture mismatch between the driver and application"

I have Windows 7 64bit OS.

I have SQL Server 2008R2, SQL Server 2012, REPORT BUILDER 3.0, MSVS 2010, MSVS2013 installed on my machine. (i believe all 64 bit software)

I have installed the PostgreSQL 9.4. when I installed using the installer from ENTERPRISE DB it also included 32 bit ODBC driver.

I separately installed 64bit ODBC driver.

another way I did confirm that i have both 32 and 64 bit ODBC driver is I looked in to installed programs under control panel and i can see the two entries one is "psqlODBC_09.303.0400" and second is "psqlODBC_x64".

Using "C:\Windows\System32\odbcad32.exe", under "USER-DSN" tab I created the DSN for 64bit ODBC connection and chose the DSN driver name with "PostgreSQL Unicode(x64)"

Using C:\Windows\SysWOW64\odbcad32.exe, under "USER-DSN" tab I created the DSN for 32bit ODBC connection and chose the DSN driver name with "PostgreSQL ODBC Driver(UNICODE)"

After creating above DSN names, i did restarted postgresql service, reporting service, and my machine it self as well.

I tried creating report using Report builder, BIDS (208r2), and SQL Server Data tools, all 3 software.

I am still not able to make success full connection to postgres database.



Anup Shah

Identify failed subscriptions in a data driven subscription batch

$
0
0

Hi,

I have a single data driven subscription that is a batch of 250 subscriptions running on SQL Server 2008 R2. All the parameter values for the report are sourced from a database table. During the execution of the data driven subscription 5 of those subscriptions failed due to timeout error.

Final Status as shown on Subscription screen "Done: 250 processed of 250 total; 5 errors."

The SSRS log file has the subscription GUID which is a single record in the reporting server database tables. How can i identify the individual failed subscriptions? Is there an easy way or a work around that i should implement to identify the failed subscriptions?

Thanks in advance.

SSRS - The value of parameter 'param' is not valid. ---> System.UriFormatException: Invalid URI: The Uri string is too long.

$
0
0

I am getting this error when upgraded to SQL Server 2012. Earlier the same report(.rdl) just working fine on SQL Server 2008 R2.

Message = System.Web.Services.Protocols.SoapException: The value of parameter 'param' is not valid. ---> Microsoft.ReportingServices.Diagnostics.Utilities.InvalidParameterException: The value of parameter 'param' is not valid. ---> System.UriFormatException: Invalid URI: The Uri string is too long.

Is there anything changed in SQL Server 2012 regarding this.

Thanks

Viewing all 10045 articles
Browse latest View live


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