<?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: What if analysis. How to move values in time? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578387#M42151</link>
    <description>&lt;P&gt;Well, I guess you cannot do that without a reload of the script...&lt;/P&gt;&lt;P&gt;Changing the x-axis of the chart will move all the projects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2019 11:37:09 GMT</pubDate>
    <dc:creator>andy</dc:creator>
    <dc:date>2019-05-09T11:37:09Z</dc:date>
    <item>
      <title>What if analysis. How to move values in time?</title>
      <link>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578228#M42132</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;I would like to have&amp;nbsp; your input on a challenge I'm facing. Normally what if analysis as shown by Qlik is just about scaling a measure. This is about "moving" values in the data like using addmonths() in the script answering what if we produce this order 1 month earlier and another 2 months later?&lt;/P&gt;&lt;P&gt;The users uses Qlik Sense today to look at current production planning and material demand.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now they want to be able to move the individual projects in time, that is left and right on the x-axis in the chart below. Like Addmonths(startdate,offset) in the script but they want to be able to do this without having to wait for a scheduled task to reload the application. Also each user should see the original data all the time in the application not being influenced by some other user moving a project 3 months in time.&lt;/P&gt;&lt;P&gt;Any user who added an offset to a project shall be able to store that offset and retrieve it next time.&lt;/P&gt;&lt;P&gt;I've been thinking about&lt;/P&gt;&lt;P&gt;- on demand app generation (ODAG)&lt;/P&gt;&lt;P&gt;- extensions which modifies the underlying data-set so all charts are updated in a session&lt;/P&gt;&lt;P&gt;- mashups with crossfilter and own charts.&lt;/P&gt;&lt;P&gt;I attached a simple qvf to show how it could look like.&lt;/P&gt;&lt;P&gt;Any ideas are highly appreciated!&lt;/P&gt;&lt;P&gt;brgds&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WhatIfProjectMovesInTime.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11729iB4DB8B02BB4E4EA2/image-size/large?v=v2&amp;amp;px=999" role="button" title="WhatIfProjectMovesInTime.png" alt="WhatIfProjectMovesInTime.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WhatIfMaterialDemand.png" style="width: 935px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11730iA68E94192D9E416F/image-size/large?v=v2&amp;amp;px=999" role="button" title="WhatIfMaterialDemand.png" alt="WhatIfMaterialDemand.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578228#M42132</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2024-11-16T20:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: What if analysis. How to move values in time?</title>
      <link>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578374#M42147</link>
      <description>&lt;P&gt;Move all projects to a certain date or a select few? I am not sure I completely understand...&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 11:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578374#M42147</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-09T11:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: What if analysis. How to move values in time?</title>
      <link>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578382#M42149</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Individually the projects shall be possible to move back and forth in time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lets say we want to see how it looks like if Proj C is started 2 months earlier than current plan and Proj E is started 3 months later.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 11:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578382#M42149</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2019-05-09T11:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: What if analysis. How to move values in time?</title>
      <link>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578384#M42150</link>
      <description>&lt;P&gt;My knowledge of Qlik Sense is rather limited, but ODAG basically re-runs the dashboard, so I am not sure if that serves the purpose. But If you have limited number of projects, can you not use a variable offset for each of the project and adjust the timeline based on the user input. For instance they can enter -2 for Project C, if they want to adjust it to be starting 2 months earlier or 2 if they want to adjust it to be starting 2 months later&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 11:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578384#M42150</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-09T11:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: What if analysis. How to move values in time?</title>
      <link>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578387#M42151</link>
      <description>&lt;P&gt;Well, I guess you cannot do that without a reload of the script...&lt;/P&gt;&lt;P&gt;Changing the x-axis of the chart will move all the projects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 11:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578387#M42151</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2019-05-09T11:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: What if analysis. How to move values in time?</title>
      <link>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578389#M42152</link>
      <description>&lt;P&gt;What can you not do without a reload? the variable option? I think variable can work for individual projects without a reload.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 11:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578389#M42152</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-09T11:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: What if analysis. How to move values in time?</title>
      <link>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578392#M42153</link>
      <description>&lt;P&gt;Sorry, I don't see how that should work.&lt;/P&gt;&lt;P&gt;Would you mind to modify the app or post another simple app to show how you would do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 11:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578392#M42153</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2019-05-09T11:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: What if analysis. How to move values in time?</title>
      <link>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578418#M42155</link>
      <description>&lt;P&gt;Something like this&lt;/P&gt;&lt;P&gt;When vProjC is 0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11755i591C26AD85DC1052/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When vProjC is -2&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11757iE3E7EA9F33EC1E80/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does this make sense?&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 12:19:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578418#M42155</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-09T12:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: What if analysis. How to move values in time?</title>
      <link>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578443#M42158</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;That is a helpful suggestion, thanks!&lt;/P&gt;&lt;P&gt;It gets kind of weird when doing a selection though&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StrangeSelectionOfYM.png" style="width: 492px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11760i6A568FBB01B14910/image-size/large?v=v2&amp;amp;px=999" role="button" title="StrangeSelectionOfYM.png" alt="StrangeSelectionOfYM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 12:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578443#M42158</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2019-05-09T12:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: What if analysis. How to move values in time?</title>
      <link>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578446#M42159</link>
      <description>&lt;P&gt;Right, what would you like to see when you make selection in YearMonth field?&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 12:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578446#M42159</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-09T12:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: What if analysis. How to move values in time?</title>
      <link>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578452#M42160</link>
      <description>&lt;P&gt;I think the user would like to see the month selected also in the chart. Which seems impossible and might be a limitation they can live with.&lt;/P&gt;&lt;P&gt;How would you do when the number of projects change at every reload, need to dynamically assign the calculated dimension as well as the variables and the GUI-part...&lt;/P&gt;&lt;P&gt;I guess there will not be more than lets say 30 projects.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 13:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578452#M42160</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2019-05-09T13:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: What if analysis. How to move values in time?</title>
      <link>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578473#M42162</link>
      <description>&lt;P&gt;For selection in YearMonth field... may be change it to a selection in a calculated filter dimension.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Aggr(Only({1} AddMonths(YearMonth, Alt(Pick(Match(Project, 'Proj A', 'Proj B', 'Proj C', 'Proj D', 'Proj E', 'Proj F'), $(vProjA), $(vProjB), $(vProjC), $(vProjD), $(vProjE), $(vProjF)), 0))), Key)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Where Key is a field created by combining YearMonth and Project in the script&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD *,
	 YearMonth&amp;amp;Project as Key;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the changing Projects, you can dynamically create the variables in the script like this&lt;/P&gt;&lt;P&gt;FOR i = 1 to FieldValueCount('Project');&lt;/P&gt;&lt;P&gt;LET vFieldValue = FieldValue('ProjectWithoutSpaces', $(i));&lt;BR /&gt;LET $(vFieldValue) = 0;&lt;BR /&gt;&lt;BR /&gt;NEXT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now your chart dimension can be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Aggr(AddMonths(YearMonth, Alt(Pick(Match(ProjectWithoutSpaces, $(=Concat(DISTINCT Chr(39) &amp;amp; ProjectWithoutSpaces &amp;amp; Chr(39), ', '))), $(=Replace(Concat(DISTINCT '#(' &amp;amp; ProjectWithoutSpaces &amp;amp; ')', ', '), '#', '$'))), 0)), Project, YearMonth)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and filter dimension&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Aggr(AddMonths(YearMonth, Alt(Pick(Match(ProjectWithoutSpaces, $(=Concat(DISTINCT Chr(39) &amp;amp; ProjectWithoutSpaces &amp;amp; Chr(39), ', '))), $(=Replace(Concat(DISTINCT '#(' &amp;amp; ProjectWithoutSpaces &amp;amp; ')', ', '), '#', '$'))), 0)), Key)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 09 May 2019 13:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578473#M42162</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-09T13:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: What if analysis. How to move values in time?</title>
      <link>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578797#M42216</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your effort!&lt;/P&gt;&lt;P&gt;I think it works even better with your filtering-dimension used in the charts as well.&lt;/P&gt;&lt;P&gt;Any ideas how the automatically created variables shall be presented in the GUI to adapt for different number of variables in a nice manner? Create an extension perhaps...&lt;/P&gt;&lt;P&gt;brgds&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 07:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578797#M42216</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2019-05-10T07:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: What if analysis. How to move values in time?</title>
      <link>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578908#M42229</link>
      <description>&lt;P&gt;This is the part I am not sure about. May be instead of assigning customized variable, may be we create generic variable say v1, v2, v3 so that we can always have them with the same value. Will need to play around with the idea to get it to a point where you understand it's limitations, but yet work to some degree of satisfaction.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 11:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1578908#M42229</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-10T11:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: What if analysis. How to move values in time?</title>
      <link>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1579688#M42317</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;I think&amp;nbsp; you answered the question I asked so I'll mark it as answered.&lt;/P&gt;&lt;P&gt;Nice done!&lt;/P&gt;&lt;P&gt;My real case is somewhat more complicated though so maybe I'll go for a session app that is generated from the standard app after the user has selected his offsets anyway.&lt;/P&gt;&lt;P&gt;Thanks for your effort.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IBP_datamodel.png" style="width: 829px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11948i7C3CD96D526C14D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="IBP_datamodel.png" alt="IBP_datamodel.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 19:47:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/What-if-analysis-How-to-move-values-in-time/m-p/1579688#M42317</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2019-05-13T19:47:57Z</dc:date>
    </item>
  </channel>
</rss>

