<?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: Dynamic Y Axis in line chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamic-Y-Axis-in-line-chart/m-p/2526339#M107187</link>
    <description>&lt;P&gt;&lt;FONT face="georgia,palatino" color="#0000FF"&gt;Could you please share a sample dataset in excel or a qvf file with some screenshots. we can look for a possible solution further.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Aug 2025 05:07:09 GMT</pubDate>
    <dc:creator>Kaushik2020</dc:creator>
    <dc:date>2025-08-06T05:07:09Z</dc:date>
    <item>
      <title>Dynamic Y Axis in line chart</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Y-Axis-in-line-chart/m-p/2525335#M107018</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i want to change the value of my y axis dynamically as different measures have different values,&lt;/P&gt;&lt;P&gt;i have created a field on backend that has only dates for each thursday as user wants to show values by thursday,&lt;/P&gt;&lt;P&gt;now i am using this expression in measure:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;DITDATE= {"&amp;gt;=$(=(addmonths(max(DITDATE),-1)))&amp;lt;=$(=(date(Max(DITDATE))))"},Table_Flag = {'JAT'}&amp;gt;}Volume_Count)&lt;/P&gt;&lt;P&gt;also i have threshold values which i added in reference line:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;DITDATE&amp;gt;}ThresholdGreen)&lt;/P&gt;&lt;P&gt;sum({&amp;lt;DITDATE&amp;gt;}ThresholdRED)&lt;/P&gt;&lt;P&gt;-&amp;gt;Now for y axis i have written:&lt;/P&gt;&lt;P&gt;if(sum({&amp;lt;DITDATE&amp;gt;}ThresholdRED)&amp;gt;sum({&amp;lt;DITDATE&amp;gt;}ThresholdGreen),sum({&amp;lt;DITDATE&amp;gt;}ThresholdRED)+10,sum({&amp;lt;DITDATE&amp;gt;}ThresholdGreen)+10)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but if the value of any thursday is greater then the threshold the line is going above the chart, also i used the measure expression in y axis to compare the threshold value with the measure but that is taking max value for the selected date where as my dimension is across 5 weeks so there are values greater then that, can someone suggest a fix for this please!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 12:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Y-Axis-in-line-chart/m-p/2525335#M107018</guid>
      <dc:creator>zyn</dc:creator>
      <dc:date>2025-07-25T12:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Y Axis in line chart</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Y-Axis-in-line-chart/m-p/2526339#M107187</link>
      <description>&lt;P&gt;&lt;FONT face="georgia,palatino" color="#0000FF"&gt;Could you please share a sample dataset in excel or a qvf file with some screenshots. we can look for a possible solution further.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 05:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Y-Axis-in-line-chart/m-p/2526339#M107187</guid>
      <dc:creator>Kaushik2020</dc:creator>
      <dc:date>2025-08-06T05:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Y Axis in line chart</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Y-Axis-in-line-chart/m-p/2526577#M107249</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/190879"&gt;@Kaushik2020&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Here is a sample data i have created for same scenario,&lt;/P&gt;&lt;P&gt;Test:&lt;BR /&gt;load *,&lt;BR /&gt;date(DIT,'DD/MM/YYYY') as DITDATE;&lt;BR /&gt;load * inline [&lt;BR /&gt;Measure,DIT,Volume&lt;BR /&gt;'&amp;gt;3days',06/01/2025,1&lt;BR /&gt;'&amp;gt;3days',06/01/2025,1&lt;BR /&gt;'&amp;gt;3days',06/01/2025,1&lt;BR /&gt;'&amp;gt;3days',06/01/2025,1&lt;BR /&gt;'&amp;gt;3days',06/02/2025,1&lt;BR /&gt;'&amp;gt;3days',06/02/2025,1&lt;BR /&gt;'&amp;gt;3days',06/02/2025,1&lt;BR /&gt;'&amp;gt;3days',06/03/2025,1&lt;BR /&gt;'&amp;gt;3days',06/03/2025,1&lt;BR /&gt;'&amp;gt;3days',06/03/2025,1&lt;BR /&gt;'&amp;gt;3days',06/03/2025,1&lt;BR /&gt;'&amp;gt;3days',06/03/2025,1&lt;BR /&gt;'&amp;gt;3days',06/03/2025,1&lt;BR /&gt;'&amp;gt;3days',06/03/2025,1&lt;BR /&gt;'&amp;gt;3days',06/04/2025,1&lt;BR /&gt;'&amp;gt;3days',06/05/2025,1&lt;BR /&gt;'&amp;gt;3days',06/05/2025,1&lt;BR /&gt;'&amp;gt;3days',06/05/2025,1&lt;BR /&gt;'&amp;gt;3days',06/05/2025,1&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;I am using this expression in a line chart:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DITDATE= {"&amp;gt;=$(=(date(Max(DITDATE)-2,'DD/MM/YYYY')))&amp;lt;=$(=(date(Max(DITDATE),'DD/MM/YYYY')))"}&amp;gt;}Volume)&lt;/P&gt;&lt;P&gt;so if you select date: 05/06/2025 you will get this result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="zyn_0-1754572904273.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/182608i56AFA976CE40EAF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="zyn_0-1754572904273.png" alt="zyn_0-1754572904273.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now in a kpi i want to show the number 7 as it is the max of that range, but I am not able to achieve it&lt;/P&gt;&lt;P&gt;let me know if any other clarification needed.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 13:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Y-Axis-in-line-chart/m-p/2526577#M107249</guid>
      <dc:creator>zyn</dc:creator>
      <dc:date>2025-08-07T13:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Y Axis in line chart</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Y-Axis-in-line-chart/m-p/2526589#M107251</link>
      <description>&lt;P&gt;Looked that you need an approach like:&lt;/P&gt;&lt;P&gt;max({ Set } TOTAL &amp;lt;MyDim&amp;gt; aggr(NODISTINCT { Set } sum({ Set } MyField), MyDim))&lt;/P&gt;&lt;P&gt;The Set may not mandatory needed at each aggregation-level and similar also the TOTAL and/or the NODISTINCT ... just applying it step by step and maybe some ones in parallel in the table will show what happens and what will be then useful in the line-chart.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 14:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Y-Axis-in-line-chart/m-p/2526589#M107251</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-08-07T14:43:53Z</dc:date>
    </item>
  </channel>
</rss>

