<?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 Aggr for Totals in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggr-for-Totals/m-p/1512406#M36489</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;sum( aggr (&lt;BR /&gt;pick(match(#um,'PL','KG','PZ','CT'),&lt;BR /&gt;if(PCU_0='PL',sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},tipo_omaggio={1},segno={1}&amp;gt;}#qnt*PCUSTUCOE_0)+sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}#qnt*PCUSTUCOE_0),&lt;BR /&gt;If(PCU_1='PL',sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},tipo_omaggio={1},segno={1}&amp;gt;}#qnt*PCUSTUCOE_1)+sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}#qnt*PCUSTUCOE_1),&lt;BR /&gt;If(PCU_2='PL',sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},tipo_omaggio={1},segno={1}&amp;gt;}#qnt*PCUSTUCOE_2)+sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}#qnt*PCUSTUCOE_2)&lt;BR /&gt;))),&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//nel caso in cui servisse la dimensione vanno cconsiderati i pezzi e i ct in base ai pezzi cy&lt;BR /&gt;//sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},segno={1},tipo_omaggio={1}&amp;gt;} floor(#qnt/peso_medio_agan,1))+&lt;BR /&gt;//sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}floor(#qnt/peso_medio_agan,1)),&lt;BR /&gt;sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},segno={1},tipo_omaggio={1}&amp;gt;}#qnt)+&lt;BR /&gt;sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}#qnt),&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},segno={1},tipo_omaggio={1}&amp;gt;}#qnt)+&lt;BR /&gt;sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}#qnt),&lt;/P&gt;&lt;P&gt;if(unita_mag_art='PZ',&lt;BR /&gt;sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},segno={1},tipo_omaggio={1}&amp;gt;}#qnt*pezzi_cart_kg_agan)+&lt;BR /&gt;sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},[%Fattura]={'nd'},tipo_omaggio={1}&amp;gt;}#qnt*pezzi_cart_kg_agan),&lt;BR /&gt;sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},segno={1},tipo_omaggio={1}&amp;gt;}#qnt)+&lt;BR /&gt;sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},[%Fattura]={'nd'},tipo_omaggio={1}&amp;gt;}#qnt))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;, [%Articolo],#um,unita_mag_art))&lt;/P&gt;&lt;P&gt;and the result is:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QC1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1003i5C8F8C7C765E4777/image-size/large?v=v2&amp;amp;px=999" role="button" title="QC1.png" alt="QC1.png" /&gt;&lt;/span&gt;Now i'd like to see for each "Cod.Articolo" the Total not considering subdivision on cod_lotto.&lt;/P&gt;&lt;P&gt;The result should be:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QC2.png" style="width: 498px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1004i899F8D9F48A1AE79/image-size/large?v=v2&amp;amp;px=999" role="button" title="QC2.png" alt="QC2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is it possible???&lt;/P&gt;&lt;P&gt;Thank you all.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:49:49 GMT</pubDate>
    <dc:creator>c_pannese</dc:creator>
    <dc:date>2024-11-16T21:49:49Z</dc:date>
    <item>
      <title>Aggr for Totals</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-for-Totals/m-p/1512406#M36489</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;sum( aggr (&lt;BR /&gt;pick(match(#um,'PL','KG','PZ','CT'),&lt;BR /&gt;if(PCU_0='PL',sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},tipo_omaggio={1},segno={1}&amp;gt;}#qnt*PCUSTUCOE_0)+sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}#qnt*PCUSTUCOE_0),&lt;BR /&gt;If(PCU_1='PL',sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},tipo_omaggio={1},segno={1}&amp;gt;}#qnt*PCUSTUCOE_1)+sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}#qnt*PCUSTUCOE_1),&lt;BR /&gt;If(PCU_2='PL',sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},tipo_omaggio={1},segno={1}&amp;gt;}#qnt*PCUSTUCOE_2)+sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}#qnt*PCUSTUCOE_2)&lt;BR /&gt;))),&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//nel caso in cui servisse la dimensione vanno cconsiderati i pezzi e i ct in base ai pezzi cy&lt;BR /&gt;//sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},segno={1},tipo_omaggio={1}&amp;gt;} floor(#qnt/peso_medio_agan,1))+&lt;BR /&gt;//sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}floor(#qnt/peso_medio_agan,1)),&lt;BR /&gt;sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},segno={1},tipo_omaggio={1}&amp;gt;}#qnt)+&lt;BR /&gt;sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}#qnt),&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},segno={1},tipo_omaggio={1}&amp;gt;}#qnt)+&lt;BR /&gt;sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}#qnt),&lt;/P&gt;&lt;P&gt;if(unita_mag_art='PZ',&lt;BR /&gt;sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},segno={1},tipo_omaggio={1}&amp;gt;}#qnt*pezzi_cart_kg_agan)+&lt;BR /&gt;sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},[%Fattura]={'nd'},tipo_omaggio={1}&amp;gt;}#qnt*pezzi_cart_kg_agan),&lt;BR /&gt;sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},segno={1},tipo_omaggio={1}&amp;gt;}#qnt)+&lt;BR /&gt;sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},[%Fattura]={'nd'},tipo_omaggio={1}&amp;gt;}#qnt))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;, [%Articolo],#um,unita_mag_art))&lt;/P&gt;&lt;P&gt;and the result is:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QC1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1003i5C8F8C7C765E4777/image-size/large?v=v2&amp;amp;px=999" role="button" title="QC1.png" alt="QC1.png" /&gt;&lt;/span&gt;Now i'd like to see for each "Cod.Articolo" the Total not considering subdivision on cod_lotto.&lt;/P&gt;&lt;P&gt;The result should be:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QC2.png" style="width: 498px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1004i899F8D9F48A1AE79/image-size/large?v=v2&amp;amp;px=999" role="button" title="QC2.png" alt="QC2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is it possible???&lt;/P&gt;&lt;P&gt;Thank you all.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-for-Totals/m-p/1512406#M36489</guid>
      <dc:creator>c_pannese</dc:creator>
      <dc:date>2024-11-16T21:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr for Totals</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-for-Totals/m-p/1512452#M36492</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;PRE&gt;sum(&lt;FONT color="#FF0000"&gt;TOTAL &amp;lt;[%Articolo], #um&amp;gt;&lt;/FONT&gt; Aggr(
