<?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: problem using  exists function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/problem-using-exists-function/m-p/427717#M159392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;yes i did load field value for &lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;Date_Calander earlier (previous tab)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;i just want to restrict and get the relevat month and year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;i use debugger to see if there is any problem , but there is no problem, it rerurns row for calander&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;it only happens when i reload &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2012 10:20:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-13T10:20:13Z</dc:date>
    <item>
      <title>problem using  exists function</title>
      <link>https://community.qlik.com/t5/QlikView/problem-using-exists-function/m-p/427715#M159390</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;I have a problem which i can not understand :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I bring calendar from table DB using Exist function as follow :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALENDAR:&lt;/P&gt;&lt;P&gt; LOAD "Date_Calander",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Year_Num",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Month_Num",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Quarter_Num",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Calander_Presenet_Date"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE exists(Date_Calander,Date_Calander);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SQL&lt;/P&gt;&lt;P&gt;select distinct CONVERT(varchar(10),a.Date,103) as Date_Calander,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATEPART(YEAR,a.Date) as Year_Num,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATEPART(MONTH,a.Date) as Month_Num, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATEPART(QUARTER,a.Date) as Quarter_Num,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LTRIM(RTRIM(convert(char,(DATEPART(MONTH,a.Date)))))+'-'+LTRIM(RTRIM(CONVERT(char,DATEPART(YEAR,a.Date)))) as Calander_Presenet_Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM EPICPDW.dbo.Fiscal_Calendar a;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i do full reload i dont get this CALANDER table (it is Disappeared , not exist)&lt;/P&gt;&lt;P&gt;&amp;nbsp; i guess mayby the exists function did not return nothing (which is not possible)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if i do a Debug (step by step , only 10 rows ) suddenly CALENDER table create .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can it be ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 09:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-using-exists-function/m-p/427715#M159390</guid>
      <dc:creator />
      <dc:date>2012-11-13T09:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem using  exists function</title>
      <link>https://community.qlik.com/t5/QlikView/problem-using-exists-function/m-p/427716#M159391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sharon_kabra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you haven't loaded any field values for Date_Calander prior this code snippet, the exists() function will always return false, because it determines whether a specific field value exists in a specified field of the data loaded so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are you trying to achieve here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[I have no idea why you get some data loaded in using the script debugger, though]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 10:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-using-exists-function/m-p/427716#M159391</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-13T10:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem using  exists function</title>
      <link>https://community.qlik.com/t5/QlikView/problem-using-exists-function/m-p/427717#M159392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;yes i did load field value for &lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;Date_Calander earlier (previous tab)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;i just want to restrict and get the relevat month and year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;i use debugger to see if there is any problem , but there is no problem, it rerurns row for calander&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;it only happens when i reload &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 10:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-using-exists-function/m-p/427717#M159392</guid>
      <dc:creator />
      <dc:date>2012-11-13T10:20:13Z</dc:date>
    </item>
  </channel>
</rss>

