<?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: Measure not aggregated in Pivot Table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Measure-not-aggregated-in-Pivot-Table/m-p/1896923#M74019</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;neither this unfortunately.&lt;/P&gt;
&lt;P&gt;I'll write my calculated dimension here below (I don't know if this can help)...the other one is not calculated.&lt;/P&gt;
&lt;PRE&gt;=If(Year(AsOfMonth)&amp;gt;Year(Now())-3,AsOfMonth)&lt;/PRE&gt;
&lt;P&gt;I'll show you what I get with both the solutions you wrote.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RighettiAndrea_0-1645687962642.png" style="width: 564px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72970i6B7D348D70C887EF/image-dimensions/564x182?v=v2" width="564" height="182" role="button" title="RighettiAndrea_0-1645687962642.png" alt="RighettiAndrea_0-1645687962642.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the first case I don't get the column Fornitori.Fornitore and the Total show is uncorrect.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RighettiAndrea_1-1645688148859.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72971iDAEF9A17C33939E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RighettiAndrea_1-1645688148859.png" alt="RighettiAndrea_1-1645688148859.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the second case, replacing &amp;lt;urDim&amp;gt; with AsOfMonth I don't get the column Fornitori.Fornitore but the Total is correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks a lot&lt;/P&gt;</description>
    <pubDate>Thu, 24 Feb 2022 07:37:01 GMT</pubDate>
    <dc:creator>RighettiAndrea</dc:creator>
    <dc:date>2022-02-24T07:37:01Z</dc:date>
    <item>
      <title>Measure not aggregated in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Measure-not-aggregated-in-Pivot-Table/m-p/1896619#M73995</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;I have a pivot table with 2 dimensions.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RighettiAndrea_0-1645627475317.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72920i826E8CF150140419/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RighettiAndrea_0-1645627475317.png" alt="RighettiAndrea_0-1645627475317.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see here, the column "Quantità" can be related to every dimension, while the other one ("Ton") is only related to the Date. I'd like to have only the measure called "Qta / Ton" but I'm not able to get the right value.&lt;BR /&gt;What I'd like to see is a calculation based on the measure Quantità divided by the total Ton (49377).&lt;BR /&gt;For example I want to see in the first row (ECOGARDA SRL)&amp;nbsp; the result of 228260/49377 = 4.62.&lt;/P&gt;
&lt;P&gt;Here the measure Quantità&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Sum({Acquisti &amp;lt;MonthDiff={"&amp;lt;12"}&amp;gt;} [Righe.Quantità])&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;And here the measure Ton&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Aggr(Sum({&amp;lt;MonthDiff={"&amp;lt;12"}&amp;gt;} [S_ODL.Lordo Fonderia]/[DT_ARTICOLI.Impronte]*[DT_ARTICOLI.Peso Stampata])/1000,AsOfMonth)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;How can I get the new measure "Quantità / Ton" as explained before?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 14:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Measure-not-aggregated-in-Pivot-Table/m-p/1896619#M73995</guid>
      <dc:creator>RighettiAndrea</dc:creator>
      <dc:date>2022-02-23T14:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not aggregated in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Measure-not-aggregated-in-Pivot-Table/m-p/1896623#M73996</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try to add your first dimension in the aggr like :&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum(Aggr(Sum({&amp;lt;MonthDiff={"&amp;lt;12"}&amp;gt;} [S_ODL.Lordo Fonderia]/[DT_ARTICOLI.Impronte]*[DT_ARTICOLI.Peso Stampata])/1000, AsOfMonth, [Fornitori.Fornitori]))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Aurélien&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 14:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Measure-not-aggregated-in-Pivot-Table/m-p/1896623#M73996</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2022-02-23T14:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not aggregated in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Measure-not-aggregated-in-Pivot-Table/m-p/1896907#M74017</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;unfortunately it doesn't do what I'm looking for.&lt;/P&gt;
