<?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: selecting calculated values in dropdown box gives wrong result in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/selecting-calculated-values-in-dropdown-box-gives-wrong-result/m-p/1115882#M368377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide a small sample to test this out..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 May 2016 22:26:35 GMT</pubDate>
    <dc:creator>trdandamudi</dc:creator>
    <dc:date>2016-05-10T22:26:35Z</dc:date>
    <item>
      <title>selecting calculated values in dropdown box gives wrong result</title>
      <link>https://community.qlik.com/t5/QlikView/selecting-calculated-values-in-dropdown-box-gives-wrong-result/m-p/1115881#M368376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm calculatin margins for products of 2 company's, with "%id_legalentity_product" 1 and 2.&lt;/P&gt;&lt;P&gt;The margin is calculated in an expression "eMargeProduct".&lt;/P&gt;&lt;P&gt;And depending on the legal entity a minimum margin is required: "vMarmeMinimumLegalEntity1" and "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vMarmeMinimumLegalEntity2"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to add a dropdownlist in which i can isolate the articles that are giving problems.&lt;/P&gt;&lt;P&gt;I want 4 values to select from:&lt;/P&gt;&lt;P&gt;-Margin 1 too low&lt;/P&gt;&lt;P&gt;-Margin 1 ok&lt;/P&gt;&lt;P&gt;-Margin 2 too low&lt;/P&gt;&lt;P&gt;-Margin 2 ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that way i can make a subselection for only those articles with a margin lower than expected stated in the variables depending on the legal entity.&lt;/P&gt;&lt;P&gt;I made an expression like this in dropdown box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ( &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;%id_legalentity_product&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = 1 , &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; (eMargeProduct &amp;lt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vMargeMinimumLegalEntity1,&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; 'Margin 1 too low', 'Margin 1 ok'),&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ( &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;%id_legalentity_product&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = 2,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ( eMargeProduct &amp;lt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vMargeMinimumLegalEntity2&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, 'Margin 2 too low', 'Margin 2 ok'))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I do get a dropdown box with the 4 values in it.&lt;/P&gt;&lt;P&gt;But when i select for example 'Margin 1 too low', it gives me every article depending to LegalEntity1,&lt;/P&gt;&lt;P&gt;also the ones were 'Margin 1 ok'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am i doing wrong? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grtz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 21:54:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selecting-calculated-values-in-dropdown-box-gives-wrong-result/m-p/1115881#M368376</guid>
      <dc:creator>chriscools</dc:creator>
      <dc:date>2016-05-10T21:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: selecting calculated values in dropdown box gives wrong result</title>
      <link>https://community.qlik.com/t5/QlikView/selecting-calculated-values-in-dropdown-box-gives-wrong-result/m-p/1115882#M368377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide a small sample to test this out..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 22:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selecting-calculated-values-in-dropdown-box-gives-wrong-result/m-p/1115882#M368377</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-05-10T22:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: selecting calculated values in dropdown box gives wrong result</title>
      <link>https://community.qlik.com/t5/QlikView/selecting-calculated-values-in-dropdown-box-gives-wrong-result/m-p/1115883#M368378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm uploading a small example now.&lt;/P&gt;&lt;P&gt;There a few articles for each of the 2 legal entities.&lt;/P&gt;&lt;P&gt;And for each entity there are articles above and under the desired margin, which is set in a different variable per legal entity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i would like is that the dropdown box (in green) makes it possible to select only those articles which are beneath the desired margin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bizar thing now is that it does work...&lt;/P&gt;&lt;P&gt;I remade the example to make sure it didn't do anything different, but what i find is that after i reduce the data it does what i want... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody might have a clue how this could be possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grtz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 07:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selecting-calculated-values-in-dropdown-box-gives-wrong-result/m-p/1115883#M368378</guid>
      <dc:creator>chriscools</dc:creator>
      <dc:date>2016-05-11T07:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: selecting calculated values in dropdown box gives wrong result</title>
      <link>https://community.qlik.com/t5/QlikView/selecting-calculated-values-in-dropdown-box-gives-wrong-result/m-p/1115884#M368379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you create a sample using this approach (if you have not done this already) and see if you can replicate the issue&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 08:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/selecting-calculated-values-in-dropdown-box-gives-wrong-result/m-p/1115884#M368379</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-11T08:08:29Z</dc:date>
    </item>
  </channel>
</rss>

