Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssrs 2008 定义日期参数_Ssrs 2008_Dynamics Crm 2011_Fetchxml - Fatal编程技术网

Ssrs 2008 定义日期参数

Ssrs 2008 定义日期参数,ssrs-2008,dynamics-crm-2011,fetchxml,Ssrs 2008,Dynamics Crm 2011,Fetchxml,我对创建自定义报告非常陌生。我需要在crm中向用户提示开始日期和结束日期,这样结果将是仅在这两个日期之间创建的数据 我有三个参数来预过滤数据(帐户、事件、合同),并在VisualStudio中添加了两个日期参数 但现在我几乎被卡住了 任何帮助都会很好 编辑1:以下是我基于Xml的查询获取的一个片段: <?xml version="1.0"?><fetch distinct="false" mapping="logical" output-format="xml-platform

我对创建自定义报告非常陌生。我需要在crm中向用户提示开始日期和结束日期,这样结果将是仅在这两个日期之间创建的数据

我有三个参数来预过滤数据(帐户、事件、合同),并在VisualStudio中添加了两个日期参数

但现在我几乎被卡住了

任何帮助都会很好

编辑1:以下是我基于Xml的查询获取的一个片段:

<?xml version="1.0"?><fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0">
       <entity name="incident" enableprefiltering="1">
       <attribute name="overriddencreatedon"/>
      <attribute name="new_dateclotureincident"/>
      <attribute name="title"/><attribute name="createdon"/>
      <attribute name="new_travaileffectue"/>
      <attribute name="ticketnumber" />
      <attribute name="new_dureecumuleeactivites"/>
      <order descending="true" attribute="createdon"/>
      <filter type="and"> 
      <condition attribute="createdon" value="@Date-Debut" operator="on-or-after"/> 
      <condition attribute="createdon" value="@Date_Fin" operator="on-or-before"/> 
      </filter>
      <link-entity name="new_contrats" alias="aa" to="new_contrat" from="new_contratsid" enableprefiltering="1">
    <attribute name="new_referencecontrat"/>
    </link-entity>
    <link-entity name="new_lignecontrat" alias="ab" to="new_lignecontrat" from="new_lignecontratid">
    <attribute name="new_unitesrestantes"/><attribute name="new_unitesrestantes"/>
    </link-entity>
    <link-entity name="account" alias="ac" to="customerid" from="accountid" enableprefiltering="1"><attribute name="name"/>
    </link-entity></entity></fetch>

执行报告时会毫无问题地提示日期,但在我选择数据后,数据排序不正确。我刚刚创建了两个简单的日期参数,那么我做错了什么

问题解决了

简单的日期格式问题

将日期格式表达式与我的参数关联后,它工作得非常好

=Format(Parameters!YourDateParameterName.value,"yyyy-MM-dd")

一个非常容易引起误解的问题的正确解决方案。谢谢你,先生!