&lt;P&gt;If I write the complete measure this way (here below), the numbers aren't correct&lt;/P&gt;
&lt;PRE&gt;Sum({Acquisti &amp;lt;MonthDiff={"&amp;lt;12"}&amp;gt;} [Righe.Quantità]) /&lt;BR /&gt;Sum(Aggr(Sum({&amp;lt;MonthDiff={"&amp;lt;12"}&amp;gt;} [S_ODL.Lordo Fonderia]/[DT_ARTICOLI.Impronte]*[DT_ARTICOLI.Peso Stampata])/1000,AsOfMonth,[Fornitori.Fornitore]))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RighettiAndrea_0-1645686502614.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72967i06CC1D030E77CAF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RighettiAndrea_0-1645686502614.png" alt="RighettiAndrea_0-1645686502614.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 07:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Measure-not-aggregated-in-Pivot-Table/m-p/1896907#M74017</guid>
      <dc:creator>RighettiAndrea</dc:creator>
      <dc:date>2022-02-24T07:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not aggregated in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Measure-not-aggregated-in-Pivot-Table/m-p/1896915#M74018</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Might be, try like below&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"Quantità / Ton":&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum({Acquisti &amp;lt;MonthDiff={"&amp;lt;12"}&amp;gt;} [Righe.Quantità]) /&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Aggr(Sum(Total {&amp;lt;MonthDiff={"&amp;lt;12"}&amp;gt;} [S_ODL.Lordo Fonderia]/[DT_ARTICOLI.Impronte]*[DT_ARTICOLI.Peso Stampata])/1000,AsOfMonth)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum({Acquisti &amp;lt;MonthDiff={"&amp;lt;12"}&amp;gt;} [Righe.Quantità]) /&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Aggr(Sum(Total&amp;lt;urDim&amp;gt; {&amp;lt;MonthDiff={"&amp;lt;12"}&amp;gt;} [S_ODL.Lordo Fonderia]/[DT_ARTICOLI.Impronte]*[DT_ARTICOLI.Peso Stampata])/1000,AsOfMonth)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 07:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Measure-not-aggregated-in-Pivot-Table/m-p/1896915#M74018</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2022-02-24T07:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not aggregated in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Measure-not-aggregated-in-Pivot-Table/m-p/1896923#M74019</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;neither this unfortunately.&lt;/P&gt;
&lt;P&gt;I'll write my calculated dimension here below (I don't know if this can help)...the other one is not calculated.&lt;/P&gt;
&lt;PRE&gt;=If(Year(AsOfMonth)&amp;gt;Year(Now())-3,AsOfMonth)&lt;/PRE&gt;
&lt;P&gt;I'll show you what I get with both the solutions you wrote.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RighettiAndrea_0-1645687962642.png" style="width: 564px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72970i6B7D348D70C887EF/image-dimensions/564x182?v=v2" width="564" height="182" role="button" title="RighettiAndrea_0-1645687962642.png" alt="RighettiAndrea_0-1645687962642.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the first case I don't get the column Fornitori.Fornitore and the Total show is uncorrect.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RighettiAndrea_1-1645688148859.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72971iDAEF9A17C33939E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RighettiAndrea_1-1645688148859.png" alt="RighettiAndrea_1-1645688148859.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the second case, replacing &amp;lt;urDim&amp;gt; with AsOfMonth I don't get the column Fornitori.Fornitore but the Total is correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks a lot&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 07:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Measure-not-aggregated-in-Pivot-Table/m-p/1896923#M74019</guid>
      <dc:creator>RighettiAndrea</dc:creator>
      <dc:date>2022-02-24T07:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not aggregated in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Measure-not-aggregated-in-Pivot-Table/m-p/1896948#M74022</link>
      <description>&lt;P&gt;Hi everyone!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've found a soulution.&lt;/P&gt;
&lt;PRE&gt;Sum({Acquisti &amp;lt;MonthDiff={"&amp;lt;12"}&amp;gt;} [Righe.Quantità]) /&lt;BR /&gt;Aggr((Sum(Total &amp;lt;AsOfMonth&amp;gt; {&amp;lt;MonthDiff={"&amp;lt;12"}&amp;gt;} [S_ODL.Lordo Fonderia]/[DT_ARTICOLI.Impronte]*[DT_ARTICOLI.Peso Stampata])/1000),AsOfMonth,Fornitori.Fornitore)&lt;/PRE&gt;
&lt;P&gt;It is based on&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Mayil's answer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks a lot!!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 08:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Measure-not-aggregated-in-Pivot-Table/m-p/1896948#M74022</guid>
      <dc:creator>RighettiAndrea</dc:creator>
      <dc:date>2022-02-24T08:15:44Z</dc:date>
    </item>
  </channel>
</rss>

