Я создаю отчет SSRS с 3 таблицами, которые я хочу заполнить только одним набором данных, каждый табликс должен показывать мне разные данные (очевидно), но проблема в том, что на двух из них мне нужно установить данные, используя относительное время, а не дат, сейчас я устанавливаю DataSet для каждого tablix, и каждый набор данных запрашивает с помощью FetchXml.
Вот пример:
Таблица 2 Запрос фильтра набора данных
<?xml version="1.0"?>
<fetch distinct="true" mapping="logical" output-format="xml-platform" version="1.0">
<entity name="Entity1">
<attribute name="Att1"/>
<attribute name="createdon"/>
<attribute name="modifiedon"/>
<order descending="false" attribute="Att1"/>
<filter type="and">
<condition attribute="modifiedon" value="7" operator="olderthan-x-days"/>
<condition attribute="modifiedon" *value="14" operator="last-x-days"*/>
</filter>
<link-entity name="Entity2" alias="DataTab1" to="Att1" from="Entity1">
<attribute name="Att2_DataTab1"/>
<attribute name="createdon"/>
<filter type="and">
<condition attribute="createdon" value="14" operator="last-x-days"/>
</filter>
</link-entity>
</entity>
And Table 3 Dataset filter Query
<?xml version="1.0"?>
<fetch distinct="true" mapping="logical" output-format="xml-platform" version="1.0">
<entity name="Entity1">
<attribute name="Att1"/>
<attribute name="createdon"/>
<attribute name="modifiedon"/>
<order descending="false" attribute="Att1"/>
<filter type="and">
<condition attribute="modifiedon" value="7" operator="last-x-days"/>
</filter>
<link-entity name="Entity2" alias="DataTab1" to="Att1" from="Entity1">
<attribute name="Att2_DataTab1"/>
<attribute name="createdon"/>
<filter type="and">
<condition attribute="createdon" value="7" operator="last-x-days"/>
</filter>
</link-entity>
</entity>
Since i'm Using the same information and the only thing that i need to change is the filtering structure on each Tablix, how can i add FetchXML Filter conditions to the Tablix properties filters?
Спасибо за любую подсказку, которую вы можете дать :)