我有一个带有聚合函数的数据集,它需要一堆测试分数并将它们平均化。我想接受那个结果,如果它低于65%将文本框更改为某个文本,例如“测试分数低”。我已经尝试过使用变量但它错误地说我不能使用带变量的聚合函数。这样做的最佳方式是什么?我不需要一个完整的答案,只是有人指出我应该使用什么方法。
答案 0 :(得分:1)
我不确定你是否已经尝试过这个。设置要更改值的文本框的值取决于使用SSRS表达式的条件
在.panel-heading {
cursor: pointer;
transition: color .15s ease-in-out;
}
.panel-heading:hover {
color: #5bb8e1;
}
.panel-heading h4 {
font-weight: 400;
}
.panel-title {
position: relative;
}
.panel-title button {
background: transparent;
width: 22px;
height: 22px;
border: 0;
position: relative;
float: right;
}
.panel-title button span {
content: '';
transition: .3s linear;
position: absolute;
background: #b9b9b9;
}
.panel-title button span:first-of-type {
top: 25%;
bottom: 25%;
width: 5%;
left: 48%;
}
.panel-title button span:last-of-type {
left: 25%;
right: 25%;
height: 5%;
top: 48%;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<div class="panel-group">
<div class="panel panel-default">
<div data-toggle="collapse" href="#collapse1" class="panel-heading">
<h4 class="panel-title">
Job Type
<button>
<span></span>
<span></span>
</button>
</h4>
</div>
<div id="collapse1"class="panel-collapse collapse">
<div class="panel-body">
<ul>
<li><input id="job-types-1"type="checkbox"><label for="job-types-1">Full-time</label></li>
<li><input id="job-types-2"type="checkbox"><label for="job-types-2">Contract</label></li>
<li><input id="job-types-3"type="checkbox"><label for="job-types-3">Part-time</label></li>
<li><input id="job-types-4"type="checkbox"><label for="job-types-4">Freelance</label></li>
<li><input id="job-types-5"type="checkbox"><label for="job-types-5">Internship</label></li>
</ul>
</div>
</div>
</div>
</div>
的SSRS表达式
看起来像这样:
Avg(expression, scope, recursive)
(您必须将IFF(expression, value if expression equals true, value if expression equals false)
替换为数据集,并IIF(Avg(Fields!Testscore.Value, "mydataset") > .65 , "the average is larger than 65", "the average is lower than 65")
使用正确的列值。同时,将文本替换为您想要更改的文本。)