<?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: Data Validation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332483#M122499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds better, I see some changes noww but instead of having less data I am having more!!&lt;/P&gt;&lt;P&gt;Any Idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2012 16:02:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-01T16:02:17Z</dc:date>
    <item>
      <title>Data Validation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332479#M122495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following query and I am trying to set some validation on it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; globalCallID_callId As CallID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; callingPartyNumber As OriginalParty, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; originalCalledPartyNumber As DestinationParty, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; finalCalledPartyNumber As FinalParty, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; duration As Duration,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //converttolocaltime(timestamp(dateTimeOrigination/86400+makedate(1970,1,1)),'UTC-05:00') As TimeStamp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timestamp(dateTimeOrigination/86400+makedate(1970,1,1)+interval#(-5,'h')) as TimeStamp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //dateTimeOrigination As TimeStamp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; isnum(dateTimeOrigination)&lt;/P&gt;&lt;P&gt;********************************************************************************************************&lt;/P&gt;&lt;P&gt;Anybody can help me writting the right statements to set the the following validation&lt;/P&gt;&lt;P&gt;if the callingPartyNumber = 7 and the first three characters in callingPartyNumber = "810" then it is invalid record&lt;/P&gt;&lt;P&gt;if the length of the originalCalledPartyNumber =7 and the first three characters = "810 then it is invalid record"&lt;/P&gt;&lt;P&gt;if the length of the finalCalledPartyNumber = 7 and the the last three characters = "810" then it is invalid record.&lt;/P&gt;&lt;P&gt;if the originalCalledPartyNumber = "" and finalCalledPartyNumber = "" then it is invalid record&lt;/P&gt;&lt;P&gt;if duration = "0" then it is invalid record.&lt;/P&gt;&lt;P&gt;if the length of originalCalledPartyNumber&amp;nbsp; &amp;lt; 10 and callingPartyNumber = 4 then it is invalid record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of those will be enough I'll do the rest..&lt;/P&gt;&lt;P&gt;Thxs &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 15:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332479#M122495</guid>
      <dc:creator />
      <dc:date>2012-03-01T15:32:18Z</dc:date>
    </item>
    <item>
      <title>Data Validation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332480#M122496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something along these lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt; (len(callingPartyNumber) = 7 and left(callingPartyNumber,3) = '810' )&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;(len(originalCalledPartyNumber) =7 and left(originalCalledPartyNumber,3) = '810')&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;(len(finalCalledPartyNumber) = 7 and right(finalCalledPartyNumber,3) = '810')&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;( len(originalCalledPartyNumber) = 0 and len(finalCalledPartyNumber) =0 )&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;( duration = 0)&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;(len(originalCalledPartyNumber)&amp;nbsp; &amp;lt; 10 and callingPartyNumber = 4) &lt;/P&gt;&lt;P&gt;, 'INVALID' &lt;/P&gt;&lt;P&gt;, 'VALID' )&amp;nbsp; as RecordValidationStatus,&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;from ...;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 15:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332480#M122496</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-01T15:51:58Z</dc:date>
    </item>
    <item>
      <title>Data Validation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332481#M122497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thxs,&lt;/P&gt;&lt;P&gt;When I said invalid record, I mean I dont want it to be uploaded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 15:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332481#M122497</guid>
      <dc:creator />
      <dc:date>2012-03-01T15:54:47Z</dc:date>
    </item>
    <item>
      <title>Data Validation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332482#M122498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the condition in your where clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Where &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; isnum(dateTimeOrigination) and not &lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt; (len(callingPartyNumber) = 7 and left(callingPartyNumber,3) = '810' )&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;(len(originalCalledPartyNumber) =7 and left(originalCalledPartyNumber,3) = '810')&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;(len(finalCalledPartyNumber) = 7 and right(finalCalledPartyNumber,3) = '810')&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;( len(originalCalledPartyNumber) = 0 and len(finalCalledPartyNumber) =0 )&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;( duration = 0)&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;(len(originalCalledPartyNumber)&amp;nbsp; &amp;lt; 10 and callingPartyNumber = 4) &lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 15:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332482#M122498</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-01T15:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Data Validation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332483#M122499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds better, I see some changes noww but instead of having less data I am having more!!&lt;/P&gt;&lt;P&gt;Any Idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 16:02:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332483#M122499</guid>
      <dc:creator />
      <dc:date>2012-03-01T16:02:17Z</dc:date>
    </item>
    <item>
      <title>Data Validation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332484#M122500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't imagine &lt;EM&gt;more &lt;/EM&gt;records, could you maybe upload your sample app and the log file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 16:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332484#M122500</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-01T16:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Data Validation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332485#M122501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have uploaded the file on a previous replay..I wasn't able to attach files in here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 16:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332485#M122501</guid>
      <dc:creator />
      <dc:date>2012-03-01T16:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data Validation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332486#M122502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me know if you got it and thank you so much for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 16:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332486#M122502</guid>
      <dc:creator />
      <dc:date>2012-03-01T16:30:50Z</dc:date>
    </item>
    <item>
      <title>Data Validation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332487#M122503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I remove the new condition to the where clause, I get &lt;STRONG&gt;524 &lt;/STRONG&gt;CallIDs, using my suggested part &lt;STRONG&gt;197&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it seems to filter something...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 16:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332487#M122503</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-01T16:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Data Validation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332488#M122504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's true..&lt;/P&gt;&lt;P&gt;I dont know how did I get the previous results..&lt;/P&gt;&lt;P&gt;Thxs..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 16:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332488#M122504</guid>
      <dc:creator />
      <dc:date>2012-03-01T16:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data Validation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332489#M122505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have one more question &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I am wondering if it is possible to create a new field within the same table to load as follow: Name of the field extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If len(callingPartyNumber) = 4 then extention = callingPartyNumber&lt;/P&gt;&lt;P&gt;elseif len(originalCalledPartyNumber) = 4 then extension = originalCalledPartyNumber&lt;/P&gt;&lt;P&gt;else extension = ﻿finalCalledPartyNumber,&lt;/P&gt;&lt;P&gt;Sorry for being creative..&lt;/P&gt;&lt;P&gt;I am just trying to build the data module as it in my head &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 19:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332489#M122505</guid>
      <dc:creator />
      <dc:date>2012-03-01T19:24:38Z</dc:date>
    </item>
    <item>
      <title>Data Validation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332490#M122506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure it is possible, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if( len(callingPartyNumber) = 4, callingPartyNumber,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if( len(originalCalledPartyNumber)=4, originalCalledPartyNumber, finalCalledPartyNumber)) as extension,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;from Table;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 22:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332490#M122506</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-01T22:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data Validation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332491#M122507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This sounds to be working perfectly but I didn't understand the first line!!&lt;/P&gt;&lt;P&gt;Would you please explain to me how this statement work ..&lt;/P&gt;&lt;P&gt;like how did we set the callingPartyNumber to go to extention field when the length equal to 4?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 15:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332491#M122507</guid>
      <dc:creator />
      <dc:date>2012-03-02T15:18:29Z</dc:date>
    </item>
    <item>
      <title>Data Validation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332492#M122508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first and the second line belong two one statement, consisting of an if() statement, where the else path again consists of a second if() statement. Just like you described above. Note that in a QV if() statement, you don't assign a value to a variable or field (in a load statement), the if() statement just returns a value. This is the difference to your if() statement block, where you use other assignment statements, like &lt;/P&gt;&lt;P&gt;extension = callingPartyNumber&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the Manual or look into the getting started sample files for more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 16:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332492#M122508</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-02T16:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Data Validation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332493#M122509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for your help.&lt;/P&gt;&lt;P&gt;I really appreciate that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 17:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332493#M122509</guid>
      <dc:creator />
      <dc:date>2012-03-02T17:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Data Validation</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332494#M122510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Swuehl,&lt;/P&gt;&lt;P&gt;After applying the if on all the log files I have gotten resaults under extention field that are&amp;nbsp; 3 charachters or 7 characters..or more..&lt;/P&gt;&lt;P&gt;such as 250&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; 728&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; 71417816382346&lt;/P&gt;&lt;P&gt;and more like that while what I am looking for: an extention field or column that have the extentions and usually the extentions are 4 digits(characters).&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 15:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Validation/m-p/332494#M122510</guid>
      <dc:creator />
      <dc:date>2012-03-06T15:49:05Z</dc:date>
    </item>
  </channel>
</rss>