Pick(Match(#um,'PL','KG','PZ','CT'),
if(PCU_0='PL',sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},tipo_omaggio={1},segno={1}&amp;gt;}#qnt*PCUSTUCOE_0)+sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}#qnt*PCUSTUCOE_0),
If(PCU_1='PL',sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},tipo_omaggio={1},segno={1}&amp;gt;}#qnt*PCUSTUCOE_1)+sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}#qnt*PCUSTUCOE_1),
If(PCU_2='PL',sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},tipo_omaggio={1},segno={1}&amp;gt;}#qnt*PCUSTUCOE_2)+sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}#qnt*PCUSTUCOE_2)
))),


//nel caso in cui servisse la dimensione vanno cconsiderati i pezzi e i ct in base ai pezzi cy
//sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},segno={1},tipo_omaggio={1}&amp;gt;} floor(#qnt/peso_medio_agan,1))+
//sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}floor(#qnt/peso_medio_agan,1)),
sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},segno={1},tipo_omaggio={1}&amp;gt;}#qnt)+
sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}#qnt),

sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},segno={1},tipo_omaggio={1}&amp;gt;}#qnt)+
sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},%Fattura={'nd'},tipo_omaggio={1}&amp;gt;}#qnt),

if(unita_mag_art='PZ',
sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},segno={1},tipo_omaggio={1}&amp;gt;}#qnt*pezzi_cart_kg_agan)+
sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},[%Fattura]={'nd'},tipo_omaggio={1}&amp;gt;}#qnt*pezzi_cart_kg_agan),
sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={1},segno={1},tipo_omaggio={1}&amp;gt;}#qnt)+
sum({$&amp;lt;Anno={$(vyear)},[%Tp_dato]={3},[%Fattura]={'nd'},tipo_omaggio={1}&amp;gt;}#qnt))
)

, [%Articolo],#um,unita_mag_art))&lt;/PRE&gt;&lt;P&gt;Here I am assuming that &lt;STRONG&gt;[#um]&lt;/STRONG&gt; = &lt;STRONG&gt;[Unita di magazzin]&lt;/STRONG&gt; and &lt;STRONG&gt;[%Articolo]&lt;/STRONG&gt; = &lt;STRONG&gt;[Cod.Articolo]&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 18:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-for-Totals/m-p/1512452#M36492</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-26T18:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr for Totals</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-for-Totals/m-p/1512568#M36496</link>
      <description>I can remove this [Unita di magazzin] from TOTAL statement.</description>
      <pubDate>Tue, 27 Nov 2018 04:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-for-Totals/m-p/1512568#M36496</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-11-27T04:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr for Totals</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-for-Totals/m-p/1512679#M36501</link>
      <description>thank you very much!&lt;BR /&gt;it works!</description>
      <pubDate>Tue, 27 Nov 2018 08:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-for-Totals/m-p/1512679#M36501</guid>
      <dc:creator>c_pannese</dc:creator>
      <dc:date>2018-11-27T08:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr for Totals</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-for-Totals/m-p/1512680#M36502</link>
      <description>yes it seems work correctly!&lt;BR /&gt;Thanks!</description>
      <pubDate>Tue, 27 Nov 2018 08:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-for-Totals/m-p/1512680#M36502</guid>
      <dc:creator>c_pannese</dc:creator>
      <dc:date>2018-11-27T08:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr for Totals</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-for-Totals/m-p/1512810#M36515</link>
      <description>Not sure I understand?</description>
      <pubDate>Tue, 27 Nov 2018 12:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-for-Totals/m-p/1512810#M36515</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-27T12:04:51Z</dc:date>
    </item>
  </channel>
</rss>

