<?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: Need Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491732#M183789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then please upload an updated sample of your data (i.e. the two or more tables involved, incl. some lines of sample data). What's the relationship between the two tables? 1:1 or 1:n?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Nov 2013 10:01:01 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-11-11T10:01:01Z</dc:date>
    <item>
      <title>Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491724#M183781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have made a calender which is&amp;nbsp; based on "receipt data" of a table.&lt;/P&gt;&lt;P&gt;There is a paid date also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;receipt date&amp;nbsp;&amp;nbsp; paid date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; amount&lt;/P&gt;&lt;P&gt;1-1-2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5-1-2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;25-2-2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5-3-2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;20-2-2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 26-2-2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 288&lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;I want to calculate amount where receipt date and paid date both are of the same month.&lt;/P&gt;&lt;P&gt;for those where receipt date and paid date are not belong to same month then not show there amount.&lt;/P&gt;&lt;P&gt;if i select september month then only show those amount whose paid date and receipt date fall in the same month.&lt;/P&gt;&lt;P&gt;Please suggest me to sort out this.\&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Narender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 10:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491724#M183781</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-11-07T10:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491725#M183782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( if(monthstart([receipt date]) = monthstart([paid date]), amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or create a flag in your data model table for that and just filter that flag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 10:24:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491725#M183782</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-07T10:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491726#M183783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Swuehi.\&lt;/P&gt;&lt;P&gt;I will try your 1st expression&lt;/P&gt;&lt;P&gt;for 2nd option can you give me the example as i shown in my question to achieve flag?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 10:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491726#M183783</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-11-07T10:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491727#M183784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;receipt date]= {&amp;gt;=$(=MonthStart([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;receipt date]&lt;/SPAN&gt;)) ,&amp;lt;= &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(=MonthEnd([&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;receipt date]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)), [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;paid date]= {&amp;gt;=$(=MonthStart([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Paid date]&lt;/SPAN&gt;)) ,&amp;lt;= &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(=MonthEnd([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;paid &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;date]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;}&lt;/SPAN&gt;&amp;gt;} Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 10:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491727#M183784</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2013-11-07T10:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491728#M183785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming all three fields are within a single table in your data model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(monthstart([receipt date]) = monthstart([paid date]), 1,0) as SameMonthFlag&lt;/P&gt;&lt;P&gt; INLINE [&lt;/P&gt;&lt;P&gt;receipt date,&amp;nbsp;&amp;nbsp; paid date,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; amount&lt;/P&gt;&lt;P&gt;1-1-2012,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5-1-2012,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;25-2-2012,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5-3-2012,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;20-2-2012,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 26-2-2012,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 288&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;SameMonthFlag = {1}&amp;gt;} amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;sum( SameMonthFlag * amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 10:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491728#M183785</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-07T10:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491729#M183786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuel,&lt;/P&gt;&lt;P&gt;Its not working for me .Its showing "_" means not working..There is change in my example and the change is that receipt date and paid date fields belongs to&amp;nbsp; different table and joining between them via doc_id.&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;&lt;/P&gt;&lt;P&gt;Narender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 06:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491729#M183786</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-11-11T06:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491730#M183787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Israrkhan,&lt;/P&gt;&lt;P&gt;Its not working ,it is showing error with RED line in expression .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 06:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491730#M183787</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-11-11T06:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491731#M183788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;" I want to calculate amount where receipt date and paid date both are of the same month."t you want and i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this is want and receipt date and paid date&amp;nbsp; and amount all are of same table&lt;/P&gt;&lt;P&gt;create a flag like this in script (in your table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (num(month(paiddate)) =&amp;nbsp; num(month(receiptdate)),1,0 )&amp;nbsp; as Flag &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use expression like this&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(if(Flag=1, Amount) or if (Flag=1, sum(Amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 08:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491731#M183788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-11T08:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491732#M183789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then please upload an updated sample of your data (i.e. the two or more tables involved, incl. some lines of sample data). What's the relationship between the two tables? 1:1 or 1:n?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 10:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491732#M183789</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-11T10:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491733#M183790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Swuehl.&lt;/P&gt;&lt;P&gt;i have used this expression.&lt;/P&gt;&lt;P&gt;=if(monthstart(Date) = monthstart(event_date),sum({&amp;lt;REGIME={'C*'} ,TAX_CODE={'VT'} &amp;gt;}TAX*-1))&lt;/P&gt;&lt;P&gt;But its showing "_".&lt;/P&gt;&lt;P&gt;I have also tried with this:&lt;/P&gt;&lt;P&gt;=sum(if(monthstart(Date) = monthstart(event_date),sum({&amp;lt;REGIME={'C*'} ,TAX_CODE={'VT'} &amp;gt;}TAX*-1)))&lt;/P&gt;&lt;P&gt;Its also showing same "_".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggest me to sort out this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 12:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491733#M183790</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-11-11T12:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491734#M183791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anant but the&amp;nbsp; receipt date and paid date are belong to different tables so i cant make flag.&lt;/P&gt;&lt;P&gt;So plaese advice .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 12:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491734#M183791</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2013-11-11T12:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491735#M183792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;i have used this expression.&lt;/P&gt;
&lt;P&gt;=if(monthstart(Date) = monthstart(event_date),sum({&amp;lt;REGIME={'C*'} ,TAX_CODE={'VT'} &amp;gt;}TAX*-1))&lt;/P&gt;
&lt;P&gt;But its showing "_".&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It's almost never a good idea to use an aggregation inside an if statement if you want to filter your records you want to aggregate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your second version uses an aggregation inside an aggregation which is not allowed without using advanced aggregation (aggr() function).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;REGIME={'C*'} ,TAX_CODE={'VT'} &amp;gt;} if(monthstart(Date) = monthstart(event_date), TAX*-1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 12:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help/m-p/491735#M183792</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-11T12:49:02Z</dc:date>
    </item>
  </channel>
</rss>

