<?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 does model calculation Restrict function on Current year work in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-does-model-calculation-restrict-function-on-current-year-work/qaa-p/698711#M189151</link>
    <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;jacob.stark&lt;/SPAN&gt;  Hi  &lt;SPAN class="mention-scrubbed"&gt;christina.obry&lt;/SPAN&gt;  - do you have any comments on this ?  cheers, H &lt;/P&gt;</description>
    <pubDate>Fri, 30 Nov 2018 09:35:52 GMT</pubDate>
    <dc:creator>Henry_Banks</dc:creator>
    <dc:date>2018-11-30T09:35:52Z</dc:date>
    <item>
      <title>How does model calculation Restrict function on Current year work</title>
      <link>https://community.sap.com/t5/technology-q-a/how-does-model-calculation-restrict-function-on-current-year-work/qaq-p/698710</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;
  &lt;P&gt;I have created a formula RESTRICT([Sales] , [d/Order_Date]= Current("Year"))&lt;/P&gt;
  &lt;P&gt;I am using a dynamic date filter, but when consumed in a story the measure does not behave as I expect. I would expect it to select current year - but you need to add a filter to the VIZ on the year. So what is the difference then?&lt;/P&gt;
  &lt;P&gt;I have attached a picture, The sales KF does not contain any restrict - the other one (highlighted) is the one with the formula described above. There are no filters on time dimension in the VIZ&lt;/P&gt;
  &lt;P&gt;I could choose a hard coded filter in the restricted KF on the year = 2018, and then it's filtered on 2018. &lt;/P&gt;
  &lt;P&gt;My question is: How is the intended behavior of the dynamic filter "Current Year" on a time dimension ?&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/244573-restrict-on-current-year.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 19:48:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-does-model-calculation-restrict-function-on-current-year-work/qaq-p/698710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-27T19:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: How does model calculation Restrict function on Current year work</title>
      <link>https://community.sap.com/t5/technology-q-a/how-does-model-calculation-restrict-function-on-current-year-work/qaa-p/698711#M189151</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;jacob.stark&lt;/SPAN&gt;  Hi  &lt;SPAN class="mention-scrubbed"&gt;christina.obry&lt;/SPAN&gt;  - do you have any comments on this ?  cheers, H &lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 09:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-does-model-calculation-restrict-function-on-current-year-work/qaa-p/698711#M189151</guid>
      <dc:creator>Henry_Banks</dc:creator>
      <dc:date>2018-11-30T09:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: How does model calculation Restrict function on Current year work</title>
      <link>https://community.sap.com/t5/technology-q-a/how-does-model-calculation-restrict-function-on-current-year-work/qaa-p/698712#M189152</link>
      <description>&lt;P&gt;Hi Rene,&lt;/P&gt;&lt;P&gt;Have you read the section "Dynamic Time Navigation Functions" in the &lt;A href="https://help.sap.com/doc/00f68c2e08b941f081002fd3691d86a7/release/en-US/index.html"&gt;Home&lt;/A&gt; &amp;gt; &lt;A href="https://help.sap.com/doc/00f68c2e08b941f081002fd3691d86a7/release/en-US/8fb861fb931843378190469759d25f39.html"&gt;Formulas and Calculations&lt;/A&gt; &amp;gt; &lt;A href="https://help.sap.com/doc/00f68c2e08b941f081002fd3691d86a7/release/en-US/2784376d431e4a7da9564880dadb084d.html"&gt;Restrict and Lookup&lt;/A&gt; online help document?&lt;/P&gt;&lt;P&gt;Current() is referring to the current member. You need to have the time / date dimension in a filter.&lt;/P&gt;&lt;P&gt;Its not selecting the current calendar year (2019). That is not supported in the Dynamic Time Navigation Functions.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 20:30:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-does-model-calculation-restrict-function-on-current-year-work/qaa-p/698712#M189152</guid>
      <dc:creator>JohnL</dc:creator>
      <dc:date>2019-02-06T20:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: How does model calculation Restrict function on Current year work</title>
      <link>https://community.sap.com/t5/technology-q-a/how-does-model-calculation-restrict-function-on-current-year-work/qaa-p/698713#M189153</link>
      <description>&lt;P&gt;Hi John I am aware of this - I am just wondering why &lt;/P&gt;&lt;P&gt;Then you would never use the current() as this is controlled by time / date dimension you have in the filter&lt;/P&gt;&lt;P&gt;And if I add these two calculations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESTRICT([Sales] ,[d/Order_Date]= Current("Year"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESTRICT([Sales] ,[d/Order_Date]= Current("Year").Current("Month"))&lt;/P&gt;&lt;P&gt;to the same chart - I am not able to show then in the same time&lt;/P&gt;&lt;P&gt;and the function: RESTRICT([Sales] ,[d/Order_Date]= Previous("Year",1)) - is not picked up by the story (and I have applied all sorts of filtering)&lt;/P&gt;&lt;P&gt;and you have the information in the dynamic time filter - why not utilize it in the measures made in the model&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/274505-lv2qj.png" /&gt;&lt;/P&gt;&lt;P&gt;and I am missing an offset here - so I can select the previous month&lt;/P&gt;&lt;P&gt;could not the this one to work&lt;/P&gt;&lt;P&gt;RESTRICT([Sales] ,[d/Order_Date]= Current("Year").Previous("Month",1))&lt;/P&gt;&lt;P&gt; - and I selected a single month (I tried with fixed filter and the dynamic)&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 21:18:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-does-model-calculation-restrict-function-on-current-year-work/qaa-p/698713#M189153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-06T21:18:10Z</dc:date>
    </item>
  </channel>
</rss>

