<?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: Dynamically applied filter in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078631#M523536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Amit.&lt;/P&gt;&lt;P&gt;But here, Delhi and Pune are hardcoded values given in filters. I need them to be based on what user gives while opening the report. Just like Prompts in Microstrategy reporting tool.&lt;/P&gt;&lt;P&gt;The Qlikview should hit the DB with only the values which user gives at runtime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Mar 2016 06:29:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-29T06:29:58Z</dc:date>
    <item>
      <title>Dynamically applied filter in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078626#M523531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can we load data in qlikview with dynamically required filters applied.&lt;/P&gt;&lt;P&gt;i.e I have Sales data corresponding to different regions in SQL DB.&lt;/P&gt;&lt;P&gt;I want to develop a qlikview report which should load data for a random region that I specify dynamically.&lt;/P&gt;&lt;P&gt;The load query should hit the DB with filter as dynamically given region&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 07:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078626#M523531</guid>
      <dc:creator />
      <dc:date>2016-03-28T07:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically applied filter in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078627#M523532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vRandRegion = Pick(CEIL(RAND()*3), 'West','East','South');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&amp;nbsp; &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;FROM YourTable&lt;/P&gt;&lt;P&gt;WHERE REGION = '$(vRandRegion)';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 18:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078627#M523532</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-28T18:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically applied filter in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078628#M523533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By Random, I meant that region must be specified dynamically by the user.&lt;/P&gt;&lt;P&gt;When the user opens the report, he must be provided with a drop down which has all the possible values present in that region column of the DB table.&lt;/P&gt;&lt;P&gt;The selected region in that drop down must be applied as a filter in the load script and fetch only that region data.&lt;/P&gt;&lt;P&gt;Is this possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 05:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078628#M523533</guid>
      <dc:creator />
      <dc:date>2016-03-29T05:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically applied filter in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078629#M523534</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;Like this???&lt;/P&gt;&lt;P&gt;LOAD Country, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; City, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Marks&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where Match(City,'DELHI','PUNE');&amp;nbsp; (Similar condition you can give for Region)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 05:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078629#M523534</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-03-29T05:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically applied filter in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078630#M523535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Define the region to be loaded in inline table&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Region:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load *, concat(chr(39)&amp;amp;Region&amp;amp;chr(39),',') as &lt;SPAN style="font-size: 13.3333px;"&gt;Region &lt;/SPAN&gt;inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;REGION&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;West&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;North&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;South ];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;let vSelectRegion = peek('&lt;SPAN style="font-size: 13.3333px;"&gt;Region&lt;/SPAN&gt;',0,'&lt;SPAN style="font-size: 13.3333px;"&gt;Region&lt;/SPAN&gt;');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL SELECT *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM TABLE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHERE REGION IN($(&lt;SPAN style="font-size: 13.3333px;"&gt;vSelectRegion&lt;/SPAN&gt;));&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 05:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078630#M523535</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-29T05:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically applied filter in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078631#M523536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Amit.&lt;/P&gt;&lt;P&gt;But here, Delhi and Pune are hardcoded values given in filters. I need them to be based on what user gives while opening the report. Just like Prompts in Microstrategy reporting tool.&lt;/P&gt;&lt;P&gt;The Qlikview should hit the DB with only the values which user gives at runtime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 06:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078631#M523536</guid>
      <dc:creator />
      <dc:date>2016-03-29T06:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically applied filter in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078632#M523537</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;If you want to enter value for region dynamically by user input. Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vRegion = Input('Enter region', 'Input box');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RegionInfo:&lt;/P&gt;&lt;P&gt;Load * from yourtable Where Region = '$(&lt;SPAN style="font-size: 13.3333px;"&gt;vRegion&lt;/SPAN&gt;)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While reloading, its ask user to enter value for region.&amp;nbsp; And it display those region information alone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 06:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078632#M523537</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2016-03-29T06:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically applied filter in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078633#M523538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mayil. I tried that and was successful.&lt;/P&gt;&lt;P&gt;I could give multiple values in input box and load data for those inputs values.&lt;/P&gt;&lt;P&gt;Is there any flexibility that user can see all the possible values to the field (in this case Region) and select from that list?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 06:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078633#M523538</guid>
      <dc:creator />
      <dc:date>2016-03-29T06:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically applied filter in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078634#M523539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice solution &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. If i want to enter multiple filters in input box, then how should i proceed ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 07:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078634#M523539</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2016-03-29T07:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically applied filter in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078635#M523540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then i think you need to enter the Value like below in input box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'North','South'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then below script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RegionInfo:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load * from yourtable Where match(Region ,$(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;vRegion&lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have not QV to check this but you can try&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 07:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078635#M523540</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-29T07:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically applied filter in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078636#M523541</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;Try like this&lt;/P&gt;&lt;P&gt;Let vName = Input('Enter region', 'Input box');&lt;/P&gt;&lt;P&gt;Let vName = Chr(39) &amp;amp; Replace('$(vName)', ',', Chr(39)&amp;amp;','&amp;amp;Chr(39)) &amp;amp; Chr(39);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CustomerInfo:&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: #edf8ca;"&gt;Load * from yourtable Where Mix&lt;/SPAN&gt;Match([Customer A/c Name], $(vName));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; User need to enter like smith,jones etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 08:02:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078636#M523541</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2016-03-29T08:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically applied filter in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078637#M523542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a variable &lt;EM&gt;vUserSelect&lt;/EM&gt; in your UI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Only(RegionField) // or concat field values&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, in your script &amp;amp; on reload, test if the variable shows a value and filter your table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vWhere = If(Isnull(vUserSelect),'1=1', 'Region = ' &amp;amp; chr(39) &amp;amp; vUserSelect &amp;amp; chr(39));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHERE $(vWhere);&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 13:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-applied-filter-in-load-script/m-p/1078637#M523542</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-29T13:56:59Z</dc:date>
    </item>
  </channel>
</rss>

