<?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: Filter Two Visualizations by 1 common element - Alternate States in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filter-Two-Visualizations-by-1-common-element-Alternate-States/m-p/1656984#M49136</link>
    <description>&lt;P&gt;Suppose we are finding sum of sales&lt;/P&gt;&lt;P&gt;and chart B is dependent on Location and Date whereas chart A is only dependent on Location.&lt;/P&gt;&lt;P&gt;For chart A: sum(&amp;lt;Date=&amp;gt;Sales)&lt;/P&gt;&lt;P&gt;For chart B:&amp;nbsp;sum(Sales).&lt;/P&gt;&lt;P&gt;I think this will work according to your requirement.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2019 10:49:15 GMT</pubDate>
    <dc:creator>Chirag2397</dc:creator>
    <dc:date>2019-12-12T10:49:15Z</dc:date>
    <item>
      <title>Filter Two Visualizations by 1 common element - Alternate States</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Two-Visualizations-by-1-common-element-Alternate-States/m-p/1656813#M49127</link>
      <description>&lt;P&gt;I have an app with 2 visualizations. One visualization (Visualization A) is an area chart that is grouped by "Date" with an area of "X" and a height of "Y". The second visualization (Visualization B) is a stacked bar chart with "Location" as the Bar and "A", "B", "C", and "D" as the heights.&lt;/P&gt;&lt;P&gt;I want BOTH visualizations (Visualization A and Visualization B) to be filterable by "Location".&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want ONLY Visualization B to be filterable by "Date".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Visualization A should ALWAYS cover the entire range in the "Date" field and should not drill down by date.&lt;/P&gt;&lt;P&gt;Example: If I filter by a date in the "Date" field, ONLY Visualization B should drill down to that date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I filter by a "Location", BOTH Visualization A and Visualization B should drill down to that location.&lt;/P&gt;&lt;P&gt;If I filter by a date and location, ONLY Visualization B should drill down to the date, and BOTH Visualization A and B should drill down to the location.&lt;/P&gt;&lt;P&gt;I tried using alternate states, but I can only get Visualization A filterable by one field and Visualization B filterable by another field, independent of each other. Any guidance or assistance would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 01:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Two-Visualizations-by-1-common-element-Alternate-States/m-p/1656813#M49127</guid>
      <dc:creator>mskusace</dc:creator>
      <dc:date>2019-12-12T01:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Two Visualizations by 1 common element - Alternate States</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Two-Visualizations-by-1-common-element-Alternate-States/m-p/1656984#M49136</link>
      <description>&lt;P&gt;Suppose we are finding sum of sales&lt;/P&gt;&lt;P&gt;and chart B is dependent on Location and Date whereas chart A is only dependent on Location.&lt;/P&gt;&lt;P&gt;For chart A: sum(&amp;lt;Date=&amp;gt;Sales)&lt;/P&gt;&lt;P&gt;For chart B:&amp;nbsp;sum(Sales).&lt;/P&gt;&lt;P&gt;I think this will work according to your requirement.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 10:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Two-Visualizations-by-1-common-element-Alternate-States/m-p/1656984#M49136</guid>
      <dc:creator>Chirag2397</dc:creator>
      <dc:date>2019-12-12T10:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Two Visualizations by 1 common element - Alternate States</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Two-Visualizations-by-1-common-element-Alternate-States/m-p/1657064#M49141</link>
      <description>&lt;P&gt;I appreciate your reply!&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula for Visualization A is: (SUM(X1 + X2) / SUM(X2)) -1&lt;/P&gt;&lt;P&gt;I tried: (SUM(&amp;lt;Date=&amp;gt;(X1+X2))/SUM(&amp;lt;Date=&amp;gt;X2)) - 1, but there is an error in the expression with ')' expected.&lt;/P&gt;&lt;P&gt;Am I not inputting something correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 12:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Two-Visualizations-by-1-common-element-Alternate-States/m-p/1657064#M49141</guid>
      <dc:creator>mskusace</dc:creator>
      <dc:date>2019-12-12T12:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Two Visualizations by 1 common element - Alternate States</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-Two-Visualizations-by-1-common-element-Alternate-States/m-p/1657067#M49144</link>
      <description>&lt;P&gt;Oh, I think I got it.&lt;/P&gt;&lt;P&gt;=(SUM({&amp;lt;Date=&amp;gt;}(X1+X2))/SUM({&amp;lt;Date=&amp;gt;}X1)) - 1&lt;/P&gt;&lt;P&gt;Wow, this works great! Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 12:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-Two-Visualizations-by-1-common-element-Alternate-States/m-p/1657067#M49144</guid>
      <dc:creator>mskusace</dc:creator>
      <dc:date>2019-12-12T12:58:46Z</dc:date>
    </item>
  </channel>
</rss>

