(转)Reporting Services技巧(二) 实现对KPI的支持
来源:互联网 发布:ipad怎么关闭网络 编辑:程序博客网 时间:2024/05/13 23:10
1.通过Report Builder
我们可以在Report Builder中创建报表,可以直接读取Analysis Services中已经设置好的KPI,由于Report Builder的报表设计功能有限,所以我们可以将已经添加好KPI的报表保存起来,再利用开发环境打开进行其他设置,增加其他功能。
缺点是我们无法对KPI的图标进行设置。
2.利用自定义代码
在开发环境中,我们同样可以利用自定义代码来完成对KPI的读取。
首先我们需要将所需的KPI图标读取到报表中,这样我们可以在报表里面利用这些图标,也可以将其读取到项目中,这样,项目中所有的报表都可以利用这些图标。
接下来我们设定如下的代码:
Public Function GetKPI(ByVal currentValue As Integer,ByVal type As String) As String
Select currentValue
Case 1
Return type &"2"
Case 0
Return type &"1"
Case -1
Return type &"0"
End Select
End Function
自定义函数通过从Cube中读取的状态和趋势值,在图像的属性Value中设置
=code.GetFace(Fields!Product_Gross_Profit_Margin_状态_.Value,"cyl")
来获取图标的文件名,其中,type是图标的类型。这样,我们可以自定义这些图标,同时,图标也可以是Flash。
- (转)Reporting Services技巧(二) 实现对KPI的支持
- 实现Reporting Services对KPI的支持
- Reporting Services的小技巧
- 一步步学习Reporting Services(二) 在报表中使用简单的参数作为查询条件
- Reporting Services及VS2005使用技巧记录
- SSRS:Reporting Services报表制作技巧
- SSRS:Reporting Services报表制作技巧
- SSRS:Reporting Services报表制作技巧
- SSRS:Reporting Services报表制作技巧
- SSRS:Reporting Services报表制作技巧
- Reporting Services 2005 的迁移
- [转]Reporting Services表达式示例
- BI 商业智能 SQL Server Reporting Services (SSRS)(转)
- Reporting Services
- Reporting Services
- Reporting Services
- Reporting services
- C#为reporting services编写方法。Reporting Services 使用C#类库中的函数方法(转)
- liferay中的Velocity使用分析(1)
- 毕业册照片
- CRichEditCtrl控件类的学习笔记(一)
- Drupal在IIS下用ISAPI Rewrite实现Clean URLs的简单配置
- 使用 Log4j 搭建一个日志服务器
- (转)Reporting Services技巧(二) 实现对KPI的支持
- C库函数手册
- 条形码原理之UPC-A/E
- java Grid控件列表
- 正则表达式语法
- ChinaPay
- 0如果你不想一辈子做工程师,必看!
- 穿裙子的季节要过去......
- sqlserver之定位死锁