<?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: Show customers based on a button in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390675#M485786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How come it does not work with a simple variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i got variable vCustomerAtoF = if(DimCustomers &amp;lt; 'F', DimCustomer,'')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i type the expression in my listbox then i will get all customers up to F&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, do i insert it as a variable, nothing happens? But its the same basically?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Apr 2013 14:09:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-23T14:09:06Z</dc:date>
    <item>
      <title>Show customers based on a button</title>
      <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390668#M485779</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;If i have a listbox with customers from A to Z - But i have sooooo many i wanna split them up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanna split them up by a button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My button should be named A to F and when i press that button, i should only be able to see customers from A to F in a listbox...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i do that???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a listbox called Customers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And a button called A to F&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my button i created an action called select in field (field: Customers, Search string: if(DimCustomers &amp;lt; 'G', DimCustomers, '')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that does not seem to work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 13:04:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390668#M485779</guid>
      <dc:creator />
      <dc:date>2013-04-23T13:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Show customers based on a button</title>
      <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390669#M485780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;define variable for your range of name then take&lt;/P&gt;&lt;P&gt;button--&amp;gt;&lt;/P&gt;&lt;P&gt;action--&amp;gt;&lt;/P&gt;&lt;P&gt;setvariable--&amp;gt;&lt;/P&gt;&lt;P&gt;variablename= var&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 13:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390669#M485780</guid>
      <dc:creator />
      <dc:date>2013-04-23T13:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Show customers based on a button</title>
      <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390670#M485781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That does not work??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what should value be? And i guess my variable should not be vCustomers = &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;if(DimCustomers &amp;lt; 'G', DimCustomers, '')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;buy something else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;vCustomers = DimCustomers&amp;gt;='G' ??&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 13:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390670#M485781</guid>
      <dc:creator />
      <dc:date>2013-04-23T13:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Show customers based on a button</title>
      <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390671#M485782</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;You can use function &lt;/P&gt;&lt;P&gt;ORD(custumer) &lt;/P&gt;&lt;P&gt;which returns an integer that is the ASCII number of the first letter of your filed "custumer"&lt;/P&gt;&lt;P&gt;If you want to cut with "F", then the ASCII number is 70. You can use a button with condition on ASCII number.&lt;/P&gt;&lt;P&gt;In your script you can add the table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CustumerLetter:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; custumer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ORD(custumer)&amp;lt;=70,'A to F','G to Z') as CustumerLetter&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YourTableName; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then your don't even need button, your selection list on CustumerLetter is enough&lt;/P&gt;&lt;P&gt;If you want more help, join your qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 13:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390671#M485782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-23T13:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Show customers based on a button</title>
      <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390672#M485783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ive just attached my document. Can you have a look=? I dont wont to cut anything away in my model. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want Buttons to be like A to F and G to L for instance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which when you hit one of the buttons, you are only able to see A to F Customers in a listbox..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 13:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390672#M485783</guid>
      <dc:creator />
      <dc:date>2013-04-23T13:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Show customers based on a button</title>
      <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390673#M485784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your document was not joined to your message.&lt;/P&gt;&lt;P&gt;But you can use this method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CustumerLetter:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; custumer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ORD(custumer)&amp;lt;=70,'A to F',if(ORD(custumer)&amp;lt;=76,'G to L','M to Z')) as CustumerLetter&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YourTableName; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then your don't even need button, your selection list on CustumerLetter is enough&lt;/P&gt;&lt;P&gt;If you want more help, join your qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 13:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390673#M485784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-23T13:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Show customers based on a button</title>
      <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390674#M485785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YEs it is in the top, to the subject. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you know which ord number the specific letters got? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, i want a button !! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; I dont want to cut it out by scripting.. I can easily do that by other methods. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 13:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390674#M485785</guid>
      <dc:creator />
      <dc:date>2013-04-23T13:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Show customers based on a button</title>
      <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390675#M485786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How come it does not work with a simple variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i got variable vCustomerAtoF = if(DimCustomers &amp;lt; 'F', DimCustomer,'')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i type the expression in my listbox then i will get all customers up to F&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, do i insert it as a variable, nothing happens? But its the same basically?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 14:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390675#M485786</guid>
      <dc:creator />
      <dc:date>2013-04-23T14:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Show customers based on a button</title>
      <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390676#M485787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the attached should work as you asked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 16:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390676#M485787</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2013-04-23T16:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Show customers based on a button</title>
      <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390677#M485788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Too many equal signs.&lt;/P&gt;&lt;P&gt;Your variable is: =if(DimCustomers &amp;lt; 'F', DimCustomer,'')&lt;/P&gt;&lt;P&gt;If you put $(vCustomerAtoF) as expression in ListBox, QlikView will always stick '=' in front of it automatically, and the formula will expand to ==if(DimCustomers &amp;lt; 'F', DimCustomer,'') wihich is invalid. Remove equal sign from variable contents and it should work. Also, I suggest using Null() instead of '', or you will get a clickable blank value associated to all clients over F in your listbox.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 16:30:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390677#M485788</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2013-04-23T16:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Show customers based on a button</title>
      <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390678#M485789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;brilliant, can you maybe explain what the expressions do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what does if(cid,1,0,1) do??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and what does if(dimcustomers,1)&amp;gt;'m',dimcustomers do??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 18:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390678#M485789</guid>
      <dc:creator />
      <dc:date>2013-04-23T18:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Show customers based on a button</title>
      <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390679#M485790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i use a variable and do like you said. It will only be show customers from A to M, but when i try to hit the button again, to see the rest, it disspear, like its hidden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 18:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390679#M485790</guid>
      <dc:creator />
      <dc:date>2013-04-23T18:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Show customers based on a button</title>
      <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390680#M485791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How come my table is hidden when trying to make it a variable, i can repost the document, so you can see what i mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and what if i want to make a button for both A to M and a button for N to Z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****New document uploaded with new example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 18:28:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390680#M485791</guid>
      <dc:creator />
      <dc:date>2013-04-23T18:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Show customers based on a button</title>
      <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390681#M485792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(cid,1,0,1) is to make the cid change every time a click is happen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DimPotentialCustomers.CustomerID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ,1)&amp;gt;'m',&amp;nbsp; is to make sure all the customer's first letter&amp;nbsp; is from A-M. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if you have 2 buttons that's fine too, you do&amp;nbsp; need to 2 variable for each botton and then in the action set them to 1.(you do not need if(cid,1,0,1) instead you juts put 1 there) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 18:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390681#M485792</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2013-04-23T18:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Show customers based on a button</title>
      <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390682#M485793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how did you make my listbox able to take from N to last when hitting button?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which expressions says that ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is tgat because of the 1 in left(dimpotentialcustomers,1) &amp;gt; 'm' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when CID is 1 its bigger than M ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 18:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390682#M485793</guid>
      <dc:creator />
      <dc:date>2013-04-23T18:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Show customers based on a button</title>
      <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390683#M485794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are actually 2 list boxs. one shows from A-M the other shows from N-Z&lt;/P&gt;&lt;P&gt;When the button was hit, one is hidden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the layout of the listbox, there is a show condition look at there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left function returns the number of the charactor of the string, in this case is the first charactor of the customerID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CID is only a variable&amp;nbsp;&amp;nbsp; to define the show condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 18:47:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390683#M485794</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2013-04-23T18:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Show customers based on a button</title>
      <link>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390684#M485795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AHHH so you placed two listboxes ontop of each other!! FANCY!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt; and tricky! Then it works... thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 18:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-customers-based-on-a-button/m-p/390684#M485795</guid>
      <dc:creator />
      <dc:date>2013-04-23T18:50:26Z</dc:date>
    </item>
  </channel>
</rss>

