<?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 YTD 2023 2019 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-2023-2019/m-p/3040852#M104301</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We selected following filter on "Years" ( 2023, 2021 ) Comparing data of 2023, 2021 and looking only YTD data only.&lt;/P&gt;&lt;P&gt;Current year 2023 Date: 24-JAN-2023&lt;BR /&gt;Comparing Year&amp;nbsp; 2021 : 24-JAN-2021&lt;/P&gt;&lt;P&gt;We would like to display QTY result on visual only YTD meaning 2021 QTY data only up to 24-Jan-2021 and 2023 QTy Data upto 24-Jan-2023.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At present for yer 2021 it display complete 2021 years data.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can any one please suggest DAX formula to get data of 2021 and 2023 between 01-JAN and 24-JAN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MS&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 16:11:09 GMT</pubDate>
    <dc:creator>mashek</dc:creator>
    <dc:date>2023-01-24T16:11:09Z</dc:date>
    <item>
      <title>YTD 2023 2019</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-2023-2019/m-p/3040852#M104301</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We selected following filter on "Years" ( 2023, 2021 ) Comparing data of 2023, 2021 and looking only YTD data only.&lt;/P&gt;&lt;P&gt;Current year 2023 Date: 24-JAN-2023&lt;BR /&gt;Comparing Year&amp;nbsp; 2021 : 24-JAN-2021&lt;/P&gt;&lt;P&gt;We would like to display QTY result on visual only YTD meaning 2021 QTY data only up to 24-Jan-2021 and 2023 QTy Data upto 24-Jan-2023.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At present for yer 2021 it display complete 2021 years data.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can any one please suggest DAX formula to get data of 2021 and 2023 between 01-JAN and 24-JAN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MS&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 16:11:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-2023-2019/m-p/3040852#M104301</guid>
      <dc:creator>mashek</dc:creator>
      <dc:date>2023-01-24T16:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: YTD 2023 2019</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-2023-2019/m-p/3041026#M104311</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;YTD QTY =
VAR SelectedYear =
    SELECTEDVALUE ( 'Date'[Year] )
VAR YearsToSubtract =
    SelectedYear - YEAR ( TODAY () )
RETURN
    CALCULATE (
        SUM ( 'Table'[Quantity] ),
        DATEADD ( DATESYTD ( 'Date'[Date] ), YearsToSubtract, YEAR )
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 24 Jan 2023 17:23:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-2023-2019/m-p/3041026#M104311</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-01-24T17:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: YTD 2023 2019</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-2023-2019/m-p/3041255#M104327</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried and getting only result of 2023 year and not for year 2021.&lt;/P&gt;&lt;P&gt;If I select year 2021 and 2022 it should calculate result of full year of ( 2021 and 2022).&lt;/P&gt;&lt;P&gt;In my selection (2021 and 2023) getting in correct result.&lt;/P&gt;&lt;P&gt;By selecting year 2023 and 2021 it should calculate only YTD, ( Period JAN and day between 01 and day 24 ) for year ( 2021, 2023).&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;MS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 20:04:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-2023-2019/m-p/3041255#M104327</guid>
      <dc:creator>mashek</dc:creator>
      <dc:date>2023-01-24T20:04:39Z</dc:date>
    </item>
  </channel>
</rss>

