<?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 align axis within combochart to same scale in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/align-axis-within-combochart-to-same-scale/m-p/1657492#M49205</link>
    <description>&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;similar to this chart in the upper right at 2:30 &lt;A href="https://youtu.be/RkVDi0b2hmk?t=150" target="_blank" rel="noopener"&gt;https://youtu.be/RkVDi0b2hmk?t=150&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I want to create a combo chart with a metric on the left and another target metric using lines and the right axis. as seen in the video, this doesn't make sense if those two axis don't align and share the same scaling.&lt;/P&gt;&lt;P&gt;so is there a smart solution to align those two ? automatic scaling works good for a single axis, but not for both&lt;/P&gt;&lt;P&gt;I came up with calculating the scale limits for both like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if(
max(aggr(Sum({&amp;lt;Version={'$(=only(RefVersion))'}&amp;gt;}Value),[Date...YearMonth]))
	&amp;gt;max(aggr(Sum(Value),[Date...YearMonth]))
,max(aggr(Sum({&amp;lt;Version={'$(=only(RefVersion))'}&amp;gt;}Value),[Date...YearMonth]))
,max(aggr(Sum(Value),[Date...YearMonth]))
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which translates to: if(left axis &amp;gt; right axis, left axis, right axis)&lt;/P&gt;&lt;P&gt;but this is a very fragil approach and is also doesn't react two changes of the x-axis.&lt;/P&gt;&lt;P&gt;any ideas ?&lt;/P&gt;&lt;P&gt;thanks;&lt;/P&gt;&lt;P&gt;alex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:27:52 GMT</pubDate>
    <dc:creator>ni_avoss</dc:creator>
    <dc:date>2024-11-16T19:27:52Z</dc:date>
    <item>
      <title>align axis within combochart to same scale</title>
      <link>https://community.qlik.com/t5/App-Development/align-axis-within-combochart-to-same-scale/m-p/1657492#M49205</link>
      <description>&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;similar to this chart in the upper right at 2:30 &lt;A href="https://youtu.be/RkVDi0b2hmk?t=150" target="_blank" rel="noopener"&gt;https://youtu.be/RkVDi0b2hmk?t=150&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I want to create a combo chart with a metric on the left and another target metric using lines and the right axis. as seen in the video, this doesn't make sense if those two axis don't align and share the same scaling.&lt;/P&gt;&lt;P&gt;so is there a smart solution to align those two ? automatic scaling works good for a single axis, but not for both&lt;/P&gt;&lt;P&gt;I came up with calculating the scale limits for both like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if(
max(aggr(Sum({&amp;lt;Version={'$(=only(RefVersion))'}&amp;gt;}Value),[Date...YearMonth]))
	&amp;gt;max(aggr(Sum(Value),[Date...YearMonth]))
,max(aggr(Sum({&amp;lt;Version={'$(=only(RefVersion))'}&amp;gt;}Value),[Date...YearMonth]))
,max(aggr(Sum(Value),[Date...YearMonth]))
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which translates to: if(left axis &amp;gt; right axis, left axis, right axis)&lt;/P&gt;&lt;P&gt;but this is a very fragil approach and is also doesn't react two changes of the x-axis.&lt;/P&gt;&lt;P&gt;any ideas ?&lt;/P&gt;&lt;P&gt;thanks;&lt;/P&gt;&lt;P&gt;alex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/align-axis-within-combochart-to-same-scale/m-p/1657492#M49205</guid>
      <dc:creator>ni_avoss</dc:creator>
      <dc:date>2024-11-16T19:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: align axis within combochart to same scale</title>
      <link>https://community.qlik.com/t5/App-Development/align-axis-within-combochart-to-same-scale/m-p/1657610#M49214</link>
      <description>&lt;P&gt;ok, found out myself.&lt;/P&gt;&lt;P&gt;possible to assign it to the primary axis when line chart is selected as second measure&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 14:41:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/align-axis-within-combochart-to-same-scale/m-p/1657610#M49214</guid>
      <dc:creator>ni_avoss</dc:creator>
      <dc:date>2019-12-13T14:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: align axis within combochart to same scale</title>
      <link>https://community.qlik.com/t5/App-Development/align-axis-within-combochart-to-same-scale/m-p/1955725#M78809</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marcel_Garcia_0-1657789277069.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84147iA272D7ECCBC43DBE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marcel_Garcia_0-1657789277069.png" alt="Marcel_Garcia_0-1657789277069.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 09:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/align-axis-within-combochart-to-same-scale/m-p/1955725#M78809</guid>
      <dc:creator>Marcel_Garcia</dc:creator>
      <dc:date>2022-07-14T09:01:44Z</dc:date>
    </item>
  </channel>
</rss>

