<?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: Cost comparison to LY in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Cost-comparison-to-LY/m-p/140341#M9837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Andrey. thank you very much for this solution. It is exactly what I was looking for. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Sep 2018 01:44:13 GMT</pubDate>
    <dc:creator>johngouws</dc:creator>
    <dc:date>2018-09-03T01:44:13Z</dc:date>
    <item>
      <title>Cost comparison to LY</title>
      <link>https://community.qlik.com/t5/App-Development/Cost-comparison-to-LY/m-p/140339#M9835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an existing Sales app and I would like to compare the cost prices of the items I sold this year to the same items sold the previous year. &lt;/P&gt;&lt;P&gt;Currently I have this expressions to calculate this ytd values: &lt;/P&gt;&lt;P&gt;SUM({&amp;lt;[Sales_Fin_Year]=,Sales_Month=,Date = {"&amp;gt;=$(=YearStart(Today(),0))&amp;lt;=$(=AddYears(Today(),0))"} &amp;gt;} [Unit Cost])&lt;/P&gt;&lt;P&gt;and SUM({&amp;lt;[Sales_Fin_Year]=,Sales_Month=,Date = {"&amp;gt;=$(=YearStart(Today(),-1))&amp;lt;=$(=AddYears(Today(),-1))"} &amp;gt;} [Unit Cost]) to calculate previous ytd. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to only show the costs for item sold this years as well as last year and exclude items that were sold in only one of the two years. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not entirely sure if this can be done but would appreciate any help in this regard. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2018 02:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cost-comparison-to-LY/m-p/140339#M9835</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2018-09-01T02:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cost comparison to LY</title>
      <link>https://community.qlik.com/t5/App-Development/Cost-comparison-to-LY/m-p/140340#M9836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, John, try &lt;SPAN lang="en"&gt;to multiply by the condition of the fact of sales in a related year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;your first expr&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;SUM({&amp;lt;[Sales_Fin_Year]=,Sales_Month=,Date = {"&amp;gt;=$(=YearStart(Today(),0))&amp;lt;=$(=AddYears(Today(),0))"} &amp;gt;} [Unit Cost])&amp;nbsp; * &lt;SPAN style="font-size: 13.3333330154419px;"&gt;If( &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;Aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SUM({&amp;lt;[Sales_Fin_Year]=,Sales_Month=,Date = {"&amp;gt;=$(=YearStart(Today(),-1))&amp;lt;=$(=AddYears(Today(),-1))"} &amp;gt;} [Unit Cost])&lt;/SPAN&gt; , [&lt;SPAN style="color: #ff6600;"&gt;You Item Field&lt;/SPAN&gt;])&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt; &amp;gt; 0, 1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;second expr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;SUM({&amp;lt;[Sales_Fin_Year]=,Sales_Month=,Date = {"&amp;gt;=$(=YearStart(Today(),-1))&amp;lt;=$(=AddYears(Today(),-1))"} &amp;gt;} [Unit Cost])&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; * &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;If( &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SUM({&amp;lt;[Sales_Fin_Year]=,Sales_Month=,Date = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{"&amp;gt;=$(=YearStart(Today(),0))&amp;lt;=$(=AddYears(Today(),0))"}&lt;/SPAN&gt; &amp;gt;} [Unit Cost])&lt;/SPAN&gt;, [&lt;SPAN style="color: #ff6600;"&gt;You Item Field&lt;/SPAN&gt;]) &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt; &amp;gt; 0, 1) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2018 07:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cost-comparison-to-LY/m-p/140340#M9836</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-09-01T07:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cost comparison to LY</title>
      <link>https://community.qlik.com/t5/App-Development/Cost-comparison-to-LY/m-p/140341#M9837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Andrey. thank you very much for this solution. It is exactly what I was looking for. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2018 01:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cost-comparison-to-LY/m-p/140341#M9837</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2018-09-03T01:44:13Z</dc:date>
    </item>
  </channel>
</rss>

