<?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 Historical and future values with restriction of filter in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Historical-and-future-values-with-restriction-of-filter/m-p/91045#M6073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlik community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I aim at the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load data for some calendar weeks in one fact table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some data are historical data and some date are future data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Measure 1 --&amp;gt; available for&lt;/P&gt;&lt;P&gt;2018-32 --&amp;gt; past&lt;/P&gt;&lt;P&gt;2018-33 --&amp;gt; current&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Measure 2 --&amp;gt; available for&lt;/P&gt;&lt;P&gt;2018-32 --&amp;gt; past&lt;/P&gt;&lt;P&gt;2018-33 --&amp;gt; current&lt;/P&gt;&lt;P&gt;2018-34 --&amp;gt; future&lt;/P&gt;&lt;P&gt;2018-35 --&amp;gt; future&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I load everything in one fact table, the filter shows every calendar week:&lt;/P&gt;&lt;P&gt;2018-32&lt;/P&gt;&lt;P&gt;2018-33&lt;/P&gt;&lt;P&gt;2018-34&lt;/P&gt;&lt;P&gt;2018-35&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the user should not be able to choose a calendar week in the future (only calendar weeks up to 2018-33). But the future values should be visible in some charts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the only solution is to split Measure 2 in 3 measures?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar Week | Value | Value Week+1 | Value Week+2&lt;/P&gt;&lt;P&gt;2018-32&lt;/P&gt;&lt;P&gt;2018-33&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2018 11:08:07 GMT</pubDate>
    <dc:creator>florian_bertsch</dc:creator>
    <dc:date>2018-09-04T11:08:07Z</dc:date>
    <item>
      <title>Historical and future values with restriction of filter</title>
      <link>https://community.qlik.com/t5/App-Development/Historical-and-future-values-with-restriction-of-filter/m-p/91045#M6073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlik community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I aim at the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load data for some calendar weeks in one fact table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some data are historical data and some date are future data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Measure 1 --&amp;gt; available for&lt;/P&gt;&lt;P&gt;2018-32 --&amp;gt; past&lt;/P&gt;&lt;P&gt;2018-33 --&amp;gt; current&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Measure 2 --&amp;gt; available for&lt;/P&gt;&lt;P&gt;2018-32 --&amp;gt; past&lt;/P&gt;&lt;P&gt;2018-33 --&amp;gt; current&lt;/P&gt;&lt;P&gt;2018-34 --&amp;gt; future&lt;/P&gt;&lt;P&gt;2018-35 --&amp;gt; future&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I load everything in one fact table, the filter shows every calendar week:&lt;/P&gt;&lt;P&gt;2018-32&lt;/P&gt;&lt;P&gt;2018-33&lt;/P&gt;&lt;P&gt;2018-34&lt;/P&gt;&lt;P&gt;2018-35&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the user should not be able to choose a calendar week in the future (only calendar weeks up to 2018-33). But the future values should be visible in some charts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the only solution is to split Measure 2 in 3 measures?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar Week | Value | Value Week+1 | Value Week+2&lt;/P&gt;&lt;P&gt;2018-32&lt;/P&gt;&lt;P&gt;2018-33&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 11:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Historical-and-future-values-with-restriction-of-filter/m-p/91045#M6073</guid>
      <dc:creator>florian_bertsch</dc:creator>
      <dc:date>2018-09-04T11:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Historical and future values with restriction of filter</title>
      <link>https://community.qlik.com/t5/App-Development/Historical-and-future-values-with-restriction-of-filter/m-p/91046#M6074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you could just use for your users a second week-field which is restricted to the past/current data - maybe with something like this: if(YourDateField &amp;gt; today(), null(), week(YourDateField).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 12:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Historical-and-future-values-with-restriction-of-filter/m-p/91046#M6074</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-09-04T12:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Historical and future values with restriction of filter</title>
      <link>https://community.qlik.com/t5/App-Development/Historical-and-future-values-with-restriction-of-filter/m-p/91047#M6075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Include a field alongside your week dates that says whether it is 'Historic', Current' or 'Future'. Put an expression in your filter pane along the lines of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Week_Type = 'Historic' OR Week_Type = 'Current', Week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will only include the Historic and Current dates in the pane&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your charts just use the week dimension and all weeks should get included&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could add a colour expression to your chart to colour the line (or bars) a different colour for the Future weeks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= If(Week_Type = 'Future', RGB(255, 0, 0)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Week_Example.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/212603_Week_Example.PNG" style="height: 338px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 12:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Historical-and-future-values-with-restriction-of-filter/m-p/91047#M6075</guid>
      <dc:creator>mjamesking</dc:creator>
      <dc:date>2018-09-04T12:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Historical and future values with restriction of filter</title>
      <link>https://community.qlik.com/t5/App-Development/Historical-and-future-values-with-restriction-of-filter/m-p/91048#M6076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't restrict my filter with your calculated dimension, because then getFieldSelections(filter) is not working. In the filter pane, I need the original week dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 12:22:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Historical-and-future-values-with-restriction-of-filter/m-p/91048#M6076</guid>
      <dc:creator>florian_bertsch</dc:creator>
      <dc:date>2018-09-04T12:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Historical and future values with restriction of filter</title>
      <link>https://community.qlik.com/t5/App-Development/Historical-and-future-values-with-restriction-of-filter/m-p/91049#M6077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't restrict my filter with your calculated dimension, because then getFieldSelections(filter) is not working. In the filter pane, I need the original week dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 12:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Historical-and-future-values-with-restriction-of-filter/m-p/91049#M6077</guid>
      <dc:creator>florian_bertsch</dc:creator>
      <dc:date>2018-09-04T12:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Historical and future values with restriction of filter</title>
      <link>https://community.qlik.com/t5/App-Development/Historical-and-future-values-with-restriction-of-filter/m-p/91050#M6078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, that won't work. Why are you retrieving the selections for the week dimension (out of curiosity)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 12:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Historical-and-future-values-with-restriction-of-filter/m-p/91050#M6078</guid>
      <dc:creator>mjamesking</dc:creator>
      <dc:date>2018-09-04T12:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Historical and future values with restriction of filter</title>
      <link>https://community.qlik.com/t5/App-Development/Historical-and-future-values-with-restriction-of-filter/m-p/91051#M6079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Concat(Week, ',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To retrieve the possible selections for Week, this will work with the calculated dimension filter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 12:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Historical-and-future-values-with-restriction-of-filter/m-p/91051#M6079</guid>
      <dc:creator>mjamesking</dc:creator>
      <dc:date>2018-09-04T12:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Historical and future values with restriction of filter</title>
      <link>https://community.qlik.com/t5/App-Development/Historical-and-future-values-with-restriction-of-filter/m-p/91052#M6080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you show the future weeks within the filter pane the user could (try) to select them - even if you restored the previous selection-state (in View you could use actions for it and I assume that there are some extensions in Sense which provide similar features) or if you exclude these values within your expressions (maybe with any set analysis) - it would not very user-friendly.&lt;/P&gt;&lt;P&gt;Therefore my suggestion about using a second specialized dimension - and picking the selected or possible dimension-values could be done with concat() or p().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 13:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Historical-and-future-values-with-restriction-of-filter/m-p/91052#M6080</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-09-04T13:05:53Z</dc:date>
    </item>
  </channel>
</rss>

