<?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 datesytd not working? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesytd-not-working/m-p/2619388#M76234</link>
    <description>&lt;P&gt;I have the next DAX code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR CALC1 = CALCULATE( [Headcount R12Avg], 'Date'[IsPastDays] = 1)
VAR CALC2 = CALCULATE( [Resignations R12], 'Date'[IsPastDays] = 1)
RETURN

CALCULATE( DIVIDE( CALC2, CALC1), DATESYTD( 'Date'[Date], "31/05") ) &lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;But whenever I remove the 'datesytd.... ' I get the same value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is it possible that both&amp;nbsp;&lt;STRONG&gt;CALCULATE( DIVIDE( CALC2, CALC1), DATESYTD( 'Date'[Date], "31/05") )&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;DIVIDE( CALC2, CALC1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Return the same value??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2022 09:26:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-05T09:26:06Z</dc:date>
    <item>
      <title>datesytd not working?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesytd-not-working/m-p/2619388#M76234</link>
      <description>&lt;P&gt;I have the next DAX code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR CALC1 = CALCULATE( [Headcount R12Avg], 'Date'[IsPastDays] = 1)
VAR CALC2 = CALCULATE( [Resignations R12], 'Date'[IsPastDays] = 1)
RETURN

CALCULATE( DIVIDE( CALC2, CALC1), DATESYTD( 'Date'[Date], "31/05") ) &lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;But whenever I remove the 'datesytd.... ' I get the same value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is it possible that both&amp;nbsp;&lt;STRONG&gt;CALCULATE( DIVIDE( CALC2, CALC1), DATESYTD( 'Date'[Date], "31/05") )&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;DIVIDE( CALC2, CALC1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Return the same value??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 09:26:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesytd-not-working/m-p/2619388#M76234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-05T09:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: datesytd not working?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesytd-not-working/m-p/2619557#M76246</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR CALC1 = CALCULATE( [Headcount R12Avg], filter('Date', 'Date'[IsPastDays] = 1))&lt;BR /&gt;VAR CALC2 = CALCULATE( [Resignations R12], filter('Date', 'Date'[IsPastDays] = 1))&lt;BR /&gt;RETURN&lt;/P&gt;
&lt;P&gt;CALCULATE( DIVIDE( CALC2, CALC1), DATESYTD( 'Date'[Date], "31/05") )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also make sure, date table is marked as the date table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Filter/slicer/ visual use period from date table only&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :&lt;A href="https://youtu.be/OBf0rjpp5Hw" target="_blank"&gt;https://youtu.be/OBf0rjpp5Hw&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4" target="_blank"&gt;https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 10:27:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesytd-not-working/m-p/2619557#M76246</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-07-05T10:27:36Z</dc:date>
    </item>
  </channel>
</rss>

