<?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 assign zero value in second refresh in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691514#M727269</link>
    <description>&lt;P&gt;How about the third refresh? or the first refresh of the hour or day or month or year is set to 1 and then every subsequent ones are set to 0?&lt;/P&gt;</description>
    <pubDate>Tue, 07 Apr 2020 11:05:13 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2020-04-07T11:05:13Z</dc:date>
    <item>
      <title>How to assign zero value in second refresh</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691506#M727268</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;Below is the script.Qlikview app first refresh&amp;nbsp;&lt;SPAN&gt;vSuccess&lt;/SPAN&gt; should show 1 and second refresh&amp;nbsp;&lt;SPAN&gt;vSuccess&lt;/SPAN&gt; should show zero.&lt;/P&gt;&lt;P&gt;How to achieve this ?&lt;/P&gt;&lt;P&gt;Let vTest='A';&lt;/P&gt;&lt;P&gt;If&amp;nbsp; &lt;SPAN&gt;vTest='A' then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Let vSuccess=1;&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Set vSuccess='False';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;end if&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Exit Script;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;1.QlikView First Refresh&amp;nbsp;&lt;SPAN&gt;vSuccess=1&lt;/SPAN&gt; (Return 1 value)&lt;/P&gt;&lt;P&gt;2.&lt;SPAN&gt;.QlikView second Refresh&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;vSuccess=0&lt;/SPAN&gt;&lt;SPAN&gt; (vSucess should show zero)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gireesh&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691506#M727268</guid>
      <dc:creator>gireesh1216</dc:creator>
      <dc:date>2024-11-16T00:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign zero value in second refresh</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691514#M727269</link>
      <description>&lt;P&gt;How about the third refresh? or the first refresh of the hour or day or month or year is set to 1 and then every subsequent ones are set to 0?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 11:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691514#M727269</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-04-07T11:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign zero value in second refresh</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691516#M727270</link>
      <description>&lt;P&gt;Need 1 only for first refresh and other subsequent refresh it should return 0.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 11:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691516#M727270</guid>
      <dc:creator>gireesh1216</dc:creator>
      <dc:date>2020-04-07T11:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign zero value in second refresh</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691519#M727271</link>
      <description>&lt;P&gt;1st refresh ever or 1st refresh of the day or 1st refresh of the month?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 11:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691519#M727271</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-04-07T11:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign zero value in second refresh</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691525#M727272</link>
      <description>&lt;LI-SPOILER&gt;&lt;LI-SPOILER&gt;1st refresh of every month&lt;/LI-SPOILER&gt; &lt;/LI-SPOILER&gt;</description>
      <pubDate>Tue, 07 Apr 2020 11:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691525#M727272</guid>
      <dc:creator>gireesh1216</dc:creator>
      <dc:date>2020-04-07T11:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign zero value in second refresh</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691526#M727273</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If MonthStart(Today()) = If(Len(Trim(vLastReloadDate)) &amp;gt; 0, vLastReloadDate, 0) THEN
	
	LET vSuccess = 0;
	
ELSE 
	
	LET vSuccess = 1;
	
ENDIF;

TRACE $(vSuccess);

LET vLastReloadDate = Num(MonthStart(Today(1)));&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Apr 2020 11:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691526#M727273</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-04-07T11:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign zero value in second refresh</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691581#M727274</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Below condition is failing at first time because of variable(&lt;SPAN&gt;vLastReloadDate&lt;/SPAN&gt;) not found.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If MonthStart(Today()) = If(Len(Trim(vLastReloadDate)) &amp;gt; 0, vLastReloadDate, 0) THEN&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 13:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691581#M727274</guid>
      <dc:creator>gireesh1216</dc:creator>
      <dc:date>2020-04-07T13:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign zero value in second refresh</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691585#M727275</link>
      <description>&lt;P&gt;To handle the no value within vLastReloadData, I am using Len(Trim())... I tried it before sending the code and it worked for me. Can you share a sample where this isn't working? or share screenshot where we can see that this doesn't work.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 13:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691585#M727275</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-04-07T13:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign zero value in second refresh</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691599#M727276</link>
      <description>&lt;P&gt;Its Working fine.Thank you so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 13:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691599#M727276</guid>
      <dc:creator>gireesh1216</dc:creator>
      <dc:date>2020-04-07T13:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign zero value in second refresh</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691620#M727277</link>
      <description>&lt;P&gt;Awesome, I am glad it worked now. Please close the thread by marking a solution.&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Sunny&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 13:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-assign-zero-value-in-second-refresh/m-p/1691620#M727277</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-04-07T13:56:07Z</dc:date>
    </item>
  </channel>
</rss>

