<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Returning Rate Reset remaining to board week by week in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-Rate-Reset-remaining-to-board-week-by-week/m-p/2152846#M49648</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="324221" data-lia-user-login="tameismael" class="lia-mention lia-mention-user"&gt;tameismael&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the syntax of DATEIFF function, start_date and end_date should be a scalar datatime value. Scalar value means it’s a single value but not something like a column or table. For more details about DATEDIFF, please refer to &lt;A href="https://docs.microsoft.com/en-us/dax/datediff-function-dax" target="_blank" rel="noopener"&gt;DATEDIFF.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try to replace the part of DATEDIFF as the following:&lt;/P&gt;
&lt;P&gt;DATEDIFF(MINX('Table','Table'[Start of Week]),MAXX('Table','Table'[End of Week]),WEEK).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you will get the count of weeks between every start data and every end date.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Caiyun&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly. If you still have questions, please feel free to let me know. Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 07:36:55 GMT</pubDate>
    <dc:creator>v-cazheng-msft</dc:creator>
    <dc:date>2021-10-25T07:36:55Z</dc:date>
    <item>
      <title>Returning Rate Reset remaining to board week by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-Rate-Reset-remaining-to-board-week-by-week/m-p/2144286#M49318</link>
      <description />
      <pubDate>Fri, 21 Oct 2022 17:03:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-Rate-Reset-remaining-to-board-week-by-week/m-p/2144286#M49318</guid>
      <dc:creator>tameismael</dc:creator>
      <dc:date>2022-10-21T17:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Returning Rate Reset remaining to board week by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-Rate-Reset-remaining-to-board-week-by-week/m-p/2152846#M49648</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="324221" data-lia-user-login="tameismael" class="lia-mention lia-mention-user"&gt;tameismael&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the syntax of DATEIFF function, start_date and end_date should be a scalar datatime value. Scalar value means it’s a single value but not something like a column or table. For more details about DATEDIFF, please refer to &lt;A href="https://docs.microsoft.com/en-us/dax/datediff-function-dax" target="_blank" rel="noopener"&gt;DATEDIFF.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try to replace the part of DATEDIFF as the following:&lt;/P&gt;
&lt;P&gt;DATEDIFF(MINX('Table','Table'[Start of Week]),MAXX('Table','Table'[End of Week]),WEEK).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you will get the count of weeks between every start data and every end date.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Caiyun&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly. If you still have questions, please feel free to let me know. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 07:36:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-Rate-Reset-remaining-to-board-week-by-week/m-p/2152846#M49648</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2021-10-25T07:36:55Z</dc:date>
    </item>
  </channel>
</rss>

