<?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 Prior Year Sales by Category as a Percent of Total PY Sales in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Prior-Year-Sales-by-Category-as-a-Percent-of-Total-PY-Sales/m-p/462145#M156539</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Measure that creates Prior Year Sales&lt;/P&gt;&lt;P&gt;Sales PY =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;Order_Line_Invoice[SalesSUM],&lt;BR /&gt;SAMEPERIODLASTYEAR(Dates_INV[Date]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate the Sales by Category as a percent of Prior Year Sales. I can get the correct answer using a measure for current year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Percentage is &amp;gt; 100% using this formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Percentage Of Total PY = CALCULATE (&lt;BR /&gt;Order_Line_Invoice[SalesSUM],&lt;BR /&gt;SAMEPERIODLASTYEAR(Dates_INV[Date]))/CALCULATE(sum('Order_Line_Invoice' [Sales]),ALLSELECTED())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it the ALLSELECTED()?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll post it as Answerwed. Please help.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jul 2018 21:13:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-13T21:13:03Z</dc:date>
    <item>
      <title>Prior Year Sales by Category as a Percent of Total PY Sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Prior-Year-Sales-by-Category-as-a-Percent-of-Total-PY-Sales/m-p/462145#M156539</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Measure that creates Prior Year Sales&lt;/P&gt;&lt;P&gt;Sales PY =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;Order_Line_Invoice[SalesSUM],&lt;BR /&gt;SAMEPERIODLASTYEAR(Dates_INV[Date]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate the Sales by Category as a percent of Prior Year Sales. I can get the correct answer using a measure for current year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Percentage is &amp;gt; 100% using this formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Percentage Of Total PY = CALCULATE (&lt;BR /&gt;Order_Line_Invoice[SalesSUM],&lt;BR /&gt;SAMEPERIODLASTYEAR(Dates_INV[Date]))/CALCULATE(sum('Order_Line_Invoice' [Sales]),ALLSELECTED())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it the ALLSELECTED()?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll post it as Answerwed. Please help.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 21:13:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Prior-Year-Sales-by-Category-as-a-Percent-of-Total-PY-Sales/m-p/462145#M156539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-13T21:13:03Z</dc:date>
    </item>
  </channel>
</rss>

