<?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 Getting date value of current chosen month till previous months in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-date-value-of-current-chosen-month-till-previous-months/m-p/1478386#M28166</link>
    <description>&lt;P&gt;Hello Everyone!!&lt;/P&gt;&lt;P&gt;I am stuck at a &lt;STRONG&gt;dax problem&lt;/STRONG&gt;.&lt;BR /&gt;I have two tables i.e Date table and File closure table( this table is having file closure month that is having a relationship with date table month). now i am using month name from date table into my slicer and want to count the number of row in file closure table from chosen month till the start of the year.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E.g. say i chosed march from slicer than the number of rows i want to count from file cosure table should be from january till march.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I cannot chose multiple months to add previous&amp;nbsp; month data due to my schema limitations.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Kindly help me out in resolving this issue.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2020 07:29:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-06T07:29:53Z</dc:date>
    <item>
      <title>Getting date value of current chosen month till previous months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-date-value-of-current-chosen-month-till-previous-months/m-p/1478386#M28166</link>
      <description>&lt;P&gt;Hello Everyone!!&lt;/P&gt;&lt;P&gt;I am stuck at a &lt;STRONG&gt;dax problem&lt;/STRONG&gt;.&lt;BR /&gt;I have two tables i.e Date table and File closure table( this table is having file closure month that is having a relationship with date table month). now i am using month name from date table into my slicer and want to count the number of row in file closure table from chosen month till the start of the year.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E.g. say i chosed march from slicer than the number of rows i want to count from file cosure table should be from january till march.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I cannot chose multiple months to add previous&amp;nbsp; month data due to my schema limitations.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Kindly help me out in resolving this issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 07:29:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-date-value-of-current-chosen-month-till-previous-months/m-p/1478386#M28166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-06T07:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting date value of current chosen month till previous months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-date-value-of-current-chosen-month-till-previous-months/m-p/1478412#M28168</link>
      <description>&lt;P&gt;CALCULATE(COUNTROWS(FileTable),DATESYTD(Dates[Date]))&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 07:36:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-date-value-of-current-chosen-month-till-previous-months/m-p/1478412#M28168</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2020-11-06T07:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting date value of current chosen month till previous months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-date-value-of-current-chosen-month-till-previous-months/m-p/1478441#M28170</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , In this case DatesYTD or TotalYTD should help. Make sure the Date table is marked as a date table &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))&lt;BR /&gt;Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))&lt;BR /&gt;This year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR('Date'[Date]),"12/31"))&lt;BR /&gt;Last year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR(dateadd('Date'[Date],-1,Year)),"12/31"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI — Year on Year with or Without Time Intelligence &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 07:50:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-date-value-of-current-chosen-month-till-previous-months/m-p/1478441#M28170</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-06T07:50:46Z</dc:date>
    </item>
  </channel>
</rss>

