<?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: How to get the reduction field value into script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-the-reduction-field-value-into-script/m-p/1120889#M632384</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;Not sure how you an do this in script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you not just add the expression to a variable in the front end? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Aug 2016 12:47:15 GMT</pubDate>
    <dc:creator>Mark_Little</dc:creator>
    <dc:date>2016-08-03T12:47:15Z</dc:date>
    <item>
      <title>How to get the reduction field value into script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-reduction-field-value-into-script/m-p/1120888#M632383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using loop reduce by Country field .&lt;/P&gt;&lt;P&gt;I have 2 values in Country field US, UK so job is creating 2 QVWs from main qvw.&lt;/P&gt;&lt;P&gt;But in the qlikview script we have defined variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET LOC = if(Country='US',1,2); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when ever i am running the job , it is creating two Qvws but LOC is always assigning 2.&lt;/P&gt;&lt;P&gt;Please let me know how to Pass the Country Field value into script from reduction field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-reduction-field-value-into-script/m-p/1120888#M632383</guid>
      <dc:creator />
      <dc:date>2016-08-03T12:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the reduction field value into script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-reduction-field-value-into-script/m-p/1120889#M632384</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;Not sure how you an do this in script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you not just add the expression to a variable in the front end? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-reduction-field-value-into-script/m-p/1120889#M632384</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2016-08-03T12:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the reduction field value into script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-reduction-field-value-into-script/m-p/1120890#M632385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as i have one qvw and i am reducing it on the basis of Country field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not do any thing in new qvws .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i need to assign value to variable on the basis of country.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;LET LOC = if(Country='US',1,2);&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;"&gt;But it is always assigning LOC=2 as Country = US is not executing as value of Country is passing by job &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;"&gt;&lt;BR /&gt;&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;"&gt;Please let me know how to pass the reduction field value to variable in to script.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-reduction-field-value-into-script/m-p/1120890#M632385</guid>
      <dc:creator />
      <dc:date>2016-08-03T12:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the reduction field value into script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-reduction-field-value-into-script/m-p/1120891#M632386</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;What is happening here is you can not use the If statement like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try below Script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxString:&lt;/P&gt;&lt;P&gt;Load Maxstring(Country) as MaxCountry&lt;/P&gt;&lt;P&gt;From XYZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMax = Peek('MaxCountry',0,'MaxString');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let LOC = if($(vMax) = 'US',1,2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 06:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-reduction-field-value-into-script/m-p/1120891#M632386</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-08-04T06:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the reduction field value into script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-reduction-field-value-into-script/m-p/1120892#M632387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reduction is done after script is run. Or to say it another way, script is run before reduction. So you will always have the full set of data -- both countries -- when the script runs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 01:40:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-reduction-field-value-into-script/m-p/1120892#M632387</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-08-10T01:40:35Z</dc:date>
    </item>
  </channel>
</rss>

