<?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>Question Re: How to Filter Current vs. Previous Year Data Using a... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-filter-current-vs-previous-year-data-using-a-single-posting-date/qaa-p/14293222#M4933808</link>
    <description>Thankyou so much</description>
    <pubDate>Thu, 18 Dec 2025 11:09:20 GMT</pubDate>
    <dc:creator>AhmadAzaanFarooqui</dc:creator>
    <dc:date>2025-12-18T11:09:20Z</dc:date>
    <item>
      <title>How to Filter Current vs. Previous Year Data Using a Single Posting Date Input Control in SAP Analyt</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-filter-current-vs-previous-year-data-using-a-single-posting-date/qaq-p/14286014</link>
      <description>&lt;P&gt;Hi everyone!!&lt;/P&gt;&lt;P&gt;I’m working on a requirement in SAP Analytics Cloud where I need to use a &lt;STRONG&gt;single Posting Date input control&lt;/STRONG&gt; to filter two different tables in a story. The first table should display data for the &lt;STRONG&gt;exact month&lt;/STRONG&gt; selected by the user through that input control, while the second table should automatically show data for the &lt;STRONG&gt;same month in the previous year&lt;/STRONG&gt;. Both tables use the same dimensions—G/L Account and Posting Date—and the measure Amount in Company Code. For example, if the user selects &lt;STRONG&gt;January 2025&lt;/STRONG&gt;, the first table should show January 2025 data, while the second should show January 2024 data.&lt;/P&gt;&lt;P&gt;The challenge is that SAC applies the input control directly to the Posting Date dimension for both tables, and I need a way to “offset” the Posting Date filter by one year only for the second table. I’m looking for the best approach to achieve this,&amp;nbsp; any SAC feature that allows filtering one table based on a previous-year version of the selected date. If anyone has implemented something similar or knows an efficient workaround, I would really appreciate your guidance.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 12:13:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-filter-current-vs-previous-year-data-using-a-single-posting-date/qaq-p/14286014</guid>
      <dc:creator>AhmadAzaanFarooqui</dc:creator>
      <dc:date>2025-12-08T12:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Filter Current vs. Previous Year Data Using a...</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-filter-current-vs-previous-year-data-using-a-single-posting-date/qaa-p/14286419#M4933234</link>
      <description>&lt;P&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/2260945"&gt;@AhmadAzaanFarooqui&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One option is that you can create restricted measure based on dynamic time offset to previous year for the second table. The other option is that you can use scripting to read the Input control selection , offset it by a year and then pass it as a dimension filter to the second table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 04:56:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-filter-current-vs-previous-year-data-using-a-single-posting-date/qaa-p/14286419#M4933234</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2025-12-09T04:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to Filter Current vs. Previous Year Data Using a...</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-filter-current-vs-previous-year-data-using-a-single-posting-date/qaa-p/14287483#M4933323</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/2260945"&gt;@AhmadAzaanFarooqui&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Please refer to the below blog for your query.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.sap.com/t5/technology-blog-posts-by-sap/dynamic-mtd-qtd-ytd-calculation-in-sac-story-using-restricted-measure/ba-p/14217207" target="_self"&gt;https://community.sap.com/t5/technology-blog-posts-by-sap/dynamic-mtd-qtd-ytd-calculation-in-sac-story-using-restricted-measure/ba-p/14217207&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 04:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-filter-current-vs-previous-year-data-using-a-single-posting-date/qaa-p/14287483#M4933323</guid>
      <dc:creator>spurwar</dc:creator>
      <dc:date>2025-12-10T04:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Filter Current vs. Previous Year Data Using a...</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-filter-current-vs-previous-year-data-using-a-single-posting-date/qaa-p/14288116#M4933373</link>
      <description>&lt;P&gt;If you want it with a input control, it will have to be a story filter.&amp;nbsp; Select your 1st table and then filter on your date but use the Filter by Range option:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jmoon_0-1765381135311.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/350889i3634B591FF21E770/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jmoon_0-1765381135311.png" alt="jmoon_0-1765381135311.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When the range option comes up. select Date Type and use Create Custom Date:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jmoon_1-1765381225249.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/350890i665F49D79C39046A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jmoon_1-1765381225249.png" alt="jmoon_1-1765381225249.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Name your data selector and change the Granularity to Month and when you want to start the selection box:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jmoon_4-1765381437921.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/350893iB74C049834F4A593/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jmoon_4-1765381437921.png" alt="jmoon_4-1765381437921.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the Range, make sure the Granularity is Month for your selection:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jmoon_5-1765381480153.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/350894i393DA9AACE5F82A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jmoon_5-1765381480153.png" alt="jmoon_5-1765381480153.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This will place a story filter on your story and the 1st table will be filtered based on that selection:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jmoon_6-1765381535244.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/350895i84C77B2889C8CB2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jmoon_6-1765381535244.png" alt="jmoon_6-1765381535244.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now edit your 2nd table, click on the Date dimension and again selected,&amp;nbsp; Filter by Range:&lt;/P&gt;&lt;P&gt;In the Date Type make sure to select your new Custom "Select Date" member, then in the Range area&lt;/P&gt;&lt;P&gt;Change the Range Type to Offset and set the Granularity to Month with zero look back or look ahead, then in the Look Back Direction, select Offset Granularity to Year and put 1 in Offset Amount, it should already show you its is selecting the prior year same month:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jmoon_7-1765381754564.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/350896i3B46762CCD857612/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jmoon_7-1765381754564.png" alt="jmoon_7-1765381754564.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can then click on the select date filter and choose your needed monthly period&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jmoon_8-1765381815668.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/350897i67AD8B91993B6127/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jmoon_8-1765381815668.png" alt="jmoon_8-1765381815668.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When the tables update, they will be current month selected and same month prior year.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jmoon_9-1765381850068.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/350898i8290160049C0D9E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jmoon_9-1765381850068.png" alt="jmoon_9-1765381850068.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 15:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-filter-current-vs-previous-year-data-using-a-single-posting-date/qaa-p/14288116#M4933373</guid>
      <dc:creator>jmoon</dc:creator>
      <dc:date>2025-12-10T15:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Filter Current vs. Previous Year Data Using a...</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-filter-current-vs-previous-year-data-using-a-single-posting-date/qaa-p/14293222#M4933808</link>
      <description>Thankyou so much</description>
      <pubDate>Thu, 18 Dec 2025 11:09:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-filter-current-vs-previous-year-data-using-a-single-posting-date/qaa-p/14293222#M4933808</guid>
      <dc:creator>AhmadAzaanFarooqui</dc:creator>
      <dc:date>2025-12-18T11:09:20Z</dc:date>
    </item>
  </channel>
</rss>

