<?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: Sales for Products which have been sold in the same year of their Production (Year in Dimension and in expression) in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sales-for-Products-which-have-been-sold-in-the-same-year-of/m-p/1876590#M1216696</link>
    <description>&lt;P data-unlink="true"&gt;Thank you&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;very much&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="login-bold"&gt;Tresesco for your fast reply.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;I'm afraid I need a sum expression as the same product could be also sold several times in the same year as it was manufactured and I tried the if condition like yours followed by a sum expression - but this also didn't work - am I missing something?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jan 2022 10:01:27 GMT</pubDate>
    <dc:creator>DesertMatt11</dc:creator>
    <dc:date>2022-01-03T10:01:27Z</dc:date>
    <item>
      <title>Sales for Products which have been sold in the same year of their Production (Year in Dimension and in expression) in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-for-Products-which-have-been-sold-in-the-same-year-of/m-p/1876568#M1216694</link>
      <description>&lt;P&gt;Happy New Year to all of you!&lt;/P&gt;
&lt;P&gt;To make my start of the year happy, I really would require your urgent help please, as I'm stuck with this one (getting either wrong data or none).&lt;/P&gt;
&lt;P&gt;Am trying to show the production year of the products as dimension in pivot table and then one expression which counts the products made in this year (done) and one more measure showing the number of products sold AND manufactured in the same year as the related dimension - here I'm stuck - tried everything and cannot find any message here in the forum which worked... I need below output from attached excel and qvw (please adjust your paths in the loadscript to your desktop)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DesertMatt11_0-1641201380796.png" style="width: 302px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69477iFB01A8CD9EEC047E/image-dimensions/302x136?v=v2" width="302" height="136" role="button" title="DesertMatt11_0-1641201380796.png" alt="DesertMatt11_0-1641201380796.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Created also a linktable in the testdata as this is what we have in our quite complex real data - hope all else is self explanatory?&lt;/P&gt;
&lt;P&gt;Could any of you wizards please point me in the right direction?&lt;/P&gt;
&lt;P&gt;Thank you so much&lt;/P&gt;
&lt;P&gt;Matt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 09:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-for-Products-which-have-been-sold-in-the-same-year-of/m-p/1876568#M1216694</guid>
      <dc:creator>DesertMatt11</dc:creator>
      <dc:date>2022-01-03T09:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sales for Products which have been sold in the same year of their Production (Year in Dimension and in expression) in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-for-Products-which-have-been-sold-in-the-same-year-of/m-p/1876577#M1216695</link>
      <description>&lt;P&gt;A front-end easy solution could be using an expression, like:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Count(DISTINCT (If( Year(MakeDate)=Year(SalesDate), Product)))&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 09:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-for-Products-which-have-been-sold-in-the-same-year-of/m-p/1876577#M1216695</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2022-01-03T09:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sales for Products which have been sold in the same year of their Production (Year in Dimension and in expression) in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-for-Products-which-have-been-sold-in-the-same-year-of/m-p/1876590#M1216696</link>
      <description>&lt;P data-unlink="true"&gt;Thank you&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;very much&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="login-bold"&gt;Tresesco for your fast reply.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;I'm afraid I need a sum expression as the same product could be also sold several times in the same year as it was manufactured and I tried the if condition like yours followed by a sum expression - but this also didn't work - am I missing something?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 10:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-for-Products-which-have-been-sold-in-the-same-year-of/m-p/1876590#M1216696</guid>
      <dc:creator>DesertMatt11</dc:creator>
      <dc:date>2022-01-03T10:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sales for Products which have been sold in the same year of their Production (Year in Dimension and in expression) in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-for-Products-which-have-been-sold-in-the-same-year-of/m-p/1876598#M1216697</link>
      <description>&lt;P&gt;Sorry, didn't get you. If you need to count how many times the sales has happened (i.e. - counting the products multiple times when so), you should probably remove the 'distinct' and try like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Count( (If( Year(MakeDate)=Year(SalesDate), Product)))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 10:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-for-Products-which-have-been-sold-in-the-same-year-of/m-p/1876598#M1216697</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2022-01-03T10:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sales for Products which have been sold in the same year of their Production (Year in Dimension and in expression) in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-for-Products-which-have-been-sold-in-the-same-year-of/m-p/1876614#M1216698</link>
      <description>&lt;P&gt;Thank you Tresesco&lt;/P&gt;
&lt;P&gt;This works - so simple I'm really ashamed &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; (but at the same time grateful for your fast and very helpful reply!!!)&lt;/P&gt;
&lt;P&gt;Still cannot understand why I could not get the Sum of Sales Pcs with this logic though?&lt;/P&gt;
&lt;P&gt;THANK YOU VERY MUCH AGAIN Tresesco - I really appreciate it (even though I don't fully understand it...)&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 10:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-for-Products-which-have-been-sold-in-the-same-year-of/m-p/1876614#M1216698</guid>
      <dc:creator>DesertMatt11</dc:creator>
      <dc:date>2022-01-03T10:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sales for Products which have been sold in the same year of their Production (Year in Dimension and in expression) in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-for-Products-which-have-been-sold-in-the-same-year-of/m-p/1876619#M1216699</link>
      <description>&lt;P&gt;Any idea how I would get the Sales Value for all Products which have been produced and Sold in the same year (if we would have the SalesPrice also in the Sales Dat - not only Pcs)?&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Matt&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 10:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-for-Products-which-have-been-sold-in-the-same-year-of/m-p/1876619#M1216699</guid>
      <dc:creator>DesertMatt11</dc:creator>
      <dc:date>2022-01-03T10:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sales for Products which have been sold in the same year of their Production (Year in Dimension and in expression) in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-for-Products-which-have-been-sold-in-the-same-year-of/m-p/1876626#M1216700</link>
      <description>&lt;P&gt;May be:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Sum&lt;/STRONG&gt;( (If( Year(MakeDate)=Year(SalesDate), &lt;STRONG&gt;Sales&lt;/STRONG&gt;)))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 11:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-for-Products-which-have-been-sold-in-the-same-year-of/m-p/1876626#M1216700</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2022-01-03T11:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sales for Products which have been sold in the same year of their Production (Year in Dimension and in expression) in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-for-Products-which-have-been-sold-in-the-same-year-of/m-p/1876634#M1216701</link>
      <description>&lt;P&gt;Yes exactly - figured it also out in the meanwhile.... even added now a setanalysis after sum and before the If... and it seems to give the expected results - am still checking ...&lt;/P&gt;
&lt;P&gt;You put me on the right track - thank you so much Tresesco - never saw this construct before (with if after Sum etc.) - so much to learn always...&lt;/P&gt;
&lt;P&gt;kind regards&lt;/P&gt;
&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 11:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-for-Products-which-have-been-sold-in-the-same-year-of/m-p/1876634#M1216701</guid>
      <dc:creator>DesertMatt11</dc:creator>
      <dc:date>2022-01-03T11:56:25Z</dc:date>
    </item>
  </channel>
</rss>

