<?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 Linking listbox to Calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Linking-listbox-to-Calculated-dimension/m-p/253107#M95956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am not understanding clearly &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but hope below help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; take a list box and write same expression as CD in list box&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Sep 2011 17:30:40 GMT</pubDate>
    <dc:creator>SunilChauhan</dc:creator>
    <dc:date>2011-09-11T17:30:40Z</dc:date>
    <item>
      <title>Linking listbox to Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-listbox-to-Calculated-dimension/m-p/253106#M95955</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;I am new to QlikView and have run into a problem. I would appreciate it very much if someone could guide me to a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a calculated dimension, say CD, in a pivot table.&lt;/P&gt;&lt;P&gt;This calculated dimension is dependent on the value of a slider.&lt;/P&gt;&lt;P&gt;I need to link CD to a list box so that the user can filter the records in the pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I using the same CD in the listbox but have not been able to get the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, I would be extremely thankful if someone could help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Sep 2011 15:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-listbox-to-Calculated-dimension/m-p/253106#M95955</guid>
      <dc:creator />
      <dc:date>2011-09-11T15:21:50Z</dc:date>
    </item>
    <item>
      <title>Linking listbox to Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-listbox-to-Calculated-dimension/m-p/253107#M95956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am not understanding clearly &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but hope below help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; take a list box and write same expression as CD in list box&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Sep 2011 17:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-listbox-to-Calculated-dimension/m-p/253107#M95956</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-09-11T17:30:40Z</dc:date>
    </item>
    <item>
      <title>Linking listbox to Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-listbox-to-Calculated-dimension/m-p/253108#M95957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Sunil's suggestion does not work, then I suggest that you post your model, or a sample of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Sep 2011 18:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-listbox-to-Calculated-dimension/m-p/253108#M95957</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-09-11T18:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Linking listbox to Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-listbox-to-Calculated-dimension/m-p/253109#M95958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is attached a sample of what I am trying to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you will see, the listbox does not work. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 05:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-listbox-to-Calculated-dimension/m-p/253109#M95958</guid>
      <dc:creator />
      <dc:date>2011-09-12T05:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Linking listbox to Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-listbox-to-Calculated-dimension/m-p/253110#M95959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi garymokha,&lt;/P&gt;&lt;P&gt;you can use &lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=aggr(if(MARKS/100&amp;lt;=THRESHOLD,'PASS','FAIL'),MARKS)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;as the listbox-expression and qlikview will select the corresponding records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sven&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/garymokha" id="jive-647124250700651946413"&gt;garymokha&lt;/A&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 09:13:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-listbox-to-Calculated-dimension/m-p/253110#M95959</guid>
      <dc:creator>s_uhlig</dc:creator>
      <dc:date>2011-09-12T09:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Linking listbox to Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-listbox-to-Calculated-dimension/m-p/253111#M95960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi S.Uhlig,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another question, what if instead of MARKS, I had something like this in the IF condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(PRODA_SALES/TOTAL_SALES&amp;gt;=THRESHOLD,'A',&lt;/P&gt;&lt;P&gt;IF(PRODB_SALES/TOTAL_SALES&amp;gt;=THRESHOLD,'B','NEITHER')) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what would I use as dimension in the AGGR function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw, your suggested method worked perfectly for the sample I posted, but I have a more complex requirement as well (as posted in this post). Would be grateful if you could suggest a solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 09:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-listbox-to-Calculated-dimension/m-p/253111#M95960</guid>
      <dc:creator />
      <dc:date>2011-09-12T09:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Linking listbox to Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-listbox-to-Calculated-dimension/m-p/253112#M95961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gary,&lt;/P&gt;&lt;P&gt;of course, it depends highly on our model and therefore the only suggestion I can give, is that qlikview does the selection based on the aggr dimensions.&lt;/P&gt;&lt;P&gt;Imagine a table like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id, a, b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 2, 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 3, 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 4, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 5, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, 5, 5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now you want a selection where a+b&amp;lt;10. You can do something like aggr(a+b&amp;lt;10,a,b), which selects a=[2..5] and b=[2..5] when you press true (-1) in your listbox.&lt;/P&gt;&lt;P&gt;This could be okay, but in our situation we don't want the combination a=5 and b=5. As you can see, we have to rely on column id, because it's reflects the relation between a and b. With the expression aggr(a+b&amp;lt;10,id) we accomplished the desired behavior.&lt;/P&gt;&lt;P&gt;Nice? Maybe we don't want to expose our technical key id to the ui, but now it appears whithin the current selections - okay we are back at step 1 - it depends on your model and what you want to do with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 22:45:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-listbox-to-Calculated-dimension/m-p/253112#M95961</guid>
      <dc:creator>s_uhlig</dc:creator>
      <dc:date>2011-09-12T22:45:09Z</dc:date>
    </item>
  </channel>
</rss>

