<?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 Dynamic number of x-axis columns on bar chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamic-number-of-x-axis-columns-on-bar-chart/m-p/2026451#M84620</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;There is a possibility to change the maximum number of columns in a bar chart (see image below).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jonathan_Alm_0-1673942547293.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98158i5D506234F7142849/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jonathan_Alm_0-1673942547293.png" alt="Jonathan_Alm_0-1673942547293.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have a bar chart which is a drill down-chart (hierarchy-dimension). First dimension is month.&amp;nbsp; If i select maximum number = 12, then the bar chart will stretch and use all the space.&lt;BR /&gt;However if I click on month, the chart will drill down to date. Then only 12 dates are shown.&lt;BR /&gt;If I select automatic in number of axis value, the month view will not be strectched and only uses 2/3 of the diagram making it look quite funny.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Is there a way to make maximum values more dynamic with an expression - so in&amp;nbsp; month view, it will use 12 and in date view it will be 31?&lt;/P&gt;
&lt;P&gt;Kind regards, Jonathan&lt;/P&gt;
&lt;P&gt;Kind regards&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2023 08:05:49 GMT</pubDate>
    <dc:creator>Jonathan_Alm</dc:creator>
    <dc:date>2023-01-17T08:05:49Z</dc:date>
    <item>
      <title>Dynamic number of x-axis columns on bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-number-of-x-axis-columns-on-bar-chart/m-p/2026451#M84620</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;There is a possibility to change the maximum number of columns in a bar chart (see image below).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jonathan_Alm_0-1673942547293.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98158i5D506234F7142849/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jonathan_Alm_0-1673942547293.png" alt="Jonathan_Alm_0-1673942547293.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have a bar chart which is a drill down-chart (hierarchy-dimension). First dimension is month.&amp;nbsp; If i select maximum number = 12, then the bar chart will stretch and use all the space.&lt;BR /&gt;However if I click on month, the chart will drill down to date. Then only 12 dates are shown.&lt;BR /&gt;If I select automatic in number of axis value, the month view will not be strectched and only uses 2/3 of the diagram making it look quite funny.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Is there a way to make maximum values more dynamic with an expression - so in&amp;nbsp; month view, it will use 12 and in date view it will be 31?&lt;/P&gt;
&lt;P&gt;Kind regards, Jonathan&lt;/P&gt;
&lt;P&gt;Kind regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 08:05:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-number-of-x-axis-columns-on-bar-chart/m-p/2026451#M84620</guid>
      <dc:creator>Jonathan_Alm</dc:creator>
      <dc:date>2023-01-17T08:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic number of x-axis columns on bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-number-of-x-axis-columns-on-bar-chart/m-p/2027025#M84652</link>
      <description>&lt;P&gt;Use GetObjectDimension() as&amp;nbsp; below to check which dimension is being used&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=if(getobjectdimension(0)='Month',12&lt;/P&gt;
&lt;P&gt;,i&lt;SPAN&gt;f(getobjectdimension(0)='Date',31,&lt;STRONG&gt;ELSEValue) )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 09:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-number-of-x-axis-columns-on-bar-chart/m-p/2027025#M84652</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2023-01-18T09:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic number of x-axis columns on bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-number-of-x-axis-columns-on-bar-chart/m-p/2027175#M84661</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It looks like it should work. If i put the expression in a table it computes perfectly, but when I put it in the line chart it only falls back on 3 (only three dimensions in line chart.&lt;/P&gt;
&lt;P&gt;See image below. Am I doing something wrong here that is obvious to you?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jonathan_Alm_1-1674046736837.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98298i0498078337435A0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jonathan_Alm_1-1674046736837.png" alt="Jonathan_Alm_1-1674046736837.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards, Jonathan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 12:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-number-of-x-axis-columns-on-bar-chart/m-p/2027175#M84661</guid>
      <dc:creator>Jonathan_Alm</dc:creator>
      <dc:date>2023-01-18T12:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic number of x-axis columns on bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-number-of-x-axis-columns-on-bar-chart/m-p/2027215#M84665</link>
      <description>&lt;P&gt;Regarding to the help this function couldn't be applied within all chart-parts and I assume the maximum number belonged to the not supported ones:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/FieldFunctions/getobjectdimension.htm" target="_blank"&gt;GetObjectDimension - chart function | Qlik Cloud Help&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Without supporting the function within the various meta-data areas of a chart and the earlier in QlikView working second parameter (Object-ID to call the function from the outside of the object) and also not supporting features like getcurrentfield() it seems not be possible - at least not with the standard dimension-groups.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 14:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-number-of-x-axis-columns-on-bar-chart/m-p/2027215#M84665</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-01-18T14:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic number of x-axis columns on bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-number-of-x-axis-columns-on-bar-chart/m-p/2027560#M84676</link>
      <description>&lt;P&gt;since it's a drilldown, GetSelectedCount() will work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=if(GetSelectedCount(Month),31,12)&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 05:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-number-of-x-axis-columns-on-bar-chart/m-p/2027560#M84676</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2023-01-19T05:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic number of x-axis columns on bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-number-of-x-axis-columns-on-bar-chart/m-p/2027571#M84678</link>
      <description>&lt;P&gt;Thanks, works like a charm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards, Jonathan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 06:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-number-of-x-axis-columns-on-bar-chart/m-p/2027571#M84678</guid>
      <dc:creator>Jonathan_Alm</dc:creator>
      <dc:date>2023-01-19T06:53:37Z</dc:date>
    </item>
  </channel>
</rss>

