<?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: Dynamic What-If Analysis using variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-What-If-Analysis-using-variables/m-p/488998#M182757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is quite similar to the question you asked &lt;A _jive_internal="true" href="https://community.qlik.com/thread/91338"&gt;here&lt;/A&gt;, right? The solutions provided should work (it might get a bit more tricky if you want to prepare for multiple set measures in a script solution).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given the suggested solution for a dynamic approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum(-1 * (MEASURE_2='Y') * (MEASURE_3='Y') * (MEASURE_4='Y') )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You can try creating a variable that creates the string &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(MEASURE_2='Y') * (MEASURE_3='Y') * (MEASURE_4='Y') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;based on user selecting the Measures to be assumed 'Y' (So all others should be used for the string).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2013 17:38:55 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-09-27T17:38:55Z</dc:date>
    <item>
      <title>Dynamic What-If Analysis using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-What-If-Analysis-using-variables/m-p/488997#M182756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a question about dynamic WHAT-IF analysis using variables.&amp;nbsp; Here is what I am hoping to accomplish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the chart below, I want to say WHAT IF MEAS_1 was always 1, how many providers would be at a total of 3?&amp;nbsp; I would also want to ask what if MEAS_1 and MEAS_2 were both 1, how many providers would be at a total of 3.&amp;nbsp; Perhaps have the user select which measures to check. I'm sure there is a way to accomplish this in QVW, I have just not figured it out yet.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;PROV&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;DATE&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;MEAS_1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;MEAS_2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;MEAS_3&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;P&gt;&lt;STRONG&gt;TOTAL&lt;/STRONG&gt;&lt;/P&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1/1/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1/1/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1/1/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;D&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1/1/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;E&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1/1/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 17:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-What-If-Analysis-using-variables/m-p/488997#M182756</guid>
      <dc:creator>phcaptjim</dc:creator>
      <dc:date>2013-09-27T17:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic What-If Analysis using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-What-If-Analysis-using-variables/m-p/488998#M182757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is quite similar to the question you asked &lt;A _jive_internal="true" href="https://community.qlik.com/thread/91338"&gt;here&lt;/A&gt;, right? The solutions provided should work (it might get a bit more tricky if you want to prepare for multiple set measures in a script solution).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given the suggested solution for a dynamic approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum(-1 * (MEASURE_2='Y') * (MEASURE_3='Y') * (MEASURE_4='Y') )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You can try creating a variable that creates the string &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(MEASURE_2='Y') * (MEASURE_3='Y') * (MEASURE_4='Y') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;based on user selecting the Measures to be assumed 'Y' (So all others should be used for the string).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 17:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-What-If-Analysis-using-variables/m-p/488998#M182757</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-27T17:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic What-If Analysis using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-What-If-Analysis-using-variables/m-p/488999#M182758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Swuehl.&amp;nbsp; The static solution works well using the expression you suggested with Sum * -1 to get the answer, my trouble lies with having the user make the selections.&amp;nbsp; I like your suggestion though and will try and implement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 17:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-What-If-Analysis-using-variables/m-p/488999#M182758</guid>
      <dc:creator>phcaptjim</dc:creator>
      <dc:date>2013-09-27T17:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Dynamic What-If Analysis using variables</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-What-If-Analysis-using-variables/m-p/489000#M182759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It all burns down to creating a field that contains all your Measure field names (e.g. called Measures), then use something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( concat({1-$} Measures, ' * ') )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 10:16:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-What-If-Analysis-using-variables/m-p/489000#M182759</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-30T10:16:40Z</dc:date>
    </item>
  </channel>
</rss>

