<?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 How to get the bar chart  variable factors  changed by filter selection ( GetFieldSelections())? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-get-the-bar-chart-variable-factors-changed-by-filter/m-p/1866783#M71565</link>
    <description>&lt;P&gt;I'm trying to create a bar chart that changes variable factors by filter selections.&lt;/P&gt;
&lt;P&gt;With ID of A, B, and C, I want to compare two selected factors' sum&lt;/P&gt;
&lt;P&gt;like&amp;nbsp; A&amp;amp;B sum by date,&amp;nbsp; &amp;nbsp;A&amp;amp;C &lt;SPAN&gt;sum by date ,&amp;nbsp;&lt;/SPAN&gt;or B&amp;amp;C &lt;SPAN&gt;sum by date&amp;nbsp;&lt;/SPAN&gt;as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="barchart.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67934i2A8F55E304E363D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="barchart.PNG" alt="barchart.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the first issue I'm facing is&lt;EM&gt;&lt;STRONG&gt; sum({$&amp;lt;ID={'$(GetFieldSelections(ID))'}&amp;gt;} Unit)&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;does not bring sum unit into the graph, even though KPI shows the selected factor.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="barchart2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67933i8577166825827082/image-size/large?v=v2&amp;amp;px=999" role="button" title="barchart2.PNG" alt="barchart2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then the second issue is that how can I apply two selections into that one bar chart?&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="barchart3.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67935i3634A6833D99AF54/image-size/large?v=v2&amp;amp;px=999" role="button" title="barchart3.PNG" alt="barchart3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data is as below.&lt;/P&gt;
&lt;P&gt;original:&lt;BR /&gt;load * inline [ Date, Week, ID, Unit&lt;BR /&gt;9/1/2021, 1, A, 1&lt;BR /&gt;9/1/2021, 1, A, 2&lt;BR /&gt;9/2/2021, 1, A, 1&lt;BR /&gt;9/2/2021, 1, A, 2&lt;BR /&gt;9/2/2021, 1, C, 2&lt;BR /&gt;9/3/2021, 1, A, 1&lt;BR /&gt;9/4/2021, 1, A, 2&lt;BR /&gt;9/5/2021, 1, A, 2&lt;BR /&gt;9/6/2021, 1, A, 2&lt;BR /&gt;9/7/2021, 2, A, 3&lt;BR /&gt;9/9/2021, 2, A, 3&lt;BR /&gt;9/9/2021, 2, A, 3&lt;BR /&gt;9/9/2021, 2, C, 3&lt;BR /&gt;9/3/2021, 1, B, 1&lt;BR /&gt;9/4/2021, 1, B, 2&lt;BR /&gt;9/5/2021, 1, B, 2&lt;BR /&gt;9/6/2021, 1, B, 2&lt;BR /&gt;9/7/2021, 2, B, 3&lt;BR /&gt;9/7/2021, 2, B, 5&lt;BR /&gt;9/7/2021, 2, C, 5&lt;BR /&gt;9/9/2021, 2, B, 3&lt;BR /&gt;9/10/2021, 2, A, 3&lt;BR /&gt;9/14/2021, 3, A, 2&lt;BR /&gt;9/10/2021, 2, B, 3&lt;BR /&gt;9/11/2021, 3, B, 2&lt;BR /&gt;9/12/2021, 3, B, 2&lt;BR /&gt;9/13/2021, 3, B, 2&lt;BR /&gt;9/13/2021, 3, B, 4&lt;BR /&gt;9/14/2021, 3, B, 2&lt;BR /&gt;9/27/2021, 5, A, 2&lt;BR /&gt;9/28/2021, 5, A, 5&lt;BR /&gt;9/15/2021, 3, B, 2&lt;BR /&gt;9/15/2021, 3, B, 3&lt;BR /&gt;9/16/2021, 3, B, 2&lt;BR /&gt;];&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:26:44 GMT</pubDate>
    <dc:creator>nezuko_kamado</dc:creator>
    <dc:date>2024-11-15T23:26:44Z</dc:date>
    <item>
      <title>How to get the bar chart  variable factors  changed by filter selection ( GetFieldSelections())?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-the-bar-chart-variable-factors-changed-by-filter/m-p/1866783#M71565</link>
      <description>&lt;P&gt;I'm trying to create a bar chart that changes variable factors by filter selections.&lt;/P&gt;
