<?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 symmetric difference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/symmetric-difference/m-p/946058#M325882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very new to QlikView and need to replicate some report used by our Retail Security division. Currently they are written in Crystal Reports which are supplied data by a return table from a SQL server user defined function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to perform a symmetric difference on a daily transaction file, each transaction is identified by a Transfer Type ID.&amp;nbsp; In the UDF which returns the data I have created to temporary table one for each type and then perform a join to get the symmetric difference. The Crystal Report then only display records where one side is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From my research it look like I can do this with set analysis, using modifiers the Transfer Type ID's I am interested in. the join in the UDF is shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cast(floor(cast(t10.when_transferred as float))as datetime) = cast(floor(cast(t11.when_transferred as float))as datetime)&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; and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t10.amount = t11.amount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t10.cost_centre_cd = substring(t11.additional_data, 1, 4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how do I use modifiers to identify the data type I require to get the report to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for any help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Aug 2015 15:32:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-18T15:32:29Z</dc:date>
    <item>
      <title>symmetric difference</title>
      <link>https://community.qlik.com/t5/QlikView/symmetric-difference/m-p/946058#M325882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very new to QlikView and need to replicate some report used by our Retail Security division. Currently they are written in Crystal Reports which are supplied data by a return table from a SQL server user defined function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to perform a symmetric difference on a daily transaction file, each transaction is identified by a Transfer Type ID.&amp;nbsp; In the UDF which returns the data I have created to temporary table one for each type and then perform a join to get the symmetric difference. The Crystal Report then only display records where one side is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From my research it look like I can do this with set analysis, using modifiers the Transfer Type ID's I am interested in. the join in the UDF is shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cast(floor(cast(t10.when_transferred as float))as datetime) = cast(floor(cast(t11.when_transferred as float))as datetime)&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; and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t10.amount = t11.amount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t10.cost_centre_cd = substring(t11.additional_data, 1, 4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how do I use modifiers to identify the data type I require to get the report to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for any help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 15:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/symmetric-difference/m-p/946058#M325882</guid>
      <dc:creator />
      <dc:date>2015-08-18T15:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: symmetric difference</title>
      <link>https://community.qlik.com/t5/QlikView/symmetric-difference/m-p/946059#M325883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here are some example on different set analysis &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4951"&gt;Set Analysis: syntaxes, examples&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 20:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/symmetric-difference/m-p/946059#M325883</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-08-18T20:44:50Z</dc:date>
    </item>
  </channel>
</rss>

