<?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: Variables with Direct Discovery in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables-with-Direct-Discovery/m-p/1720908#M833686</link>
    <description>&lt;P&gt;Hello, were you able to get this use case work. I have a similar scenario and trying to figure out options.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jun 2020 14:06:27 GMT</pubDate>
    <dc:creator>rajreddys</dc:creator>
    <dc:date>2020-06-22T14:06:27Z</dc:date>
    <item>
      <title>Variables with Direct Discovery</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-Direct-Discovery/m-p/1308118#M833681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to perform following operation:&lt;/P&gt;&lt;P&gt;1. Load distinct customerid from table (in ListBox) (table T1)&lt;/P&gt;&lt;P&gt;2. Load data in table box based on CustomerId entered by user in Input Box (table T2). This value I am capturing in vCustomerId variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The step 1 works fine. But for step 2 it loads complete data irrespective the value entered by user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, can we re-populate table T2 when user select any value in list box of above step 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;DIRECT QUERY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DIMENSION&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID AS [Cust Id]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM Orders;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vCustomerId = Null;&lt;/P&gt;&lt;P&gt;LET vCustomerId = Input('Please Enter the Customerid', 'CustomerId Input');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM Orders where customerid='$(vCustomerId)'; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-Direct-Discovery/m-p/1308118#M833681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variables with Direct Discovery</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-Direct-Discovery/m-p/1308119#M833682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For load customers, you can also write:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID as [Cust Id]&lt;/P&gt;&lt;P&gt;from Orders;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for second question, you can use variable in the graph's formulas and isn't necesary in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 07:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-Direct-Discovery/m-p/1308119#M833682</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2017-06-04T07:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variables with Direct Discovery</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-Direct-Discovery/m-p/1308120#M833683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, forgot to mention I am using sql server as data source.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 10:29:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-Direct-Discovery/m-p/1308120#M833683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-04T10:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Variables with Direct Discovery</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-Direct-Discovery/m-p/1308121#M833684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the same, you can use DISTINCT with SQL SERVER also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD DISTINCT&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID as [Cust Id]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;SQL SELECT *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;FROM ........;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 10:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-Direct-Discovery/m-p/1308121#M833684</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2017-06-04T10:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Variables with Direct Discovery</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-Direct-Discovery/m-p/1308122#M833685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;SQL SELECT DISTINCT(CustomerID) AS [Cust Id] FROM NWindQlikView.dbo.Orders;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vCustomerId = Null;&lt;/P&gt;&lt;P&gt;LET vCustomerId = Input('Please Enter the Customerid', 'CustomerId Input');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;DIRECT QUERY DIMENSION CustomerID&lt;/P&gt;&lt;P&gt;detail OrderID,OrderDate&lt;/P&gt;&lt;P&gt;FROM NWindQlikView.dbo.Orders where customerid='$(vCustomerId)'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The T1 is binded to ListBox and T2 is binded to Tablebox.&lt;/P&gt;&lt;P&gt;The T2 works fine when loaded for the first time. It loads data based on customerid entered by user.&lt;/P&gt;&lt;P&gt;My requirement that if user selects the value in Listbox(of T1) table the TableBox(T2) should be filled from database (as Direct Query is used).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 15:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-Direct-Discovery/m-p/1308122#M833685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-04T15:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Variables with Direct Discovery</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-with-Direct-Discovery/m-p/1720908#M833686</link>
      <description>&lt;P&gt;Hello, were you able to get this use case work. I have a similar scenario and trying to figure out options.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 14:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-with-Direct-Discovery/m-p/1720908#M833686</guid>
      <dc:creator>rajreddys</dc:creator>
      <dc:date>2020-06-22T14:06:27Z</dc:date>
    </item>
  </channel>
</rss>

