<?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 Trellis container limit on charts in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Trellis-container-limit-on-charts/m-p/2534075#M108322</link>
    <description>&lt;P data-start="132" data-end="562"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I’m currently working on a Qlik Sense dashboard and I have a Trellis container that shows several bar charts. Each chart uses the &lt;CODE data-start="1021" data-end="1033"&gt;Section&lt;/CODE&gt;&amp;nbsp;dimension, and the goal is to display only the top 6 &lt;CODE data-start="1021" data-end="1033"&gt;Section&lt;/CODE&gt;&amp;nbsp;values, based on the count of &lt;CODE data-start="384" data-end="400"&gt;StudentID&lt;/CODE&gt;. Essentially, I want to limit the charts to only show the most relevant &lt;CODE data-start="1021" data-end="1033"&gt;Section&lt;/CODE&gt;&amp;nbsp;values, but they should only appear if there’s actual data for those values.&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-start="132" data-end="562"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;The issue I'm facing is that Qlik doesn't seem to work properly if there is a &lt;CODE data-start="1289" data-end="1295"&gt;If()&lt;/CODE&gt; in the dimension of the Trellis container. It does show all the charts for different values of the dimension but the data is the same in all the charts, because the selection is not working with the &lt;CODE data-start="1289" data-end="1295"&gt;If()&lt;/CODE&gt;&amp;nbsp;in the dimension field. When I only have &lt;CODE data-start="1021" data-end="1033"&gt;Section&lt;/CODE&gt;&amp;nbsp;in the dimension, it does make the correct selection for the charts.&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-start="564" data-end="938"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;The other issue I’m facing is that the bar charts are still being displayed even when there’s no data for the value of&amp;nbsp;&lt;CODE data-start="1021" data-end="1033"&gt;Section&lt;/CODE&gt;. I want the chart to completely disappear if there’s no data for a particular &lt;CODE data-start="1021" data-end="1033"&gt;Section&lt;/CODE&gt;&amp;nbsp;value. I’ve tried applying the &lt;CODE data-start="807" data-end="815"&gt;Rank()&lt;/CODE&gt; function to rank the &lt;CODE data-start="1021" data-end="1033"&gt;Section&lt;/CODE&gt;&amp;nbsp;values by the count of &lt;CODE data-start="384" data-end="400"&gt;StudentID&lt;/CODE&gt;, but I’m still seeing charts that have no data.&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-start="1626" data-end="2054"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;What I’m really hoping to figure out is how to make the &lt;STRONG data-start="1706" data-end="1727"&gt;individual charts&lt;/STRONG&gt; hide when there’s &lt;STRONG data-start="1746" data-end="1757"&gt;no data&lt;/STRONG&gt; for the selected &lt;CODE data-start="1775" data-end="1787"&gt;Section&lt;/CODE&gt;&amp;nbsp;dimension. I also want to ensure that only the &lt;STRONG data-start="1835" data-end="1851"&gt;top 6 values&lt;/STRONG&gt; are shown based on their rank, but only if there’s data for those values.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-start="1626" data-end="2054"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Any advice or insights are appreciated&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Oct 2025 12:29:27 GMT</pubDate>
    <dc:creator>Christinedv</dc:creator>
    <dc:date>2025-10-22T12:29:27Z</dc:date>
    <item>
      <title>Trellis container limit on charts</title>
      <link>https://community.qlik.com/t5/App-Development/Trellis-container-limit-on-charts/m-p/2534075#M108322</link>
      <description>&lt;P data-start="132" data-end="562"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I’m currently working on a Qlik Sense dashboard and I have a Trellis container that shows several bar charts. Each chart uses the &lt;CODE data-start="1021" data-end="1033"&gt;Section&lt;/CODE&gt;&amp;nbsp;dimension, and the goal is to display only the top 6 &lt;CODE data-start="1021" data-end="1033"&gt;Section&lt;/CODE&gt;&amp;nbsp;values, based on the count of &lt;CODE data-start="384" data-end="400"&gt;StudentID&lt;/CODE&gt;. Essentially, I want to limit the charts to only show the most relevant &lt;CODE data-start="1021" data-end="1033"&gt;Section&lt;/CODE&gt;&amp;nbsp;values, but they should only appear if there’s actual data for those values.&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-start="132" data-end="562"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;The issue I'm facing is that Qlik doesn't seem to work properly if there is a &lt;CODE data-start="1289" data-end="1295"&gt;If()&lt;/CODE&gt; in the dimension of the Trellis container. It does show all the charts for different values of the dimension but the data is the same in all the charts, because the selection is not working with the &lt;CODE data-start="1289" data-end="1295"&gt;If()&lt;/CODE&gt;&amp;nbsp;in the dimension field. When I only have &lt;CODE data-start="1021" data-end="1033"&gt;Section&lt;/CODE&gt;&amp;nbsp;in the dimension, it does make the correct selection for the charts.&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-start="564" data-end="938"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;The other issue I’m facing is that the bar charts are still being displayed even when there’s no data for the value of&amp;nbsp;&lt;CODE data-start="1021" data-end="1033"&gt;Section&lt;/CODE&gt;. I want the chart to completely disappear if there’s no data for a particular &lt;CODE data-start="1021" data-end="1033"&gt;Section&lt;/CODE&gt;&amp;nbsp;value. I’ve tried applying the &lt;CODE data-start="807" data-end="815"&gt;Rank()&lt;/CODE&gt; function to rank the &lt;CODE data-start="1021" data-end="1033"&gt;Section&lt;/CODE&gt;&amp;nbsp;values by the count of &lt;CODE data-start="384" data-end="400"&gt;StudentID&lt;/CODE&gt;, but I’m still seeing charts that have no data.&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-start="1626" data-end="2054"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;What I’m really hoping to figure out is how to make the &lt;STRONG data-start="1706" data-end="1727"&gt;individual charts&lt;/STRONG&gt; hide when there’s &lt;STRONG data-start="1746" data-end="1757"&gt;no data&lt;/STRONG&gt; for the selected &lt;CODE data-start="1775" data-end="1787"&gt;Section&lt;/CODE&gt;&amp;nbsp;dimension. I also want to ensure that only the &lt;STRONG data-start="1835" data-end="1851"&gt;top 6 values&lt;/STRONG&gt; are shown based on their rank, but only if there’s data for those values.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-start="1626" data-end="2054"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Any advice or insights are appreciated&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 12:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trellis-container-limit-on-charts/m-p/2534075#M108322</guid>
      <dc:creator>Christinedv</dc:creator>
      <dc:date>2025-10-22T12:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trellis container limit on charts</title>
      <link>https://community.qlik.com/t5/App-Development/Trellis-container-limit-on-charts/m-p/2534098#M108328</link>
      <description>&lt;P&gt;Hi Christine&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I’m not wrong you have to do the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;In the master item where you are having the main calculation set the expression as &lt;FONT color="#808080"&gt;&lt;EM&gt;Count($(vDimSetFull) StudentID)&lt;/EM&gt;&lt;/FONT&gt;. Note that if you have already a set analysis, you will need other variable.&lt;/LI&gt;
