<?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: set analysis with a subtraction in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-with-a-subtraction/m-p/450993#M563383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You do not need Set analysis for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, what is your dimension? Let's assume that there is some sort of Transaction that has a date_received. Then you could use TransactionID as dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next is the expression. You could directly use apel_ltr_snt_dt - date_received as expression. But that just works if there is only one apel_ltr_snt_dt and only one date_received per TransactionID. If there are several, you need to specify which aggregation function to use, e.g. Avg(apel_ltr_snt_dt - date_received) or Avg(apel_ltr_snt_dt) - Avg(date_received).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Percentage? It can easily be done, but compared to what? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2013 20:15:52 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2013-02-19T20:15:52Z</dc:date>
    <item>
      <title>set analysis with a subtraction</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-a-subtraction/m-p/450992#M563382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys. Still new to QV, and I have a question for you. Fairly easy, I'm assuming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to build a chart, to show the values of one field minus another field. I'd also like this to be presented in a percentage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically, it's:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;apel_ltr_snt_dt - date_received&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then to turn that into a percentage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are date fields, if that's important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would anyone be able to assist? Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 17:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-a-subtraction/m-p/450992#M563382</guid>
      <dc:creator />
      <dc:date>2013-02-19T17:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with a subtraction</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-a-subtraction/m-p/450993#M563383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You do not need Set analysis for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, what is your dimension? Let's assume that there is some sort of Transaction that has a date_received. Then you could use TransactionID as dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next is the expression. You could directly use apel_ltr_snt_dt - date_received as expression. But that just works if there is only one apel_ltr_snt_dt and only one date_received per TransactionID. If there are several, you need to specify which aggregation function to use, e.g. Avg(apel_ltr_snt_dt - date_received) or Avg(apel_ltr_snt_dt) - Avg(date_received).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Percentage? It can easily be done, but compared to what? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 20:15:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-a-subtraction/m-p/450993#M563383</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-02-19T20:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with a subtraction</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-a-subtraction/m-p/450994#M563384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;basically, each apel_id has a received date, and a sent date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the received date is when my company receives the letter from a member, and the sent date is when we sent out a reply to the member. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, I would need to show a chart, with the Y axis as percentages, from 0% to 100%, in 10% increments. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I need to show (by apel_id) the percentage of letters that were sent out within 30 days or receiving them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, if the "apel_ler_snt_date" - "date_received" &amp;lt;=30, then it's good. else, it counts against us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if, say, we had 100 apel_id's in October, and all sent dates were within 30 days of the received date, October should show a bar up to 100%. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 01:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-a-subtraction/m-p/450994#M563384</guid>
      <dc:creator />
      <dc:date>2013-02-21T01:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with a subtraction</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-a-subtraction/m-p/450995#M563385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would, already in the script, create a couple of new fields:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;apel_ltr_snt_dt - date_received as Delay,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;class(apel_ltr_snt_dt - date, 10 , 'Delay') as DelayClass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use one of these as dimension in a chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression should be &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Count(distinct apel_id)/Count(distinct total apel_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, format the expression as percentage (Properties - Number - Show in percent)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 06:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-a-subtraction/m-p/450995#M563385</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-02-21T06:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with a subtraction</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-a-subtraction/m-p/450996#M563386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked like a charm! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 18:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-a-subtraction/m-p/450996#M563386</guid>
      <dc:creator />
      <dc:date>2013-02-21T18:45:10Z</dc:date>
    </item>
  </channel>
</rss>