&lt;P&gt;With ID of A, B, and C, I want to compare two selected factors' sum&lt;/P&gt;
&lt;P&gt;like&amp;nbsp; A&amp;amp;B sum by date,&amp;nbsp; &amp;nbsp;A&amp;amp;C &lt;SPAN&gt;sum by date ,&amp;nbsp;&lt;/SPAN&gt;or B&amp;amp;C &lt;SPAN&gt;sum by date&amp;nbsp;&lt;/SPAN&gt;as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="barchart.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67934i2A8F55E304E363D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="barchart.PNG" alt="barchart.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the first issue I'm facing is&lt;EM&gt;&lt;STRONG&gt; sum({$&amp;lt;ID={'$(GetFieldSelections(ID))'}&amp;gt;} Unit)&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;does not bring sum unit into the graph, even though KPI shows the selected factor.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="barchart2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67933i8577166825827082/image-size/large?v=v2&amp;amp;px=999" role="button" title="barchart2.PNG" alt="barchart2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then the second issue is that how can I apply two selections into that one bar chart?&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="barchart3.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67935i3634A6833D99AF54/image-size/large?v=v2&amp;amp;px=999" role="button" title="barchart3.PNG" alt="barchart3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data is as below.&lt;/P&gt;
&lt;P&gt;original:&lt;BR /&gt;load * inline [ Date, Week, ID, Unit&lt;BR /&gt;9/1/2021, 1, A, 1&lt;BR /&gt;9/1/2021, 1, A, 2&lt;BR /&gt;9/2/2021, 1, A, 1&lt;BR /&gt;9/2/2021, 1, A, 2&lt;BR /&gt;9/2/2021, 1, C, 2&lt;BR /&gt;9/3/2021, 1, A, 1&lt;BR /&gt;9/4/2021, 1, A, 2&lt;BR /&gt;9/5/2021, 1, A, 2&lt;BR /&gt;9/6/2021, 1, A, 2&lt;BR /&gt;9/7/2021, 2, A, 3&lt;BR /&gt;9/9/2021, 2, A, 3&lt;BR /&gt;9/9/2021, 2, A, 3&lt;BR /&gt;9/9/2021, 2, C, 3&lt;BR /&gt;9/3/2021, 1, B, 1&lt;BR /&gt;9/4/2021, 1, B, 2&lt;BR /&gt;9/5/2021, 1, B, 2&lt;BR /&gt;9/6/2021, 1, B, 2&lt;BR /&gt;9/7/2021, 2, B, 3&lt;BR /&gt;9/7/2021, 2, B, 5&lt;BR /&gt;9/7/2021, 2, C, 5&lt;BR /&gt;9/9/2021, 2, B, 3&lt;BR /&gt;9/10/2021, 2, A, 3&lt;BR /&gt;9/14/2021, 3, A, 2&lt;BR /&gt;9/10/2021, 2, B, 3&lt;BR /&gt;9/11/2021, 3, B, 2&lt;BR /&gt;9/12/2021, 3, B, 2&lt;BR /&gt;9/13/2021, 3, B, 2&lt;BR /&gt;9/13/2021, 3, B, 4&lt;BR /&gt;9/14/2021, 3, B, 2&lt;BR /&gt;9/27/2021, 5, A, 2&lt;BR /&gt;9/28/2021, 5, A, 5&lt;BR /&gt;9/15/2021, 3, B, 2&lt;BR /&gt;9/15/2021, 3, B, 3&lt;BR /&gt;9/16/2021, 3, B, 2&lt;BR /&gt;];&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-the-bar-chart-variable-factors-changed-by-filter/m-p/1866783#M71565</guid>
      <dc:creator>nezuko_kamado</dc:creator>
      <dc:date>2024-11-15T23:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the bar chart  variable factors  changed by filter selection ( GetFieldSelections())?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-the-bar-chart-variable-factors-changed-by-filter/m-p/1866789#M71568</link>
      <description>&lt;P&gt;user double quote and = to evaluate your expression within set analysis like&lt;/P&gt;
&lt;P&gt;sum({$&amp;lt;ID={&lt;STRONG&gt;"&lt;/STRONG&gt;$(&lt;STRONG&gt;=&lt;/STRONG&gt;GetFieldSelections(ID))&lt;STRONG&gt;"&lt;/STRONG&gt;}&amp;gt;} Unit)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;also try with concat()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Prashant Sangle&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 06:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-the-bar-chart-variable-factors-changed-by-filter/m-p/1866789#M71568</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2021-12-05T06:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the bar chart  variable factors  changed by filter selection ( GetFieldSelections())?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-the-bar-chart-variable-factors-changed-by-filter/m-p/1866839#M71580</link>
      <description>&lt;P&gt;Great it works! And could you help me for the second question please?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;So, how can I make two selections of IDs compose two bars side by side? something like,&amp;nbsp;&amp;nbsp;GetFieldSelections(ID)[1] goes to the first graph, and&amp;nbsp;GetFieldSelections(ID)[2] goes to the second graph.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;So that I can comepare like&amp;nbsp; A&amp;amp;B.&amp;nbsp; &amp;nbsp;A&amp;amp;C,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or B&amp;amp;C&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;side by side from graphs.&amp;nbsp;&lt;/SPAN&gt;Is this possible?&lt;/P&gt;
&lt;P&gt;Thank you so much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 17:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-the-bar-chart-variable-factors-changed-by-filter/m-p/1866839#M71580</guid>
      <dc:creator>nezuko_kamado</dc:creator>
      <dc:date>2021-12-05T17:59:05Z</dc:date>
    </item>
  </channel>
</rss>