&lt;LI&gt;On trellis container, activate the Advance Mode in Appearance -&amp;gt; Trellis options&lt;/LI&gt;
&lt;LI&gt;In the same place, set the Maximum number of charts as &lt;FONT color="#808080"&gt;&lt;EM&gt;Count(Aggr(If(Count(StudentID)&amp;gt;0,Section),Section))+rand()&lt;/EM&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;In the Dimension set the Calculated Dimension to On and set the Base Dimension as Section.&lt;/LI&gt;
&lt;LI&gt;Finally, the value of the dimension needs to be &lt;FONT color="#808080"&gt;&lt;EM&gt;Aggr(If(Count(StudentID)&amp;gt;0 and rank(Count(StudentID))&amp;lt;=6, Section), Section)&lt;/EM&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is a bit complicated but this should erase the charts with no data and display the top 6 ones. Let me know if it works since maybe I did a typo mistake in some of the formulas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regard&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 13:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trellis-container-limit-on-charts/m-p/2534098#M108328</guid>
      <dc:creator>Daniel_Castella</dc:creator>
      <dc:date>2025-10-22T13:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trellis container limit on charts</title>
      <link>https://community.qlik.com/t5/App-Development/Trellis-container-limit-on-charts/m-p/2534101#M108329</link>
      <description>&lt;P&gt;Hello Daniel,&lt;/P&gt;
&lt;P&gt;This worked! thank you&lt;/P&gt;
&lt;P&gt;I was still getting the max number of charts error from &lt;EM&gt;3.&lt;/EM&gt; but i deleted it and still got the result i wanted. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 14:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trellis-container-limit-on-charts/m-p/2534101#M108329</guid>
      <dc:creator>Christinedv</dc:creator>
      <dc:date>2025-10-22T14:07:24Z</dc:date>
    </item>
  </channel>
</rss>

