<?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: Using Set Analysis to identify offset invoices in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1673263#M455975</link>
    <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;this is&amp;nbsp; working for me!&lt;/P&gt;&lt;P&gt;Greetings,&lt;BR /&gt;Eelco&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2020 08:38:31 GMT</pubDate>
    <dc:creator>cdss-developer</dc:creator>
    <dc:date>2020-02-07T08:38:31Z</dc:date>
    <item>
      <title>Using Set Analysis to identify offset invoices</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1672239#M455967</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;I'm hoping you can help me. I want to identify the invoices that;&lt;BR /&gt;(#1) have been booked against each other (debit credit) per relation&lt;BR /&gt;and&lt;BR /&gt;#2)&amp;nbsp; have been booked against each other per relation on the same day.&lt;BR /&gt;And I would like to do this using Set Analysis .&lt;/P&gt;&lt;P&gt;Below is the preferred outcome:&lt;/P&gt;&lt;TABLE width="417"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="52"&gt;Invoice&lt;/TD&gt;&lt;TD width="73"&gt;Date&lt;/TD&gt;&lt;TD width="73"&gt;Relation&lt;/TD&gt;&lt;TD width="57"&gt;Amount&lt;/TD&gt;&lt;TD width="81"&gt;#1 Expected&lt;/TD&gt;&lt;TD width="81"&gt;#2 Expected&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&g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;11-10-2019&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;7700&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;12-10-2019&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;-7700&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've managed to make the following (check qvw), but It's still missing a hit in the first column at invoice #3 (-3000) and it's missing a hit at the second column at invoice&amp;nbsp;#7 (7700):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.png" style="width: 444px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27989iA87EC15375959C80/image-size/large?v=v2&amp;amp;px=999" role="button" title="test.png" alt="test.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Greetings,&lt;BR /&gt;Eelco&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:10:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1672239#M455967</guid>
      <dc:creator>cdss-developer</dc:creator>
      <dc:date>2024-11-16T19:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis to identify offset invoices</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1672525#M455968</link>
      <description>&lt;P&gt;Relation B seems to be repeating several times, is there a field which identify that 8th row is reversing the 7th row except the fact that one is 7700 and other is -7700? What if, we have -2000 10 days later? Would we assume that it is reversing 5th row? Also, what if a particular amount repeats multiple times and reversed one less time... for example.. I have 2000 6 times and -2000 on 5 times...&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 13:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1672525#M455968</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-05T13:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis to identify offset invoices</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1672553#M455969</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;Hi Sunny,&lt;BR /&gt;&lt;BR /&gt;Thanks for you're swift response.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Relation B seems to be repeating several times, is there a field which identify that 8th row is reversing the 7th row except the fact that one is 7700 and other is -7700?&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;=&amp;gt; No unfortunately, I can not find a identifier to link the debit and credit invoices. That's the reason I'm looking at this with a alternative approach. My goal is to create an expression with which I can identify the invoices that have been settled with each other.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;What if, we have -2000 10 days later? Would we assume that it is reversing 5th row?&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;=&amp;gt; I want to start with &lt;U&gt;identifying all invoices of the same relation on the same date that have been settled with the same amount&lt;/U&gt;. From there I will try extend the expression, by changing the date to a period if necessary (for example date -5/+5 days). Yeah, I know this is tricky,&amp;nbsp;but it's the only solution I can think of right now.&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Also, what if a particular amount repeats multiple times and reversed one less time... for example.. I have 2000 6 times and -2000 on 5 times...&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;=&amp;gt; I'm aware that I'm going to run into this. This is also something I want to tweak in parallel during the analysis as I add more data and gain more insight into the data and the (im)possibilities.&amp;nbsp;&lt;BR /&gt;Maybe during development I can find other useful variables to add to specify my query.&lt;BR /&gt;&lt;BR /&gt;I have encountered such a problem more often, and see this as a challenge develop some kind of algorithm for this. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Greetings,&lt;BR /&gt;Eelco&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 14:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1672553#M455969</guid>
      <dc:creator>cdss-developer</dc:creator>
      <dc:date>2020-02-05T14:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis to identify offset invoices</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1672590#M455970</link>
      <description>&lt;P&gt;I don't think this can be done solely on the front end... you would need to create some kind of flag to identify these in the script... are you open to script changes?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 15:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1672590#M455970</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-05T15:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis to identify offset invoices</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1672595#M455971</link>
      <description>&lt;P&gt;I already had that feeling, but it was worth a try. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;If SA doesn't work, then a script solution is also OK.&lt;BR /&gt;Do you have a suggestion&amp;nbsp;to get me going?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 15:15:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1672595#M455971</guid>
      <dc:creator>cdss-developer</dc:creator>
      <dc:date>2020-02-05T15:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis to identify offset invoices</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1672903#M455972</link>
      <description>&lt;P&gt;I will play around with it and get back to you on this.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 11:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1672903#M455972</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-06T11:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis to identify offset invoices</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1672924#M455973</link>
      <description>&lt;P&gt;UPDATE:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;"is there a field which identify that 8th row is reversing the 7th row except the fact that one is 7700 and other is -7700?&amp;nbsp;"&lt;/U&gt;&lt;/STRONG&gt;I&lt;BR /&gt;Yes, after a long search in the the data,... I found a key! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;It's composite key. I've added (as example) two fields in the qvw. The combination of fields makes it possible to identify the invoices that are related to each other.&amp;nbsp; So in this example :&lt;BR /&gt;- 23 &amp;amp; d2 represent the offset of 3000 and -3000&amp;nbsp;&lt;BR /&gt;- 10 &amp;amp; a2 represent the offset of 7700 and -7700&lt;/P&gt;&lt;P&gt;This should make things a little easier, I think? But what to do next? Now that a key can be made, is it possible to use Set Analysis?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 12:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1672924#M455973</guid>
      <dc:creator>cdss-developer</dc:creator>
      <dc:date>2020-02-06T12:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis to identify offset invoices</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1672961#M455974</link>
      <description>&lt;P&gt;Try attached&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 13:46:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1672961#M455974</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-06T13:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis to identify offset invoices</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1673263#M455975</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;this is&amp;nbsp; working for me!&lt;/P&gt;&lt;P&gt;Greetings,&lt;BR /&gt;Eelco&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 08:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-identify-offset-invoices/m-p/1673263#M455975</guid>
      <dc:creator>cdss-developer</dc:creator>
      <dc:date>2020-02-07T08:38:31Z</dc:date>
    </item>
  </channel>
</rss>

