<?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 Comparing and filtering with null in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Comparing-and-filtering-with-null/m-p/2142557#M92945</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I am trying to set up comparison of two selected snapshots to find the difference.&amp;nbsp;&lt;BR /&gt;However I can't find how to keep unmatched data. Is there a good way to do this?&lt;/P&gt;
&lt;P&gt;Here's some simplified data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Data: 
Load * Inline [
Day	, Item 		, Qty
1	, Apples	, 2
1	, Pears		, 4
1	, Plums		, 5
2	, Apples	, 1
2	, Pears		, 3
2   , Bananas	, 7
3	, Apples	, 4
3	, Plums		, 2
3   , Bananas	, 4
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to give the user an option to select two days, and have the diff calculated automatically. However the unmatched data give me a headache. I can't get this set up (in a way that scales) without missing information when there's no match.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want a table with the Items where I have one column with sum for the selected first day, and another column with the selected second day. Like this&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 192pt;" border="0" width="256" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" style="height: 15.0pt; width: 48pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="64" align="right" style="width: 48pt;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="64" align="right" style="width: 48pt;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;&lt;STRONG&gt;Diff&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;&lt;STRONG&gt;Apples&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;&lt;STRONG&gt;Pears&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;&lt;FONT color="#FF0000"&gt;0&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right"&gt;-4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;&lt;STRONG&gt;Plums&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right"&gt;5&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;-3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;&lt;STRONG&gt;Bananas&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right"&gt;&lt;FONT color="#FF0000"&gt;0&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;(Day selection doesn't have to be header. That's just for the convenience of display)&lt;/P&gt;
&lt;P&gt;As this table will have a significant amount of data it should be possible to still search/filter the table just like a normal table.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2023 20:32:56 GMT</pubDate>
    <dc:creator>oddgeir</dc:creator>
    <dc:date>2023-11-29T20:32:56Z</dc:date>
    <item>
      <title>Comparing and filtering with null</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-and-filtering-with-null/m-p/2142557#M92945</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I am trying to set up comparison of two selected snapshots to find the difference.&amp;nbsp;&lt;BR /&gt;However I can't find how to keep unmatched data. Is there a good way to do this?&lt;/P&gt;
&lt;P&gt;Here's some simplified data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Data: 
Load * Inline [
Day	, Item 		, Qty
1	, Apples	, 2
1	, Pears		, 4
1	, Plums		, 5
2	, Apples	, 1
2	, Pears		, 3
2   , Bananas	, 7
3	, Apples	, 4
3	, Plums		, 2
3   , Bananas	, 4
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to give the user an option to select two days, and have the diff calculated automatically. However the unmatched data give me a headache. I can't get this set up (in a way that scales) without missing information when there's no match.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want a table with the Items where I have one column with sum for the selected first day, and another column with the selected second day. Like this&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 192pt;" border="0" width="256" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" style="height: 15.0pt; width: 48pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="64" align="right" style="width: 48pt;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="64" align="right" style="width: 48pt;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;&lt;STRONG&gt;Diff&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;&lt;STRONG&gt;Apples&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;&lt;STRONG&gt;Pears&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;&lt;FONT color="#FF0000"&gt;0&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right"&gt;-4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;&lt;STRONG&gt;Plums&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right"&gt;5&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;-3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;&lt;STRONG&gt;Bananas&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right"&gt;&lt;FONT color="#FF0000"&gt;0&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;(Day selection doesn't have to be header. That's just for the convenience of display)&lt;/P&gt;
&lt;P&gt;As this table will have a significant amount of data it should be possible to still search/filter the table just like a normal table.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 20:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-and-filtering-with-null/m-p/2142557#M92945</guid>
      <dc:creator>oddgeir</dc:creator>
      <dc:date>2023-11-29T20:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing and filtering with null</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-and-filtering-with-null/m-p/2142851#M92984</link>
      <description>&lt;P&gt;You may try something like this:&lt;/P&gt;
&lt;P&gt;rangesum(-sum({&amp;lt; Day = {1}&amp;gt;} Qty),&amp;nbsp;sum({&amp;lt; Day = {3}&amp;gt;} Qty))&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 12:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-and-filtering-with-null/m-p/2142851#M92984</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-11-30T12:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing and filtering with null</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-and-filtering-with-null/m-p/2142979#M92992</link>
      <description>&lt;P&gt;Yes Set Analysis can work. Only issue with this solution is that&amp;nbsp; "&lt;SPAN&gt;I want to give &lt;EM&gt;the user&lt;/EM&gt; an option to select&lt;/SPAN&gt;". I guess I'll have to get the values from some selection into some variables then.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 16:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-and-filtering-with-null/m-p/2142979#M92992</guid>
      <dc:creator>oddgeir</dc:creator>
      <dc:date>2023-11-30T16:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing and filtering with null</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-and-filtering-with-null/m-p/2143145#M92999</link>
      <description>&lt;P&gt;In this case you will need a calculated dimension, maybe with something like:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;aggr(&lt;/STRONG&gt;&lt;SPAN&gt;rangesum(-sum({&amp;lt; Day = {1}&amp;gt;} Qty),&amp;nbsp;sum({&amp;lt; Day = {3}&amp;gt;} Qty))&lt;STRONG&gt;, Item)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 06:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-and-filtering-with-null/m-p/2143145#M92999</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-12-01T06:38:46Z</dc:date>
    </item>
  </channel>
</rss>

