<?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 Set Expression for Transaction in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-for-Transaction/m-p/386591#M144390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Every one &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three tables Location master, Transaction master and Transaction detail find the attached excel sheet for sample data.&amp;nbsp; Plz help me for design a set expression for following (SQL)condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select * from &lt;/P&gt;&lt;P&gt; (select loccd,&lt;/P&gt;&lt;P&gt;&amp;nbsp; round((sum(case when TdFrRmLoc=loccd and TdFrRmDc='c' and tdt between '01/06/05' and '30/08/05'&amp;nbsp; then TdRmWt else 0 end)+&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(case when TdToRmLoc=loccd and TdToRmDc='C' and tdt between '01/06/05' and '30/08/05' then TdRmWt else 0 end)),3) as Issue &lt;/P&gt;&lt;P&gt;&amp;nbsp; from&amp;nbsp; txn&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; join txnd on ttc=tdtc and tyy=tdyy and tchr=tdchr and tno=tdno&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; join loc on (LocCd=TdFrRmLoc or LocCd=TdtoRmLoc) and LocTyp='S' &lt;/P&gt;&lt;P&gt;&amp;nbsp; group by loccd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Vikas &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jan 2013 12:24:08 GMT</pubDate>
    <dc:creator>vikasgupta</dc:creator>
    <dc:date>2013-01-02T12:24:08Z</dc:date>
    <item>
      <title>Set Expression for Transaction</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-for-Transaction/m-p/386591#M144390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Every one &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three tables Location master, Transaction master and Transaction detail find the attached excel sheet for sample data.&amp;nbsp; Plz help me for design a set expression for following (SQL)condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select * from &lt;/P&gt;&lt;P&gt; (select loccd,&lt;/P&gt;&lt;P&gt;&amp;nbsp; round((sum(case when TdFrRmLoc=loccd and TdFrRmDc='c' and tdt between '01/06/05' and '30/08/05'&amp;nbsp; then TdRmWt else 0 end)+&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(case when TdToRmLoc=loccd and TdToRmDc='C' and tdt between '01/06/05' and '30/08/05' then TdRmWt else 0 end)),3) as Issue &lt;/P&gt;&lt;P&gt;&amp;nbsp; from&amp;nbsp; txn&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; join txnd on ttc=tdtc and tyy=tdyy and tchr=tdchr and tno=tdno&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; join loc on (LocCd=TdFrRmLoc or LocCd=TdtoRmLoc) and LocTyp='S' &lt;/P&gt;&lt;P&gt;&amp;nbsp; group by loccd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Vikas &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 12:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-for-Transaction/m-p/386591#M144390</guid>
      <dc:creator>vikasgupta</dc:creator>
      <dc:date>2013-01-02T12:24:08Z</dc:date>
    </item>
  </channel>
</rss>

