<?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: DATESYTD issue.. how to solve if i have records with dates greater than fiscal end date? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATESYTD-issue-how-to-solve-if-i-have-records-with-dates-greater/m-p/897164#M8118</link>
    <description>&lt;P&gt;It may be that you need to use DATESBETWEEN(), where you calculate the start and end dates you want. Then the functions will work in the same way no matter what additional dates are present in your data. This might mean adding a parameter table to hold the start and end dates for your fiscal year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://personalpowerbitrainer.com/" target="_blank"&gt;I'm a personal Power Bi Trainer&lt;/A&gt;&lt;EM&gt; I learn something every time I answer a question&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The Golden Rules for Power BI&lt;/EM&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use a Calendar table. A custom Date tables is preferable to using the automatic date/time handling capabilities of Power BI. &lt;A href="https://www.youtube.com/watch?v=FxiAYGbCfAQ" target="_blank"&gt;https://www.youtube.com/watch?v=FxiAYGbCfAQ&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Build your data model as a Star Schema. Creating a star schema in Power BI is the best practice to improve performance and more importantly, to ensure accurate results! &lt;A href="https://www.youtube.com/watch?v=1Kilya6aUQw" target="_blank"&gt;https://www.youtube.com/watch?v=1Kilya6aUQw&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Use a small set up sample data when developing. When building your measures and calculated columns always use a small amount of sample data so that it will be easier to confirm that you are getting the right numbers.&lt;/LI&gt;&lt;LI&gt;Store all your intermediate calculations in VARs when you’re writing measures. You can return these intermediate VARs instead of your final result &amp;nbsp;to check on your steps along the way.&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Sun, 12 Jan 2020 14:18:33 GMT</pubDate>
    <dc:creator>kentyler</dc:creator>
    <dc:date>2020-01-12T14:18:33Z</dc:date>
    <item>
      <title>DATESYTD issue.. how to solve if i have records with dates greater than fiscal end date?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATESYTD-issue-how-to-solve-if-i-have-records-with-dates-greater/m-p/894357#M7999</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;My issue is with DATESYTD. My report perfectly works if i have records with dates within the fiscal year. The moment i add records with dates greater than fiscal year end date, all my charts go off . DATESYTD stops functioning. Our FY starts on 01-Apr-2019 and ends on 31-Mar-2020. I have records with dates in April 2020. If i remove the records of April 2020 my report works perfectly fine, the momet i add everything goes off. Please help with solution . Or any alternate functions that i shuld use. Screenshots of the table below. The first image where it works fine as i have records with date less than or equal to 31-Mar-2020.&amp;nbsp; The second image is where it goes off when i adda records with dates greater than 31-Mar-2020. I can't eliminate those records as we always provide next 90days Forecast as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Formula is use is as below :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RGN ACV Budget YTD = CALCULATE([RGN ACV Budget], DATESYTD('Calendar'[Date],"03/31"))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sales Fiscal YTD = CALCULATE([TOTAL-WINS], DATESYTD('Calendar'[Date],"03/31"))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 03:27:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATESYTD-issue-how-to-solve-if-i-have-records-with-dates-greater/m-p/894357#M7999</guid>
      <dc:creator>KRISH80</dc:creator>
      <dc:date>2020-01-09T03:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: DATESYTD issue.. how to solve if i have records with dates greater than fiscal end date?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATESYTD-issue-how-to-solve-if-i-have-records-with-dates-greater/m-p/897164#M8118</link>
      <description>&lt;P&gt;It may be that you need to use DATESBETWEEN(), where you calculate the start and end dates you want. Then the functions will work in the same way no matter what additional dates are present in your data. This might mean adding a parameter table to hold the start and end dates for your fiscal year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://personalpowerbitrainer.com/" target="_blank"&gt;I'm a personal Power Bi Trainer&lt;/A&gt;&lt;EM&gt; I learn something every time I answer a question&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The Golden Rules for Power BI&lt;/EM&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use a Calendar table. A custom Date tables is preferable to using the automatic date/time handling capabilities of Power BI. &lt;A href="https://www.youtube.com/watch?v=FxiAYGbCfAQ" target="_blank"&gt;https://www.youtube.com/watch?v=FxiAYGbCfAQ&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Build your data model as a Star Schema. Creating a star schema in Power BI is the best practice to improve performance and more importantly, to ensure accurate results! &lt;A href="https://www.youtube.com/watch?v=1Kilya6aUQw" target="_blank"&gt;https://www.youtube.com/watch?v=1Kilya6aUQw&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Use a small set up sample data when developing. When building your measures and calculated columns always use a small amount of sample data so that it will be easier to confirm that you are getting the right numbers.&lt;/LI&gt;&lt;LI&gt;Store all your intermediate calculations in VARs when you’re writing measures. You can return these intermediate VARs instead of your final result &amp;nbsp;to check on your steps along the way.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Sun, 12 Jan 2020 14:18:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DATESYTD-issue-how-to-solve-if-i-have-records-with-dates-greater/m-p/897164#M8118</guid>
      <dc:creator>kentyler</dc:creator>
      <dc:date>2020-01-12T14:18:33Z</dc:date>
    </item>
  </channel>
</rss>

