【发布时间】:2014-10-31 15:54:57
【问题描述】:
请注意,虽然这个问题是一个完全不同的问题,但它与this question. 直接相关
以下是为我的 SSRS 图表返回数据集的脚本:
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false" aggregate="true">
<entity name="account">
<attribute name="bio_employeesworldwide" alias="TotalWorldWideEmployees" aggregate="sum" />
<filter>
<condition attribute="customertypecode" operator="eq" value="2" />
</filter>
<link-entity name="contact" from="parentcustomerid" to="accountid" alias="contact">
<attribute name="bio_webuseraccountstatus" alias="count_bio_webuseraccountstatus" aggregate="countcolumn" />
<attribute name="bio_webuseraccountstatus" alias="bio_webuseraccountstatusgroupby" groupby="true" />
</link-entity>
</entity>
</fetch>
bio_webuseraccountstatus 的值可以是Active, Inactive, Disabled, Pending, etc..
在 FetchXML 中,有没有办法为每个不等于“Active”的值做一个“InActive”的 case 语句?
如您所见,我一直在尝试解决此问题 within the reporting layer,但遇到了很多“字符串格式”问题。
这可以用数据集层 (fetchxml) 代替吗?
【问题讨论】:
-
这是一个很好的问题!
标签: sql sql-server xml reporting-services fetchxml