<?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: identify missing records using a table expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/identify-missing-records-using-a-table-expression/m-p/1055718#M930935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your IF statement tells that you want to pick live status record from current and the before live statuses from history for a particular ID. Are you trying to pick the situation when all 1-4 status available in current table? Not able to understand the logic behind your IF statement properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Mar 2016 16:52:54 GMT</pubDate>
    <dc:creator>Digvijay_Singh</dc:creator>
    <dc:date>2016-03-11T16:52:54Z</dc:date>
    <item>
      <title>identify missing records using a table expression</title>
      <link>https://community.qlik.com/t5/QlikView/identify-missing-records-using-a-table-expression/m-p/1055714#M930931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem which i am hoping can be solved very easily using the great minds of the Qlik community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked the forums and can't quite see the solution i need so apologies if this has already been asked and answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading two tables into a dashboard. The first table is a CURRENT view of the data and includes the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); width: 367px; height: 112px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG style="color: #ffffff; font-size: 13.3333330154419px; text-align: center;"&gt;Status&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Info&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Record A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;1 - Start&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Record info stored here&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Record B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;4 - Live&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Record info stored here&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Record C&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;3 - Deploy&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Record info stored here&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Record D&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2 - Build&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Record info stored here&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second table is a HISTORY table and is appended once a week with a snapshot of current data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); width: 374px; height: 124px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG style="color: #ffffff; font-size: 13.3333330154419px; text-align: center;"&gt;Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG style="color: #ffffff; font-size: 13.3333330154419px; text-align: center;"&gt;H_Status&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/16&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Record A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;1 - Start&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/16&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Record B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;1 - Start&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;08/01/16&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Record A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;1 - Start&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;08/01/16&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Record B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2 - Build&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;08/01/16&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Record C&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2 - Build&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dashboard i have built uses the following calculated dimension (but could as easily be an expression i guess) and displays only records that "Y" is present:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(Left([Status],1)&amp;gt;3 and (Left([H_Status],1)&amp;lt;4),'Y',)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine to compare existing records &lt;SPAN style="text-decoration: underline;"&gt;however&lt;/SPAN&gt; my issue is that if i have brand new records that are on CURRENT and do not yet appear in HISTORY they do not show on the dashboard view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am open to either amending the IF syntax in the dimension or adding a flag on load statement of the CURRENT table but beyond that i am stuck.... Please help! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/identify-missing-records-using-a-table-expression/m-p/1055714#M930931</guid>
      <dc:creator>chrismtb</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: identify missing records using a table expression</title>
      <link>https://community.qlik.com/t5/QlikView/identify-missing-records-using-a-table-expression/m-p/1055715#M930932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you upload a small example qvw that illustrated the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 15:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/identify-missing-records-using-a-table-expression/m-p/1055715#M930932</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2016-03-11T15:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: identify missing records using a table expression</title>
      <link>https://community.qlik.com/t5/QlikView/identify-missing-records-using-a-table-expression/m-p/1055716#M930933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which Field(s) are you using as Dimension(s). It looks like ID and Name are not Unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, Dimensions will show only the Unique combinations. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 15:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/identify-missing-records-using-a-table-expression/m-p/1055716#M930933</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2016-03-11T15:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: identify missing records using a table expression</title>
      <link>https://community.qlik.com/t5/QlikView/identify-missing-records-using-a-table-expression/m-p/1055717#M930934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ID is the only common field, i actually renamed the Name field in the history table as H_Name (just missed of my original post&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 16:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/identify-missing-records-using-a-table-expression/m-p/1055717#M930934</guid>
      <dc:creator>chrismtb</dc:creator>
      <dc:date>2016-03-11T16:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: identify missing records using a table expression</title>
      <link>https://community.qlik.com/t5/QlikView/identify-missing-records-using-a-table-expression/m-p/1055718#M930935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your IF statement tells that you want to pick live status record from current and the before live statuses from history for a particular ID. Are you trying to pick the situation when all 1-4 status available in current table? Not able to understand the logic behind your IF statement properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 16:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/identify-missing-records-using-a-table-expression/m-p/1055718#M930935</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-03-11T16:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: identify missing records using a table expression</title>
      <link>https://community.qlik.com/t5/QlikView/identify-missing-records-using-a-table-expression/m-p/1055719#M930936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Digvijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will shortly post an example Qvd with the problem... in answer to your comment i have maybe about 12 statuses in total however I only showed 4 on the sample tables above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My original IF statement marked records on the following condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;They currently have a status of 4 or higher&lt;/LI&gt;&lt;LI&gt;For the history period (date) selected the records had a status of 3 or lower&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In doing this though it excludes new records as they do not exist in the history table and therefore have no previous status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is just as important for me to capture and display these records as the ones which meet the criteria above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this explains a little better?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 17:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/identify-missing-records-using-a-table-expression/m-p/1055719#M930936</guid>
      <dc:creator>chrismtb</dc:creator>
      <dc:date>2016-03-11T17:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: identify missing records using a table expression</title>
      <link>https://community.qlik.com/t5/QlikView/identify-missing-records-using-a-table-expression/m-p/1055720#M930937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you can create mapping table with ID and Hist_status and check that while loading current table to set the flag -&lt;/P&gt;&lt;P&gt;Exist_Map:&lt;/P&gt;&lt;P&gt;Mapping_Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, Hist_Status&lt;/P&gt;&lt;P&gt;Resident &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;HISTORY;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While loading &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CURRENT table you can check as - &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(Applymap('&lt;SPAN style="font-size: 13.3333px;"&gt;Exist_Map&lt;/SPAN&gt;',ID,'NA')='NA','NotExist') as _NotExist_Flag;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your IF condition you can show record by checking this flag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 18:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/identify-missing-records-using-a-table-expression/m-p/1055720#M930937</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-03-11T18:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: identify missing records using a table expression</title>
      <link>https://community.qlik.com/t5/QlikView/identify-missing-records-using-a-table-expression/m-p/1055721#M930938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Digvijay,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The one thing i had to watch for was to load the tables in the correct order (i.e. history first).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From here i just had to use some if statements to ensure my dashboard showed records matching both my criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Top Bananas &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 14:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/identify-missing-records-using-a-table-expression/m-p/1055721#M930938</guid>
      <dc:creator>chrismtb</dc:creator>
      <dc:date>2016-03-18T14:50:20Z</dc:date>
    </item>
  </channel>
</rss>

