简体   繁体   English

SSRS 2008:根据DataSet1中的计算值从DataSet2中获取特定的行值

[英]SSRS 2008: Get specific row value from DataSet2 based on calculated value in DataSet1

I have two Datasets. 我有两个数据集。 The first is used to populate a tablix. 第一个用于填充Tablix。 In that tablix, there is a calculated percentage field. 在该Tablix中,有一个计算的百分比字段。 I want to show a different background color based on whether the percentage is in a certain range, in other words, based on KPI thresholds. 我想根据百分比是否在一定范围内(即基于KPI阈值)显示不同的背景色。 I have the thresholds coming in dynamically in a second dataset, that hold ColorName, LowerLimit, and UpperLimit fields. 我有第二个数据集中的动态阈值,其中包含ColorName,LowerLimit和UpperLimit字段。 I know I need to use some sort of lookup function to get the row's color value where the percentage falls within the LowerLimit and UpperLimit for that row. 我知道我需要使用某种查找功能来获取行的颜色值,其中百分比在该行的LowerLimit和UpperLimit之内。 I can assume that the Limits will not overlap. 我可以假设限制不会重叠。 Any function/approach that will accomplish this? 有什么功能/方法可以做到这一点? The reason I am pulling it dynamically is to give the customer a way to configure the thresholds, (using a maintenance screen that will manage that table). 我之所以动态地拉它,是为了给客户一种配置阈值的方法(使用将管理该表的维护屏幕)。 Thanks! 谢谢!

返回sql并在数据集中添加另一个字段,以便阈值位于tablix使用的数据集中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM