<?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: How to calculate a turnover per year in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-calculate-a-turnover-per-year/m-p/1280600#M26670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you a lot for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try to implement your recommandation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2016 09:51:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-12-07T09:51:36Z</dc:date>
    <item>
      <title>How to calculate a turnover per year</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-calculate-a-turnover-per-year/m-p/1280597#M26667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table called "Sales" with the date of the operation and the amount of the operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a table with customers' details and for each customer it's turn over per year (for the last 3 years).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I resolve the problem please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tx by advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 13:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-calculate-a-turnover-per-year/m-p/1280597#M26667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-05T13:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a turnover per year</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-calculate-a-turnover-per-year/m-p/1280598#M26668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excuse me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is a YTD and not simple sales per Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tx&lt;/P&gt;&lt;P&gt;JP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 15:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-calculate-a-turnover-per-year/m-p/1280598#M26668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-05T15:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a turnover per year</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-calculate-a-turnover-per-year/m-p/1280599#M26669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lets say you have a loaded table called 'Sales' with fields CustomerId, TransactionDate and TransactionAmount...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could create another table that would sum the sales for each customer for the previous year like so...&lt;/P&gt;&lt;P&gt;CustomerData:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Distinct CustomerId&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , Sum(if(inyear(TransactionDate, Today(),-1),TransactionAmount)) AS sumOfSalesForLastYear&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident SalesData&lt;/P&gt;&lt;P&gt;&amp;nbsp; Group By CustomerId&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the inyear function in the QS help documentation.&amp;nbsp; You will need to modify the above code for the specifics of your turnover calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 00:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-calculate-a-turnover-per-year/m-p/1280599#M26669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-06T00:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a turnover per year</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-calculate-a-turnover-per-year/m-p/1280600#M26670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you a lot for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try to implement your recommandation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 09:51:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-calculate-a-turnover-per-year/m-p/1280600#M26670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-07T09:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a turnover per year</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-calculate-a-turnover-per-year/m-p/1280601#M26671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A href="https://community.qlik.com/qlik-users/223856"&gt;brianrmacdonald&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just implemented your recommandation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to specify that the fiels is numeric please (the sum) because in the reporting, it is shown as a string field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tx by advance,&lt;/P&gt;&lt;P&gt;JP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 10:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-calculate-a-turnover-per-year/m-p/1280601#M26671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-07T10:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a turnover per year</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-calculate-a-turnover-per-year/m-p/1280602#M26672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the sum() function compute correctly?&amp;nbsp; If so, I am not sure how the result could be a string, but you could use the Num#() function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement" style="font-weight: bold; color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt;Num#()&lt;/SPAN&gt;&lt;SPAN style="color: #0f0f0f; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px;"&gt; converts a text string to a numerical value, in the number format set in the data load script or the operating system. Custom decimal and thousand separator symbols are optional parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 16:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-calculate-a-turnover-per-year/m-p/1280602#M26672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-07T16:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate a turnover per year</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-calculate-a-turnover-per-year/m-p/1280603#M26673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried to use Num#() but when I add the field to a table (as a dimension), it will add it as a text.&lt;/P&gt;&lt;P&gt;So to resolve my issue, I added the field as a measure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 17:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-calculate-a-turnover-per-year/m-p/1280603#M26673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-07T17:41:03Z</dc:date>
    </item>
  </channel>
</rss>

