<?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: ParallellPeriod and Single Selection Filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ParallellPeriod-and-Single-Selection-Filter/m-p/3039115#M104166</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400032" data-lia-user-login="Gondi63" class="lia-mention lia-mention-user"&gt;Gondi63&lt;/a&gt; , Make sue the fiscal calendar is marked as a date table. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also try measure like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))&lt;BR /&gt;Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 01:45:25 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2023-01-24T01:45:25Z</dc:date>
    <item>
      <title>ParallellPeriod and Single Selection Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ParallellPeriod-and-Single-Selection-Filter/m-p/3038831#M104152</link>
      <description>&lt;P&gt;I'd like to create a matrix with a Value for [Net Revenue] and [Net Revenue Prior Year].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created both measures and they seem to be calculating correctly:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I change the slicer to single select or select only a single year, I lose the Prior Year data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's the best method to show both values when only single year is selected?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 21:04:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ParallellPeriod-and-Single-Selection-Filter/m-p/3038831#M104152</guid>
      <dc:creator>Gondi63</dc:creator>
      <dc:date>2023-01-23T21:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: ParallellPeriod and Single Selection Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ParallellPeriod-and-Single-Selection-Filter/m-p/3039115#M104166</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="400032" data-lia-user-login="Gondi63" class="lia-mention lia-mention-user"&gt;Gondi63&lt;/a&gt; , Make sue the fiscal calendar is marked as a date table. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also try measure like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))&lt;BR /&gt;Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 01:45:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ParallellPeriod-and-Single-Selection-Filter/m-p/3039115#M104166</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-01-24T01:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: ParallellPeriod and Single Selection Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ParallellPeriod-and-Single-Selection-Filter/m-p/3039204#M104176</link>
      <description>&lt;P&gt;This could happen if your slicer is acting on the year in the fact table, instead of on the calendar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, could you post the formula for "Net Revenue"?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 03:37:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ParallellPeriod-and-Single-Selection-Filter/m-p/3039204#M104176</guid>
      <dc:creator>ghaines</dc:creator>
      <dc:date>2023-01-24T03:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: ParallellPeriod and Single Selection Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ParallellPeriod-and-Single-Selection-Filter/m-p/3041138#M104318</link>
      <description>&lt;LI-CODE lang="markup"&gt;Net Revenue = 
    SUMX(
        'Line Items',
        'Line Items'[Net Revenue]
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Confirming, the slicers/filters are set on fields from the Fiscal_Calendar DIM table.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 18:43:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ParallellPeriod-and-Single-Selection-Filter/m-p/3041138#M104318</guid>
      <dc:creator>Gondi63</dc:creator>
      <dc:date>2023-01-24T18:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: ParallellPeriod and Single Selection Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ParallellPeriod-and-Single-Selection-Filter/m-p/3041157#M104320</link>
      <description>&lt;P&gt;I marked the calendar table as a date table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying each of these two options, I get the same behavior. Correct calculations when all years are selected, but when I select an individual fiscal year, I get blanks in each of the "prior year" calculations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 18:57:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ParallellPeriod-and-Single-Selection-Filter/m-p/3041157#M104320</guid>
      <dc:creator>Gondi63</dc:creator>
      <dc:date>2023-01-24T18:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: ParallellPeriod and Single Selection Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ParallellPeriod-and-Single-Selection-Filter/m-p/3041303#M104332</link>
      <description>&lt;P&gt;Try changing to SUM('Line Items'[Net Revenue])&lt;BR /&gt;I don't think the formula you have there is typical.&amp;nbsp; I haven't used a formula quite like that.&amp;nbsp; typically it would be something like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SUMX(
        VALUES('Line Items'[Product Types]),
        'Line Items'[Net Revenue]
    )&lt;/LI-CODE&gt;&lt;P&gt;but that is for certain applications, not as a basic calculation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUMX calculates the second term for each individual value of the first term.&amp;nbsp; I'm speaking outside of my experience because I've never used sumx where the first term is an entire table, but I expect that the filter on date is providing a context first, which limits the rows of 'Line Items' that are used in the calculation of the second term.&amp;nbsp; So "Sum over the currently selected rows of 'Line Items'" has already excluded PY if that makes sense.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 21:20:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ParallellPeriod-and-Single-Selection-Filter/m-p/3041303#M104332</guid>
      <dc:creator>ghaines</dc:creator>
      <dc:date>2023-01-24T21:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: ParallellPeriod and Single Selection Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ParallellPeriod-and-Single-Selection-Filter/m-p/3041311#M104335</link>
      <description>&lt;P&gt;Thanks for the follow up --&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see any behavior change when swiching to SUM()&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Net Revenue PY = 
    CALCULATE(
        SUM(
            'Cornerstone Line Items'[Net Revenue]
        ),
        PARALLELPERIOD('Fiscal Calendar'[Fiscal_Year_Date],-1,YEAR
        )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 21:27:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ParallellPeriod-and-Single-Selection-Filter/m-p/3041311#M104335</guid>
      <dc:creator>Gondi63</dc:creator>
      <dc:date>2023-01-24T21:27:51Z</dc:date>
    </item>
  </channel>
</rss>

