<?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 Count products sold for previous months per sales agent in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-products-sold-for-previous-months-per-sales-agent/m-p/713249#M1123</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two dax measures to count the total products sold per agent for MTD-1) (MTD-2). The measures work very well but the table visual takes ages to load for 4000+ sales agents. Is there perhaps a more efficent way to construct these measures? I've tried all the other std time intelignce options and the ones below are the only ones that return the desired result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count of Products Sold MTD (-1) = CALCULATE (&lt;/P&gt;&lt;P&gt;count('Products'[Product ID]),&lt;/P&gt;&lt;P&gt;PARALLELPERIOD('Products'[Date],-1,MONTH))-&lt;/P&gt;&lt;P&gt;CALCULATE (&lt;/P&gt;&lt;P&gt;count('Products'[Product ID]),&lt;/P&gt;&lt;P&gt;PARALLELPERIOD('Products'[Date],-2,MONTH))&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------&lt;BR /&gt;Count of Products Sold MTD (-2) = CALCULATE (&lt;/P&gt;&lt;P&gt;count('Products'[Product ID]),&lt;/P&gt;&lt;P&gt;PARALLELPERIOD('Products'[Date],-2,MONTH))-&lt;/P&gt;&lt;P&gt;CALCULATE (&lt;/P&gt;&lt;P&gt;count('Products'[Product ID]),&lt;/P&gt;&lt;P&gt;PARALLELPERIOD('Products'[Date],-3,MONTH))&lt;BR /&gt;---------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2019 05:48:04 GMT</pubDate>
    <dc:creator>Richard146</dc:creator>
    <dc:date>2019-06-13T05:48:04Z</dc:date>
    <item>
      <title>Count products sold for previous months per sales agent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-products-sold-for-previous-months-per-sales-agent/m-p/713249#M1123</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two dax measures to count the total products sold per agent for MTD-1) (MTD-2). The measures work very well but the table visual takes ages to load for 4000+ sales agents. Is there perhaps a more efficent way to construct these measures? I've tried all the other std time intelignce options and the ones below are the only ones that return the desired result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count of Products Sold MTD (-1) = CALCULATE (&lt;/P&gt;&lt;P&gt;count('Products'[Product ID]),&lt;/P&gt;&lt;P&gt;PARALLELPERIOD('Products'[Date],-1,MONTH))-&lt;/P&gt;&lt;P&gt;CALCULATE (&lt;/P&gt;&lt;P&gt;count('Products'[Product ID]),&lt;/P&gt;&lt;P&gt;PARALLELPERIOD('Products'[Date],-2,MONTH))&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------&lt;BR /&gt;Count of Products Sold MTD (-2) = CALCULATE (&lt;/P&gt;&lt;P&gt;count('Products'[Product ID]),&lt;/P&gt;&lt;P&gt;PARALLELPERIOD('Products'[Date],-2,MONTH))-&lt;/P&gt;&lt;P&gt;CALCULATE (&lt;/P&gt;&lt;P&gt;count('Products'[Product ID]),&lt;/P&gt;&lt;P&gt;PARALLELPERIOD('Products'[Date],-3,MONTH))&lt;BR /&gt;---------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 05:48:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-products-sold-for-previous-months-per-sales-agent/m-p/713249#M1123</guid>
      <dc:creator>Richard146</dc:creator>
      <dc:date>2019-06-13T05:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count products sold for previous months per sales agent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-products-sold-for-previous-months-per-sales-agent/m-p/713393#M1131</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="89105" data-lia-user-login="Richard146" class="lia-mention lia-mention-user"&gt;Richard146&lt;/a&gt; your dax fomulat doesn't look like. parallelperiod functions 1st argument suppose to be &amp;lt;dates&amp;gt; but your first argument is ProductId.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Read this post to get your answer quickly. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 22:18:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-products-sold-for-previous-months-per-sales-agent/m-p/713393#M1131</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-06-12T22:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count products sold for previous months per sales agent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-products-sold-for-previous-months-per-sales-agent/m-p/713609#M1140</link>
      <description>&lt;P&gt;Thanks Parry. I sanitised the dax before posting and made an error. I have fixed the original post.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 05:50:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-products-sold-for-previous-months-per-sales-agent/m-p/713609#M1140</guid>
      <dc:creator>Richard146</dc:creator>
      <dc:date>2019-06-13T05:50:49Z</dc:date>
    </item>
  </channel>
</rss>

