<?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: Only(Year)-1) with Set Analysis (Aggr function) Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Only-Year-1-with-Set-Analysis-Aggr-function-Problem/m-p/1683363#M727749</link>
    <description>&lt;P&gt;Have you tried to double quote your modifier?&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year={&lt;STRONG&gt;"&lt;/STRONG&gt;$(=year(today())-1)&lt;STRONG&gt;"&lt;/STRONG&gt;}&amp;gt;} [PZ Poz. Wartość po korekcie])&lt;/P&gt;</description>
    <pubDate>Tue, 10 Mar 2020 15:15:35 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2020-03-10T15:15:35Z</dc:date>
    <item>
      <title>Only(Year)-1) with Set Analysis (Aggr function) Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Only-Year-1-with-Set-Analysis-Aggr-function-Problem/m-p/1683307#M727743</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have a problem with showing data in chart - straight table where I wanna show year to year messure.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dimension = Month;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Expressions =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Only(Year)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum(Aggr((sum({&amp;lt;Year={$(=Only(Year))}&amp;gt;}[PZ Poz. Wartość po korekcie])/Count({&amp;lt;Year={$(=Only(Rok))}&amp;gt;}distinct [ZAMD NR])),[Dostawca Skrót],[PZ Nr mag.],[PZ Symbol],[Data],[Indeks Linia],[Indeks Indeks] ,[Indeks Nazwa],[PZ Poz. Cena po korekcie],[KH_ID])) - and that's work fine&lt;/P&gt;&lt;P&gt;The problem begins with previous Year:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Only(Year)-1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum(Aggr((sum({&amp;lt;Year={$(=Only(Year)-1)}&amp;gt;}[PZ Poz. Wartość po korekcie])/Count({&amp;lt;Year={$(=Only(Year)-1)}&amp;gt;}distinct [ZAMD NR])),[Dostawca Skrót],[PZ Nr mag.],[PZ Symbol],[Data],[Indeks Linia],[Indeks Indeks] ,[Indeks Nazwa],[PZ Poz. Cena po korekcie],[KH_ID]))&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There are no results &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-Year-1-with-Set-Analysis-Aggr-function-Problem/m-p/1683307#M727743</guid>
      <dc:creator>MikeMac84PL</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Only(Year)-1) with Set Analysis (Aggr function) Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Only-Year-1-with-Set-Analysis-Aggr-function-Problem/m-p/1683314#M727744</link>
      <description>&lt;P&gt;Have you made a selection in a year field? Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt;Year = {$(=Only(Year)-1)}&amp;gt;} Aggr((Sum({&amp;lt;Year = {$(=Only(Year)-1)}&amp;gt;} [PZ Poz. Wartość po korekcie])/Count({&amp;lt;Year = {$(=Only(Year)-1)}&amp;gt;} DISTINCT [ZAMD NR])), [Dostawca Skrót], [PZ Nr mag.], [PZ Symbol], [Data], [Indeks Linia], [Indeks Indeks], [Indeks Nazwa], [PZ Poz. Cena po korekcie], [KH_ID])) &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-Year-1-with-Set-Analysis-Aggr-function-Problem/m-p/1683314#M727744</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-03-10T14:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Only(Year)-1) with Set Analysis (Aggr function) Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Only-Year-1-with-Set-Analysis-Aggr-function-Problem/m-p/1683320#M727745</link>
      <description>&lt;P&gt;Sunny_talwar&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the answer.&lt;/P&gt;&lt;P&gt;I appreciate it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try this ealier but the result is still no data in table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any other ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:10:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-Year-1-with-Set-Analysis-Aggr-function-Problem/m-p/1683320#M727745</guid>
      <dc:creator>MikeMac84PL</dc:creator>
      <dc:date>2020-03-10T14:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Only(Year)-1) with Set Analysis (Aggr function) Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Only-Year-1-with-Set-Analysis-Aggr-function-Problem/m-p/1683323#M727746</link>
      <description>&lt;P&gt;Are you making selection in any other field except for Year field which is directly related to Year field? Like YearStart or MonthYear?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-Year-1-with-Set-Analysis-Aggr-function-Problem/m-p/1683323#M727746</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-03-10T14:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Only(Year)-1) with Set Analysis (Aggr function) Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Only-Year-1-with-Set-Analysis-Aggr-function-Problem/m-p/1683335#M727747</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29823i80E986EE2C2FA4A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29824iF64DCEB00736D019/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:27:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-Year-1-with-Set-Analysis-Aggr-function-Problem/m-p/1683335#M727747</guid>
      <dc:creator>MikeMac84PL</dc:creator>
      <dc:date>2020-03-10T14:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Only(Year)-1) with Set Analysis (Aggr function) Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Only-Year-1-with-Set-Analysis-Aggr-function-Problem/m-p/1683336#M727748</link>
      <description>&lt;P&gt;This are all expressions in my table:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Year in polish is ROK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;year(today())-1 :&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year={$(=year(today())-1)}&amp;gt;} [PZ Poz. Wartość po korekcie])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;year(today()):&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year={$(=year(today()))}&amp;gt;}[PZ Poz. Wartość po korekcie])&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-Year-1-with-Set-Analysis-Aggr-function-Problem/m-p/1683336#M727748</guid>
      <dc:creator>MikeMac84PL</dc:creator>
      <dc:date>2020-03-10T14:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Only(Year)-1) with Set Analysis (Aggr function) Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Only-Year-1-with-Set-Analysis-Aggr-function-Problem/m-p/1683363#M727749</link>
      <description>&lt;P&gt;Have you tried to double quote your modifier?&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year={&lt;STRONG&gt;"&lt;/STRONG&gt;$(=year(today())-1)&lt;STRONG&gt;"&lt;/STRONG&gt;}&amp;gt;} [PZ Poz. Wartość po korekcie])&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 15:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-Year-1-with-Set-Analysis-Aggr-function-Problem/m-p/1683363#M727749</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-03-10T15:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Only(Year)-1) with Set Analysis (Aggr function) Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Only-Year-1-with-Set-Analysis-Aggr-function-Problem/m-p/1683607#M727750</link>
      <description>&lt;P&gt;=sum({&amp;lt;Rok={$(=Only(Rok)-1)}&amp;gt;}Aggr((sum ({&amp;lt;Rok={$(=Only(Rok)-1)}&amp;gt;}[PZ Poz. Wartość po korekcie])/Count({&amp;lt;Rok={$(=Only(Rok)-1)}&amp;gt;}distinct [ZAMD NR])),[Dostawca Skrót],[PZ Nr mag.],[PZ Symbol],[Data],[Indeks Linia],[Indeks Indeks] ,[Indeks Nazwa],[PZ Poz. Cena po korekcie],KH_ID))/ if(vWaluta=1,vEUR,1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THATS WORKING... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 07:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-Year-1-with-Set-Analysis-Aggr-function-Problem/m-p/1683607#M727750</guid>
      <dc:creator>MikeMac84PL</dc:creator>
      <dc:date>2020-03-11T07:53:09Z</dc:date>
    </item>
  </channel>
</rss>

