<?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: Challenge with date calcs in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-date-calcs/m-p/1145980#M17298</link>
    <description>&lt;P&gt;Could you please share an example of what the DAX formula syntax would look like?&amp;nbsp; Note that I currently do not have a filter for quarter - I only have slicers for Year and Month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current measures are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;QTD = calculate ([amt], datesqtd (dates))&lt;/P&gt;&lt;P&gt;QTR = ????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm hoping to avoid the need of having a slicer for quarter, as that would seem repetitive once the month is chosen.&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jun 2020 17:38:00 GMT</pubDate>
    <dc:creator>madscientist</dc:creator>
    <dc:date>2020-06-07T17:38:00Z</dc:date>
    <item>
      <title>Challenge with date calcs</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-date-calcs/m-p/1145948#M17296</link>
      <description>&lt;P&gt;Hi - seeking help from this great community!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to prepare a table that has full quarter (QTR) and QTD information at the same time using sample data below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Product &amp;nbsp; &amp;nbsp;&amp;nbsp; Date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Amt&lt;/U&gt;&lt;/P&gt;&lt;P&gt;A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 01/01/2020 &amp;nbsp; &amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 15/02/2020 &amp;nbsp; &amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 17/03/2020 &amp;nbsp; &amp;nbsp; 150&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have active slicers for year and month components to enable the QTD calculation.&amp;nbsp; So if I were to pick Year = 2020 and month = Feb, here's what I would want to see as output in a table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; QTD &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; QTR&lt;/P&gt;&lt;P&gt;Product A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 300 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 450&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The QTD calc works fine....but I can't seem to figure out how to get a measure that essentially follows the year slicer while at the same time ignores the specific month slicer for filtering yet uses that month to identify the relevant quarter I need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your insights!&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 16:08:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-date-calcs/m-p/1145948#M17296</guid>
      <dc:creator>madscientist</dc:creator>
      <dc:date>2020-06-07T16:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge with date calcs</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-date-calcs/m-p/1145970#M17297</link>
      <description>&lt;P&gt;use CALCULATE to break out of the Month filter context but keep the Quarter filter context.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 17:22:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-date-calcs/m-p/1145970#M17297</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-06-07T17:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge with date calcs</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-date-calcs/m-p/1145980#M17298</link>
      <description>&lt;P&gt;Could you please share an example of what the DAX formula syntax would look like?&amp;nbsp; Note that I currently do not have a filter for quarter - I only have slicers for Year and Month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current measures are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;QTD = calculate ([amt], datesqtd (dates))&lt;/P&gt;&lt;P&gt;QTR = ????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm hoping to avoid the need of having a slicer for quarter, as that would seem repetitive once the month is chosen.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 17:38:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-date-calcs/m-p/1145980#M17298</guid>
      <dc:creator>madscientist</dc:creator>
      <dc:date>2020-06-07T17:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge with date calcs</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-date-calcs/m-p/1145994#M17299</link>
      <description>&lt;P&gt;Something like this (there are many ways)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;QTR=&lt;/P&gt;&lt;P&gt;var currQ = max(Dates[Quarter])&lt;/P&gt;&lt;P&gt;Return Calculate([amt],Dates[Quarter] = currQ)&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 18:03:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Challenge-with-date-calcs/m-p/1145994#M17299</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-06-07T18:03:17Z</dc:date>
    </item>
  </channel>
</rss>

