<?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 Calculate sum of qty in different timeperiods in relation to my slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-sum-of-qty-in-different-timeperiods-in-relation-to-my/m-p/2039810#M45773</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I need to create a measure that calculates my qty in different time periods.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The periods should relate to which yearmonth i chose in my slicer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The periods are as follows: 0-6 month, 6-12 months, 12-24 months and &amp;gt;24 months&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody who can help me with the DAX to create this/these measures?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Aug 2021 08:30:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-08-26T08:30:19Z</dc:date>
    <item>
      <title>Calculate sum of qty in different timeperiods in relation to my slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-sum-of-qty-in-different-timeperiods-in-relation-to-my/m-p/2039810#M45773</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I need to create a measure that calculates my qty in different time periods.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The periods should relate to which yearmonth i chose in my slicer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The periods are as follows: 0-6 month, 6-12 months, 12-24 months and &amp;gt;24 months&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody who can help me with the DAX to create this/these measures?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 08:30:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-sum-of-qty-in-different-timeperiods-in-relation-to-my/m-p/2039810#M45773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-26T08:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sum of qty in different timeperiods in relation to my slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-sum-of-qty-in-different-timeperiods-in-relation-to-my/m-p/2039839#M45775</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Create these values in an independent table and handle and switch .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure you need are&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rolling 6 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-6,MONTH))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rolling 6 to 12&amp;nbsp; = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],eomonth(MAX('Date'[Date ]),-6),-6,MONTH))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rolling 12 to 24&amp;nbsp; = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],eomonth(MAX('Date'[Date ]),-12),-12 ,MONTH))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;create slicer as we do in measure slicer&lt;/P&gt;
&lt;P&gt;refer&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Required-custom-date-Slicer-Last-7-days-last-15-days-last-30/m-p/1284966#M561629" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Required-custom-date-Slicer-Last-7-days-last-15-days-last-30/m-p/1284966#M561629&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to create a Measure Slicer: &lt;A href="https://youtu.be/b9352Vxuj-M" target="_blank"&gt;https://youtu.be/b9352Vxuj-M&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 08:39:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-sum-of-qty-in-different-timeperiods-in-relation-to-my/m-p/2039839#M45775</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-08-26T08:39:50Z</dc:date>
    </item>
  </channel>
</rss>

