<?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: calculate Variable using Let in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculate-Variable-using-Let/m-p/1518785#M437281</link>
    <description>&lt;P&gt;I keep getting the error during load.&lt;/P&gt;&lt;P&gt;Can you please check and let me know where is the mistake.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Vidya&lt;/P&gt;</description>
    <pubDate>Mon, 10 Dec 2018 15:49:41 GMT</pubDate>
    <dc:creator>poluvidyasagar</dc:creator>
    <dc:date>2018-12-10T15:49:41Z</dc:date>
    <item>
      <title>calculate Variable using Let</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-Variable-using-Let/m-p/1518705#M437269</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to calculate a specific date field which consists of weeknumber, yearnumber, daynumber.&lt;/P&gt;&lt;P&gt;I am able to do this using a text box. However, i would like to calculate during the load and assign it to a variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression I want to calculate using load is:&lt;/P&gt;&lt;P&gt;=Concat(right(Year(Today()),2) &amp;amp;Week(Today())+4 &amp;amp;Num(WeekDay(Today())))&lt;/P&gt;&lt;P&gt;I am using LET to calculate the value. How do i assign to a variable.&lt;/P&gt;&lt;P&gt;I have attached the qvw file.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vidya&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-Variable-using-Let/m-p/1518705#M437269</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2024-11-16T05:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: calculate Variable using Let</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-Variable-using-Let/m-p/1518711#M437270</link>
      <description>&lt;P&gt;Hi Vidya,&lt;/P&gt;&lt;P&gt;Instead of :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vDate= Concat(right(Year(Today()),2) &amp;amp;Week(Today())+4 &amp;amp;Num(WeekDay(Today())));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SET vDate="=Concat(right(Year(Today()),2) &amp;amp;Week(Today())+4 &amp;amp;Num(WeekDay(Today())))";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Works for me in your example&amp;nbsp;for a text object with expression&amp;nbsp;&lt;EM&gt;=vDate&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Greetings, Janneke.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 14:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-Variable-using-Let/m-p/1518711#M437270</guid>
      <dc:creator>Janneke</dc:creator>
      <dc:date>2018-12-10T14:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: calculate Variable using Let</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-Variable-using-Let/m-p/1518713#M437271</link>
      <description>&lt;P&gt;This works&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vDate= '=Concat(right(Year(Today()),2) &amp;amp;Week(Today())+4 &amp;amp;Num(WeekDay(Today())))';&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 14:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-Variable-using-Let/m-p/1518713#M437271</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-12-10T14:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: calculate Variable using Let</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-Variable-using-Let/m-p/1518728#M437273</link>
      <description>&lt;P&gt;Thanks Janneke.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using this variable as a condition on one of my table. But it gives error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;set vDate= Concat(right(Year(Today()),2) &amp;amp;Week(Today())+4 &amp;amp;Num(WeekDay(Today())));&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;LOAD [Part Number],&lt;BR /&gt;[Final UP],&lt;BR /&gt;CNFROM,&lt;BR /&gt;CNTO&lt;BR /&gt;FROM&lt;BR /&gt;Data.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1)&lt;BR /&gt;Where not match(CNFROM,'#N/A','0') and CNFROM &amp;lt; $(vDate);&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have attached the file. Can you please let me know what is wrong here?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Vidya&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 14:52:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-Variable-using-Let/m-p/1518728#M437273</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2018-12-10T14:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: calculate Variable using Let</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-Variable-using-Let/m-p/1518733#M437275</link>
      <description>&lt;P&gt;May be you are looking for this&lt;/P&gt;&lt;PRE&gt;LET vDate = Right(Year(Today()),2) &amp;amp; Week(Today())+4 &amp;amp; Num(WeekDay(Today()))&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 365px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1903iC7FB455DB2C16006/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 14:55:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-Variable-using-Let/m-p/1518733#M437275</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-10T14:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: calculate Variable using Let</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-Variable-using-Let/m-p/1518739#M437277</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;LET vDate = Right(Year(Today()),2) &amp;amp; Week(Today())+4 &amp;amp; Num(WeekDay(Today()));

Data:
LOAD [Part Number], 
     [Final UP], 
     CNFROM, 
     CNTO
FROM [Data (3).xlsx]
(ooxml, embedded labels, table is Sheet1)
Where not match(CNFROM,'#N/A','0') and CNFROM &amp;lt; $(vDate);&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 15:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-Variable-using-Let/m-p/1518739#M437277</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-10T15:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: calculate Variable using Let</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-Variable-using-Let/m-p/1518785#M437281</link>
      <description>&lt;P&gt;I keep getting the error during load.&lt;/P&gt;&lt;P&gt;Can you please check and let me know where is the mistake.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Vidya&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 15:49:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-Variable-using-Let/m-p/1518785#M437281</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2018-12-10T15:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: calculate Variable using Let</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-Variable-using-Let/m-p/1518793#M437283</link>
      <description>I think i got it. Concat function is LET is causing the issue.&lt;BR /&gt;&lt;BR /&gt;Thanks Everyone</description>
      <pubDate>Mon, 10 Dec 2018 15:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-Variable-using-Let/m-p/1518793#M437283</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2018-12-10T15:53:45Z</dc:date>
    </item>
  </channel>
</rss>

