<?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 conditonal expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/conditonal-expressions/m-p/457162#M170668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I am trying to allow the end user of my document to flex an input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example the user might input contract value which would then change commission depending on the value entered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contract value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; commission&lt;/P&gt;&lt;P&gt;&amp;lt;5000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;&amp;lt;10000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;&amp;lt;20000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 300&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue I have is that condition to work out the commission is quite long so cannot be done with an if statement as it seems to go beyind the maximum number of conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to avoid the user reloading any data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jan 2013 08:59:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-01-25T08:59:06Z</dc:date>
    <item>
      <title>conditonal expressions</title>
      <link>https://community.qlik.com/t5/QlikView/conditonal-expressions/m-p/457162#M170668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I am trying to allow the end user of my document to flex an input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example the user might input contract value which would then change commission depending on the value entered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contract value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; commission&lt;/P&gt;&lt;P&gt;&amp;lt;5000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;&amp;lt;10000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;&amp;lt;20000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 300&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue I have is that condition to work out the commission is quite long so cannot be done with an if statement as it seems to go beyind the maximum number of conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to avoid the user reloading any data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 08:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditonal-expressions/m-p/457162#M170668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-25T08:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: conditonal expressions</title>
      <link>https://community.qlik.com/t5/QlikView/conditonal-expressions/m-p/457163#M170669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Hi Nandy,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Instead of IF statements you can create a Data Island table which contains: [Contract value] and [commission] fields. Then capture the user input in the variable and use this variable which holds the user input value as Search String in Set Analysis. Something like this...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003366;"&gt;&lt;STRONG&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;ONLY({&amp;lt;[commission] = {$(vMyUserInput)}&amp;gt;} [Contract value])&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Something like this would give you the [Contract value] user wanted to use in calculation. You can also have range instead of static commission values. If you need further help then please post the sample QVW file.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;I hope this helps!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Cheers,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;DV&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;&lt;A href="http://www.QlikShare.com"&gt;www.QlikShare.com&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 10:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditonal-expressions/m-p/457163#M170669</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2013-01-25T10:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: conditonal expressions</title>
      <link>https://community.qlik.com/t5/QlikView/conditonal-expressions/m-p/457164#M170670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak, thanks for your response, I think this is the solution for me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately my set analysis experience is limited - I've attached a test file to my original post- my attempt to calculate the correct commission is adding them all up at the moment, and my attempt to subsitute in a variable isn;t working at all - can you help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nandy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 08:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditonal-expressions/m-p/457164#M170670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-28T08:55:00Z</dc:date>
    </item>
  </channel>
</rss>

