<?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: Pivot with Conditional Measure - Total is Blank in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pivot-with-Conditional-Measure-Total-is-Blank/m-p/2495694#M102569</link>
    <description>&lt;P&gt;Thanks! I also found that it works this way too:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum(Aggr(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(_Country='Belgium',2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(_Country='France',5,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(_Country='Germany',3))), _Country))&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2024 07:27:10 GMT</pubDate>
    <dc:creator>SilviyaK</dc:creator>
    <dc:date>2024-12-03T07:27:10Z</dc:date>
    <item>
      <title>Pivot with Conditional Measure - Total is Blank</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-with-Conditional-Measure-Total-is-Blank/m-p/2495607#M102550</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can I please get come help with the below:&lt;BR /&gt;&lt;BR /&gt;I have the following in a simple table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SilviyaK_0-1733153255645.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175096i75981CC2102338ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SilviyaK_0-1733153255645.png" alt="SilviyaK_0-1733153255645.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;From 'Totals Function' I can select the the totals function to be a sum and it shows me the total (10).&lt;BR /&gt;&lt;BR /&gt;If I do exactly the same in a pivot though, this happens:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SilviyaK_1-1733153316149.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175097iEBFF756EFF995CD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SilviyaK_1-1733153316149.png" alt="SilviyaK_1-1733153316149.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How can I make it show the total (10) in a pivot table? There is no totals function or anything equivalent.&lt;/P&gt;
&lt;P&gt;This is just a sample, the original data needs to exist in a pivot in order to fulfil the rest of the requirements for the view.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 15:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-with-Conditional-Measure-Total-is-Blank/m-p/2495607#M102550</guid>
      <dc:creator>SilviyaK</dc:creator>
      <dc:date>2024-12-02T15:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot with Conditional Measure - Total is Blank</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-with-Conditional-Measure-Total-is-Blank/m-p/2495635#M102560</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/197749"&gt;@SilviyaK&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Try putting the values ​​resulting from your condition inside a sum(),&lt;/P&gt;
&lt;P&gt;Sum(&lt;BR /&gt;if(_Country='Belgium',2,&lt;BR /&gt;if(_Country='France',5,&lt;BR /&gt;if(_Country='Germany',3))))&lt;BR /&gt;&lt;BR /&gt;*****************************************************************************&lt;/P&gt;
&lt;P&gt;Below is my example in the pick() function&lt;/P&gt;
&lt;P&gt;sum(pick(match(_Country,'Belgium','France','Germany'),2,5,3))&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatheusC_0-1733164492591.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175103iBBF2DA2667B35301/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatheusC_0-1733164492591.png" alt="MatheusC_0-1733164492591.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*****************************************************************************&lt;BR /&gt;&lt;BR /&gt;If possible too, you could be taking the condition to the script.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- Regards, Matheus&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 18:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-with-Conditional-Measure-Total-is-Blank/m-p/2495635#M102560</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2024-12-02T18:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot with Conditional Measure - Total is Blank</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-with-Conditional-Measure-Total-is-Blank/m-p/2495694#M102569</link>
      <description>&lt;P&gt;Thanks! I also found that it works this way too:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum(Aggr(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(_Country='Belgium',2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(_Country='France',5,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(_Country='Germany',3))), _Country))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 07:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-with-Conditional-Measure-Total-is-Blank/m-p/2495694#M102569</guid>
      <dc:creator>SilviyaK</dc:creator>
      <dc:date>2024-12-03T07:27:10Z</dc:date>
    </item>
  </channel>
</rss>

