<?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 Stop empty dataset from overwriting a dataset in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stop-empty-dataset-from-overwriting-a-dataset/m-p/11159#M607583</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 am trying to stop an older dataset from being overwritten by an empty dataset. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this statement to load my data, just unsure where to build in the If statement to do a row count before loading it in my report.&amp;nbsp; I am not using a QVD to load the data, just the below query...hope this makes sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just unsure when it actually loads the data, if I can use an if statement with the rowno() &amp;gt;0 check after this query, or where to insert it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Sheet_Passes":&lt;/P&gt;&lt;P&gt;SQL SELECT distinct &lt;/P&gt;&lt;P&gt;"Resource_Code",&lt;/P&gt;&lt;P&gt;"Item_Name",&lt;/P&gt;&lt;P&gt;"Description",&lt;/P&gt;&lt;P&gt;"End_Date",&lt;/P&gt;&lt;P&gt;"Sheet_Passes",&lt;/P&gt;&lt;P&gt;"Quantity",&lt;/P&gt;&lt;P&gt;"X_flex" as Flex_Account,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "X_group",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "X_location",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "X_masterfamily" as Master_Planning_Family,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "X_org_code" as Location &lt;/P&gt;&lt;P&gt;FROM "PDP8_Reports".divfood."ASCP_Sheet_Passes" Left Join "PDP8_Reports".dbo."ASCP_Cube_UDC" on item_name=X_item; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jan 2018 09:56:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-29T09:56:08Z</dc:date>
    <item>
      <title>Stop empty dataset from overwriting a dataset</title>
      <link>https://community.qlik.com/t5/QlikView/Stop-empty-dataset-from-overwriting-a-dataset/m-p/11159#M607583</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 am trying to stop an older dataset from being overwritten by an empty dataset. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this statement to load my data, just unsure where to build in the If statement to do a row count before loading it in my report.&amp;nbsp; I am not using a QVD to load the data, just the below query...hope this makes sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just unsure when it actually loads the data, if I can use an if statement with the rowno() &amp;gt;0 check after this query, or where to insert it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Sheet_Passes":&lt;/P&gt;&lt;P&gt;SQL SELECT distinct &lt;/P&gt;&lt;P&gt;"Resource_Code",&lt;/P&gt;&lt;P&gt;"Item_Name",&lt;/P&gt;&lt;P&gt;"Description",&lt;/P&gt;&lt;P&gt;"End_Date",&lt;/P&gt;&lt;P&gt;"Sheet_Passes",&lt;/P&gt;&lt;P&gt;"Quantity",&lt;/P&gt;&lt;P&gt;"X_flex" as Flex_Account,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "X_group",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "X_location",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "X_masterfamily" as Master_Planning_Family,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "X_org_code" as Location &lt;/P&gt;&lt;P&gt;FROM "PDP8_Reports".divfood."ASCP_Sheet_Passes" Left Join "PDP8_Reports".dbo."ASCP_Cube_UDC" on item_name=X_item; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 09:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stop-empty-dataset-from-overwriting-a-dataset/m-p/11159#M607583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-29T09:56:08Z</dc:date>
    </item>
  </channel>
</rss>

