<?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: Expression Based on User Selection in Qlik Learning Discussions</title>
    <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Expression-Based-on-User-Selection/m-p/767431#M1725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I often have to interrogate list box selections, and I typically use variables to capture these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't open your sample qvw, but you could setup the following three variables and populate them like so.&amp;nbsp; The field that I'm interrogating below is "ver", so you just switch this to the list box field in your app:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV style="margin: 0px;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri,sans-serif;"&gt;vSelectedVersions:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: Arial,sans-serif;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt; font-family: Arial,sans-serif;"&gt;ver&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;,', ',20)&amp;nbsp; - This will list out all the selections in list box, with comma separating&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin: 0px;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin: 0px;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri,sans-serif;"&gt;vFirstSelected: &lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: Arial,sans-serif;"&gt;SubField&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: Arial,sans-serif;"&gt;&lt;STRONG&gt;&lt;EM&gt;vSelectedVersions&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;,', ',1)&amp;nbsp; - This will read the variable above, parsing out the first value in the list&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin: 0px;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin: 0px;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri,sans-serif;"&gt;vSecondSelected:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: Arial,sans-serif;"&gt;SubField&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: Arial,sans-serif;"&gt;&lt;STRONG&gt;&lt;EM&gt;vSelectedVersions&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;,', ',2)&amp;nbsp; - This will read the first variable above, parsing out the second value in the list&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin: 0px;"&gt; &lt;/DIV&gt;&lt;DIV style="margin: 0px;"&gt;Then, play around with displaying these values in Text Box objects or something like that, to come up with the visual you are describing above.&amp;nbsp; It's not the straight table solution you are asking for above, but you might be able to come up with something using these.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Jan 2015 14:28:51 GMT</pubDate>
    <dc:creator>jzimolong</dc:creator>
    <dc:date>2015-01-11T14:28:51Z</dc:date>
    <item>
      <title>Expression Based on User Selection</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Expression-Based-on-User-Selection/m-p/767428#M1722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario like, I have a Straight table and two list boxes . user selects two values in both the list boxes and the chart(straight table) should be shown like. (1st value of listbox1 + 1st value of listbox2) in one expression. next expression will be &lt;/P&gt;&lt;P&gt;(1st value of listbox1 + 2nd value of listbox2) next&lt;/P&gt;&lt;P&gt;(2nd value of listbox1 + 1st value of listbox2) next&lt;/P&gt;&lt;P&gt;(2nd value of listbox1 + 2nd value of listbox2). next&lt;/P&gt;&lt;P&gt;(1st value of listbox1 ) next&lt;/P&gt;&lt;P&gt;(2nd value of listbox1 )&lt;/P&gt;&lt;P&gt;Total 4 expressions should be 1 after the another&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching a sample for your reference. Plz let me know if any clarification. Just want to display expression based on user selected value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2015 12:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Expression-Based-on-User-Selection/m-p/767428#M1722</guid>
      <dc:creator>help4qv123</dc:creator>
      <dc:date>2015-01-11T12:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Based on User Selection</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Expression-Based-on-User-Selection/m-p/767429#M1723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this then:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-01-11 Combinations.PNG" class="image-1 jive-image" src="/legacyfs/online/75058_2015-01-11 Combinations.PNG" style="height: 385px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2015 13:35:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Expression-Based-on-User-Selection/m-p/767429#M1723</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-01-11T13:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Based on User Selection</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Expression-Based-on-User-Selection/m-p/767430#M1724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if you need to keep the selections so they only affect the table(s) then you could put all of them in an Alernate State...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2015 13:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Expression-Based-on-User-Selection/m-p/767430#M1724</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-01-11T13:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Based on User Selection</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Expression-Based-on-User-Selection/m-p/767431#M1725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I often have to interrogate list box selections, and I typically use variables to capture these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't open your sample qvw, but you could setup the following three variables and populate them like so.&amp;nbsp; The field that I'm interrogating below is "ver", so you just switch this to the list box field in your app:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV style="margin: 0px;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri,sans-serif;"&gt;vSelectedVersions:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: Arial,sans-serif;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt; font-family: Arial,sans-serif;"&gt;ver&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;,', ',20)&amp;nbsp; - This will list out all the selections in list box, with comma separating&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin: 0px;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin: 0px;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri,sans-serif;"&gt;vFirstSelected: &lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: Arial,sans-serif;"&gt;SubField&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: Arial,sans-serif;"&gt;&lt;STRONG&gt;&lt;EM&gt;vSelectedVersions&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;,', ',1)&amp;nbsp; - This will read the variable above, parsing out the first value in the list&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin: 0px;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin: 0px;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri,sans-serif;"&gt;vSecondSelected:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: Arial,sans-serif;"&gt;SubField&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: Arial,sans-serif;"&gt;&lt;STRONG&gt;&lt;EM&gt;vSelectedVersions&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial,sans-serif;"&gt;,', ',2)&amp;nbsp; - This will read the first variable above, parsing out the second value in the list&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin: 0px;"&gt; &lt;/DIV&gt;&lt;DIV style="margin: 0px;"&gt;Then, play around with displaying these values in Text Box objects or something like that, to come up with the visual you are describing above.&amp;nbsp; It's not the straight table solution you are asking for above, but you might be able to come up with something using these.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2015 14:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Expression-Based-on-User-Selection/m-p/767431#M1725</guid>
      <dc:creator>jzimolong</dc:creator>
      <dc:date>2015-01-11T14:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Based on User Selection</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Expression-Based-on-User-Selection/m-p/767432#M1726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u...helpful ans....i will try and let you know if any issue....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2015 15:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Expression-Based-on-User-Selection/m-p/767432#M1726</guid>
      <dc:creator>help4qv123</dc:creator>
      <dc:date>2015-01-11T15:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Based on User Selection</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Expression-Based-on-User-Selection/m-p/767433#M1727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This version is an improvement of my first suggestion. It use Alternate State and illustrates how one&lt;/P&gt;&lt;P&gt;could access the dimension value of each dimension in the expression too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-01-11 Combinations 2.PNG" class="image-1 jive-image" src="/legacyfs/online/75062_2015-01-11 Combinations 2.PNG" style="height: 277px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2015 15:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Expression-Based-on-User-Selection/m-p/767433#M1727</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-01-11T15:40:04Z</dc:date>
    </item>
  </channel>
</rss>

