<?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 How to refresh value from the filter selection to load script with store procedure in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-refresh-value-from-the-filter-selection-to-load-script/m-p/1721528#M5255</link>
    <description>&lt;P&gt;I'm fairly new to QlikSense. Looks for help on the below issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the initial load script with passing a value to variable in the store procedure o get the data work fine.&lt;/P&gt;&lt;P&gt;But when we are create a report along with filter selection and refresh the data based on filter selection. Unable to get the data refresh by passing the value to the assign variable.&lt;/P&gt;&lt;P&gt;Here is the below script along with an example.&lt;/P&gt;&lt;P&gt;we have multiple campus where i'm getting it from the below select and load in the campus table. By using campus in the filter selection. IF i select a value ('A')&amp;nbsp; from campus filter then it needs to assign to variable&amp;nbsp;(VCAMPUS) and refresh the load script for that campus.&lt;/P&gt;&lt;P&gt;Same situation with Year. If i change value from 2019 to 2020 then underlying script need to refresh with 2020 and get the data for the given selection of value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- How to link a variable to filter selection. So it's can pass the variable to load script and refresh the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;+==================================&lt;BR /&gt;LOAD&lt;BR /&gt;YEAR;&lt;BR /&gt;[YEAR_List]:&lt;BR /&gt;select distinct YEAR AS YEAR from (&lt;BR /&gt;select to_char(report_date,'YYYY') YEAR from cargo&lt;BR /&gt;union&lt;BR /&gt;select to_char(report_date,'YYYY') YEAR from passengers&lt;BR /&gt;union&lt;BR /&gt;select to_char(report_date,'YYYY') YEAR from operations)&lt;BR /&gt;order by YEAR;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LIB CONNECT TO 'PRWRT';&lt;BR /&gt;SET vQVDPath='D:/QlikSense';&lt;BR /&gt;SET vCAMPUS = 'DFG';&lt;BR /&gt;SET vMONTH = 'MAY';&lt;BR /&gt;SET vYEAR = '2018';&lt;BR /&gt;SET v_VAR1 = 'C';&lt;BR /&gt;SET v_VAR2 = '';&lt;BR /&gt;SET v_VAR3 = 'N';&lt;BR /&gt;SET v_VAR4 = 'N';&lt;BR /&gt;SET v_VAR5 = 'ALL';&lt;BR /&gt;SET v_VAR6 = 'ALL';&lt;BR /&gt;SET v_VAR7 = 'N';&lt;BR /&gt;SET v_VAR8 = 'N';&lt;BR /&gt;SET v_VAR9 = 'N';&lt;BR /&gt;SET v_VAR10 = 'C';&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT * FROM TABLE(MWAA_APSIRR_PKG.apsirr_type_cc_agt1('$(VCAMPUS)','$(vMONTH)','$(vYEAR)','$(v_VAR1)','$(v_VAR2)','$(v_VAR3)','$(v_VAR4)','$(v_VAR5)','$(v_VAR6)','$(v_VAR7)','$(v_VAR8)','$(v_VAR9)','$(v_VAR10)'));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;CAMPUS1;&lt;BR /&gt;[CAMPUS]:&lt;BR /&gt;Select DISTINCT CAMPUS AS CAMPUS1&lt;BR /&gt;FROM&lt;BR /&gt;TOOLBOX.CAMPUS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jun 2020 04:11:43 GMT</pubDate>
    <dc:creator>rtaraka</dc:creator>
    <dc:date>2020-06-24T04:11:43Z</dc:date>
    <item>
      <title>How to refresh value from the filter selection to load script with store procedure</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-refresh-value-from-the-filter-selection-to-load-script/m-p/1721528#M5255</link>
      <description>&lt;P&gt;I'm fairly new to QlikSense. Looks for help on the below issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the initial load script with passing a value to variable in the store procedure o get the data work fine.&lt;/P&gt;&lt;P&gt;But when we are create a report along with filter selection and refresh the data based on filter selection. Unable to get the data refresh by passing the value to the assign variable.&lt;/P&gt;&lt;P&gt;Here is the below script along with an example.&lt;/P&gt;&lt;P&gt;we have multiple campus where i'm getting it from the below select and load in the campus table. By using campus in the filter selection. IF i select a value ('A')&amp;nbsp; from campus filter then it needs to assign to variable&amp;nbsp;(VCAMPUS) and refresh the load script for that campus.&lt;/P&gt;&lt;P&gt;Same situation with Year. If i change value from 2019 to 2020 then underlying script need to refresh with 2020 and get the data for the given selection of value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- How to link a variable to filter selection. So it's can pass the variable to load script and refresh the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;+==================================&lt;BR /&gt;LOAD&lt;BR /&gt;YEAR;&lt;BR /&gt;[YEAR_List]:&lt;BR /&gt;select distinct YEAR AS YEAR from (&lt;BR /&gt;select to_char(report_date,'YYYY') YEAR from cargo&lt;BR /&gt;union&lt;BR /&gt;select to_char(report_date,'YYYY') YEAR from passengers&lt;BR /&gt;union&lt;BR /&gt;select to_char(report_date,'YYYY') YEAR from operations)&lt;BR /&gt;order by YEAR;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LIB CONNECT TO 'PRWRT';&lt;BR /&gt;SET vQVDPath='D:/QlikSense';&lt;BR /&gt;SET vCAMPUS = 'DFG';&lt;BR /&gt;SET vMONTH = 'MAY';&lt;BR /&gt;SET vYEAR = '2018';&lt;BR /&gt;SET v_VAR1 = 'C';&lt;BR /&gt;SET v_VAR2 = '';&lt;BR /&gt;SET v_VAR3 = 'N';&lt;BR /&gt;SET v_VAR4 = 'N';&lt;BR /&gt;SET v_VAR5 = 'ALL';&lt;BR /&gt;SET v_VAR6 = 'ALL';&lt;BR /&gt;SET v_VAR7 = 'N';&lt;BR /&gt;SET v_VAR8 = 'N';&lt;BR /&gt;SET v_VAR9 = 'N';&lt;BR /&gt;SET v_VAR10 = 'C';&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT * FROM TABLE(MWAA_APSIRR_PKG.apsirr_type_cc_agt1('$(VCAMPUS)','$(vMONTH)','$(vYEAR)','$(v_VAR1)','$(v_VAR2)','$(v_VAR3)','$(v_VAR4)','$(v_VAR5)','$(v_VAR6)','$(v_VAR7)','$(v_VAR8)','$(v_VAR9)','$(v_VAR10)'));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;CAMPUS1;&lt;BR /&gt;[CAMPUS]:&lt;BR /&gt;Select DISTINCT CAMPUS AS CAMPUS1&lt;BR /&gt;FROM&lt;BR /&gt;TOOLBOX.CAMPUS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 04:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-refresh-value-from-the-filter-selection-to-load-script/m-p/1721528#M5255</guid>
      <dc:creator>rtaraka</dc:creator>
      <dc:date>2020-06-24T04:11:43Z</dc:date>
    </item>
  </channel>
</rss>

