问题标签 [ssrs-2017]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
reporting-services - 尝试为 YTD 值创建计算列
我需要根据预算表每天计算 YTD 值。我的表如下所示:
我可以使用“PerDay”列轻松处理 MTD,该列采用每月值并除以该月的天数,然后根据该月的某天乘以 PerDay 值。
对于 YTD,我需要添加上个月的每个月,然后是当月的 MTD 值。所以在 3 月 2 日,我的预期结果是 (75000+76000+ ((82000/31)*2)) = 156,290.32
我一直在尝试结合使用 RunningValue 和我的 MTD 计算,但 RunningValue 在整个当月添加,而不是让我获得 YTD 值。
reporting-services - SSRS 数据驱动订阅和参数
我正在尝试设置一个数据驱动的订阅,该订阅从报告中获取一个参数,但它不会验证查询,我应该能够做到这一点。
SP:从表中选择 * 列 = @Variable
@Variable 与报告的名称相同。
这是 2017 版的报告服务
reporting-services - SSRS Web 服务 URL 提供错误 (500)
当我尝试访问 SSRS Web 服务 URL(例如http://SERVERNAME:1234/ReportServer/
)时,它为我提供了错误 500。但是,Web 门户 URL ( http://SERVERNAME:1234/Reports/
) 工作正常。它甚至为我提供了 SQL Server Reporting Services 的 UI。
到目前为止,我已经尝试重新安装 SSRS,更改端口、帐户和数据库,但都没有成功(Reporting Services 服务正在运行)。我真的没有想法,微软的文档对于这个特定问题很糟糕,因为它建议尝试修改 NETWORK SERVICE 帐户权限,这可以在添加 Windows 功能之一后完成(我可能会添加,只能在Windows 10 的企业版)。
有没有人遇到过这个问题或设法找到解决方法?
sql - SSRS 使用相对单元格引用返回 tablix 单元格值
我可以使用 me.value 在 tablix 单元格中返回值。我的目标是简单地使用背景颜色来显示一个值与上面的值不同。tablix 已排序。我希望返回“上方”单元格的值。
这可能吗?
sql - 将数据类型 nvarchar 转换为 int 的 ssrs 错误
我将此存储过程传递到 ssrs 以生成报告,但在将数据类型 nvarchar 转换为 int 时不断出错,而我什至没有任何 nvarchar 类型的参数。
结尾
sql-server - Oracle Date format exception in SQL Server Reporting Services
Earlier my client was using SSRS 2008R2 with Oracle as transaction database. Recently they have upgraded to SSRS 2017 and now many reports are throwing following error:
ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: [AbnormalTermination:ReportProcessing], Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'Ds_Main'. ---> Oracle.ManagedDataAccess.Client.OracleException: ORA-01830: date format picture ends before converting entire input string
After closely looking into report query, I have noticed that this error is for all those reports where oracle function TO_DATE(<Date Value>)
has been used without date format. For example:
I am willing to know:
- what has changed in SSRS 2017 vs SSRS 2008 R2 that is causing this issue because same reports are working as expected in SSRS 2008 R2 and it is throwing above error in SSRS 2017.
- Is there is any suggestions to fix this issue without updating bunch of reports?
sql-server - 如何根据用户 SSRS 角色分配过滤 SSRS 中的数据
假设我在数据集中有 1000 行。这些行有一个办公室/部门列。我想要的是创建一份可供组织中所有用户访问的报告,但严格要求用户只能查看其办公室/部门的数据。即办公室/部门列值与他们所属的办公室相匹配。
我正在考虑创建与可用办公室相对应的 ssrs 角色,然后将办公室/部门列与用户角色匹配,但似乎无法在 SSRS 中获取当前用户的角色名称。我只是看到 User!UserID
。
处理此类需求的最佳可靠且易于维护的方式是什么?
reporting-services - SSRS 行号函数在 PDF 中不起作用
我正在使用下面的代码在我的报告中添加一个 Row # 列:
运行报表时,报表返回 29 行,并且行列似乎工作正常,在预览中标记了所有行 1-29。但是,当我导出为 PDF 时,报告中的行数从 30 变为 58。我不知道是什么导致了这个问题。
PDF正在做的事情是否以不同的方式处理该功能?PDF甚至使用该功能吗?
如果不是,那么 SSRS 会做什么导致导出时函数重新运行?
为什么 SSRS 不能只导出我在屏幕上看到的内容?