<?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 Utilizing multiple field selections in pivot table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Utilizing-multiple-field-selections-in-pivot-table/m-p/1630739#M46969</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have a pivot table with customer names as my row, regions and year as my column and revenue as my measure. My current formula is such:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Sum({$&amp;lt;[Waterfall $(=GetFieldSelections(Year))] = {'Renewal'}&amp;gt;}Revenue)&lt;/P&gt;&lt;P&gt;Where I am filtering on renewals for a current year. e.g. if i only select 2019 I get&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Sum({$&amp;lt;[Waterfall 2019] = {'Renewal'}&amp;gt;}Revenue)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current issue is if the user selects multiple years, then my formula breaks, because my formula reads&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Sum({$&amp;lt;[Waterfall 2019, 2020] = {'Renewal'}&amp;gt;}Revenue)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20575i7DCFBE42772D2F6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a way to limit my formula to the years selected? Such that 2019 would be&amp;nbsp;Sum({$&amp;lt;[Waterfall 2019] = {'Renewal'}&amp;gt;}Revenue) and&amp;nbsp;Sum({$&amp;lt;[Waterfall 2020] = {'Renewal'}&amp;gt;}Revenue)&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2019 19:10:10 GMT</pubDate>
    <dc:creator>kgwen100</dc:creator>
    <dc:date>2019-10-02T19:10:10Z</dc:date>
    <item>
      <title>Utilizing multiple field selections in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Utilizing-multiple-field-selections-in-pivot-table/m-p/1630739#M46969</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have a pivot table with customer names as my row, regions and year as my column and revenue as my measure. My current formula is such:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Sum({$&amp;lt;[Waterfall $(=GetFieldSelections(Year))] = {'Renewal'}&amp;gt;}Revenue)&lt;/P&gt;&lt;P&gt;Where I am filtering on renewals for a current year. e.g. if i only select 2019 I get&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Sum({$&amp;lt;[Waterfall 2019] = {'Renewal'}&amp;gt;}Revenue)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current issue is if the user selects multiple years, then my formula breaks, because my formula reads&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Sum({$&amp;lt;[Waterfall 2019, 2020] = {'Renewal'}&amp;gt;}Revenue)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20575i7DCFBE42772D2F6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a way to limit my formula to the years selected? Such that 2019 would be&amp;nbsp;Sum({$&amp;lt;[Waterfall 2019] = {'Renewal'}&amp;gt;}Revenue) and&amp;nbsp;Sum({$&amp;lt;[Waterfall 2020] = {'Renewal'}&amp;gt;}Revenue)&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 19:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Utilizing-multiple-field-selections-in-pivot-table/m-p/1630739#M46969</guid>
      <dc:creator>kgwen100</dc:creator>
      <dc:date>2019-10-02T19:10:10Z</dc:date>
    </item>
  </channel>
</rss>

