我正在使用SharePoint列表生成SSRS报告,并使用我的数据集中的Caml查询。
<RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ListName>Test_FAMM</ListName>
<ViewFields>
<FieldRef Name="Region" />
</ViewFields>
</RSSharePointList>
但是,我想只获得参数的不同值。 有任何修改吗?
答案 0 :(得分:0)
不幸的是,CAML不允许使用DISTINCT。您可以使用几种解决方法。
或者: What is the best way to retrieve distinct / unique values using SPQuery?