我正在使用SSRS 2014 SP1 x64和VS2013 Update 5.
我有以下表达式尝试计算语句报告的老化。
=SUM(IIF(DateDiff("d", (Fields!OrderDate.Value, "Invoice"), Now())<=0, (Fields!LineAmount.Value, "Invoice"), 0))
=SUM(IIF(DateDiff("d", (Fields!OrderDate.Value, "Invoice"), now())>=1 and DateDiff("d", (Fields!OrderDate.Value, "Invoice"),Now())<=30, (Fields!LineAmount.Value, "Invoice"), 0))
=SUM(IIF(DateDiff("d", (Fields!OrderDate.Value, "Invoice"), now())>=31 and DateDiff("d", (Fields!OrderDate.Value, "Invoice"), Now())<=60, (Fields!LineAmount.Value, "Invoice"), 0))
=SUM(IIF(DateDiff("d", (Fields!OrderDate.Value, "Invoice"), now())>=61 and DateDiff("d", (Fields!OrderDate.Value, "Invoice"), Now())<=90, (Fields!LineAmount.Value, "Invoice"), 0))
=SUM(IIF(DateDiff("d", (Fields!OrderDate.Value, "Invoice"), now())>=91, (Fields!LineAmount.Value, "Invoice"), 0))
现在,当我尝试将First
添加到字段选择器时,我收到一条错误,指出... uses a First, Last or Previous aggregate in an outer aggregate.
我如何从Invoice数据集中引用此字段(至少有两个数据集)?
我这样做是否正确?
答案 0 :(得分:0)
您需要使用lookup函数来引用第二个数据集中的字段
答案 1 :(得分:0)
我相信以下内容可行:
$(".validation-invalid").hover(function () {
$("#" + $(this)[0].id + "-error").toggle();
});
function validateIPv4(sender) {
var ip = $(sender).val();
var ipformat = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;
if (ip.match(ipformat)) {
$(sender).removeClass("validation-invalid").addClass("validation-valid");
} else {
$(sender).addClass("validation-invalid").removeClass("validation-valid");
$('<span class="error-popover" id="' + $(sender)[0].id + '-error"><img class="error-callout" src="/Content/images/callout.png" alt="Help pointer">@GlobalizedResources.Device_Configuration_Page_IPv4_Error</span>').insertAfter(sender);
}
}