<?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 Button is not working as expected in QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Button-is-not-working-as-expected-in-QlikView/m-p/122604#M18717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a variable in load script and use this in a button in the frontend, but it is not working as expected. Please help with this.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 1&lt;/STRONG&gt;. Created the below variable&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set vBillion=0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 2. &lt;/STRONG&gt;Created the below-calculated field in the script using the preceding load.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if($(vMillion)=1, [40 Total]/1000000, Num([40 Total],'#,##0')) as Primary;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; Once the script is reloaded I can see the created variable and the field both in UI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 3.&lt;/STRONG&gt;&amp;nbsp; Then created a button to get the field as divided by 1Billion in the chart.&lt;/P&gt;&lt;P&gt;Chose the action as &lt;STRONG&gt;'Set Variable'&lt;/STRONG&gt; and given the variable as vMillion and provide the value&amp;nbsp; as&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(vMillion=1, 0, 1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; If I click on the button then the Primary field is not coming as divided by millions.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: This is working in UI when I create a variable in frontend and the dimension also in frontend.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Oct 2018 05:59:09 GMT</pubDate>
    <dc:creator>shashipraband</dc:creator>
    <dc:date>2018-10-21T05:59:09Z</dc:date>
    <item>
      <title>Button is not working as expected in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Button-is-not-working-as-expected-in-QlikView/m-p/122604#M18717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a variable in load script and use this in a button in the frontend, but it is not working as expected. Please help with this.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 1&lt;/STRONG&gt;. Created the below variable&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set vBillion=0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 2. &lt;/STRONG&gt;Created the below-calculated field in the script using the preceding load.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if($(vMillion)=1, [40 Total]/1000000, Num([40 Total],'#,##0')) as Primary;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; Once the script is reloaded I can see the created variable and the field both in UI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 3.&lt;/STRONG&gt;&amp;nbsp; Then created a button to get the field as divided by 1Billion in the chart.&lt;/P&gt;&lt;P&gt;Chose the action as &lt;STRONG&gt;'Set Variable'&lt;/STRONG&gt; and given the variable as vMillion and provide the value&amp;nbsp; as&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(vMillion=1, 0, 1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; If I click on the button then the Primary field is not coming as divided by millions.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: This is working in UI when I create a variable in frontend and the dimension also in frontend.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Oct 2018 05:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-is-not-working-as-expected-in-QlikView/m-p/122604#M18717</guid>
      <dc:creator>shashipraband</dc:creator>
      <dc:date>2018-10-21T05:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Button is not working as expected in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Button-is-not-working-as-expected-in-QlikView/m-p/122605#M18718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need an "=" in front of &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(vMillion=1, 0, 1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2018 17:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-is-not-working-as-expected-in-QlikView/m-p/122605#M18718</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2018-10-22T17:23:37Z</dc:date>
    </item>
  </channel>
</rss>

