<?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: If expression with dimension calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-expression-with-dimension-calculation/m-p/525571#M196446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data model is way too complex and the calculation I want to make as well for me to post restricted data. That would take a lot of time to have it working correct. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Oct 2013 10:10:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-08T10:10:25Z</dc:date>
    <item>
      <title>If expression with dimension calculation</title>
      <link>https://community.qlik.com/t5/QlikView/If-expression-with-dimension-calculation/m-p/525565#M196440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create an expression in a straight table where I want the first dimension row to make one summation and the rest of the rows making another sum where there is a condition to sum for the previous month. The dimension of the table is Month called Date.Month in the data model. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Date.Month=vMonth,Sum(InventSum),Sum(InventMonthEnd))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the If statement above I want the second Summation Sum(InventMonthEnd) to Sum according to the precious month in the dimension. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(InventMonthEnd) for previous Month, Date.Month-1. I dont know how to write this to have it working correct in the expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 09:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-expression-with-dimension-calculation/m-p/525565#M196440</guid>
      <dc:creator />
      <dc:date>2013-10-08T09:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: If expression with dimension calculation</title>
      <link>https://community.qlik.com/t5/QlikView/If-expression-with-dimension-calculation/m-p/525566#M196441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kindly post your data or qvw with restricted data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 09:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-expression-with-dimension-calculation/m-p/525566#M196441</guid>
      <dc:creator />
      <dc:date>2013-10-08T09:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: If expression with dimension calculation</title>
      <link>https://community.qlik.com/t5/QlikView/If-expression-with-dimension-calculation/m-p/525567#M196442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use chart inter record functions like above() to evaluate an expression in the context of a previous dimension line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;above(Sum(InventMonthEnd))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 09:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-expression-with-dimension-calculation/m-p/525567#M196442</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-08T09:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: If expression with dimension calculation</title>
      <link>https://community.qlik.com/t5/QlikView/If-expression-with-dimension-calculation/m-p/525568#M196443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you tried RowNo() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=if(Rowno() =1 And Date.Month=vMonth,Sum(InventSum),Sum(InventMonthEnd))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 09:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-expression-with-dimension-calculation/m-p/525568#M196443</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2013-10-08T09:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: If expression with dimension calculation</title>
      <link>https://community.qlik.com/t5/QlikView/If-expression-with-dimension-calculation/m-p/525569#M196444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jackpot this works perfect. I had to use the Before function since I had the dimension in the horizontal direction, but same logic and it works great. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 10:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-expression-with-dimension-calculation/m-p/525569#M196444</guid>
      <dc:creator />
      <dc:date>2013-10-08T10:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: If expression with dimension calculation</title>
      <link>https://community.qlik.com/t5/QlikView/If-expression-with-dimension-calculation/m-p/525570#M196445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont know if this works since the above answer works fine but it is probably a helpful answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 10:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-expression-with-dimension-calculation/m-p/525570#M196445</guid>
      <dc:creator />
      <dc:date>2013-10-08T10:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: If expression with dimension calculation</title>
      <link>https://community.qlik.com/t5/QlikView/If-expression-with-dimension-calculation/m-p/525571#M196446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data model is way too complex and the calculation I want to make as well for me to post restricted data. That would take a lot of time to have it working correct. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 10:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-expression-with-dimension-calculation/m-p/525571#M196446</guid>
      <dc:creator />
      <dc:date>2013-10-08T10:10:25Z</dc:date>
    </item>
  </channel>
</rss>

