<?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 X-Axis in Line Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-X-Axis-in-Line-Chart/m-p/420135#M156313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me first say this has been a challenge for me, and my developers, for years.&amp;nbsp; We almost threw in the towel but decided to ask the QlikCommuity for any ideas that could possibly lead us to a solution.&amp;nbsp; I've attached our .qvw sample document for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way I can explain it is that we're trying to dynamically limit our X-axis on a line chart based on the expression, in this case a percentage.&amp;nbsp; The challenge is our expression is "Full Accumulation", so using Dimension Limits or Static Max in the Axes tab isn't straight forward.&amp;nbsp; All of or research pointed to the use of the fractile() function but even that is giving us weird results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For you guru's out there looking for a challenge, if you could take a look at the .qvw we put together we would be greatly appreciatative.&amp;nbsp; Thanks for anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Mar 2013 19:12:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-07T19:12:07Z</dc:date>
    <item>
      <title>Dynamic X-Axis in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-X-Axis-in-Line-Chart/m-p/420135#M156313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me first say this has been a challenge for me, and my developers, for years.&amp;nbsp; We almost threw in the towel but decided to ask the QlikCommuity for any ideas that could possibly lead us to a solution.&amp;nbsp; I've attached our .qvw sample document for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way I can explain it is that we're trying to dynamically limit our X-axis on a line chart based on the expression, in this case a percentage.&amp;nbsp; The challenge is our expression is "Full Accumulation", so using Dimension Limits or Static Max in the Axes tab isn't straight forward.&amp;nbsp; All of or research pointed to the use of the fractile() function but even that is giving us weird results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For you guru's out there looking for a challenge, if you could take a look at the .qvw we put together we would be greatly appreciatative.&amp;nbsp; Thanks for anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 19:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-X-Axis-in-Line-Chart/m-p/420135#M156313</guid>
      <dc:creator />
      <dc:date>2013-03-07T19:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic X-Axis in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-X-Axis-in-Line-Chart/m-p/420136#M156314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please have a look at the attched example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is this what you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 08:00:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-X-Axis-in-Line-Chart/m-p/420136#M156314</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-03-08T08:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic X-Axis in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-X-Axis-in-Line-Chart/m-p/420137#M156315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN style="color: #1f497d;"&gt;I WAS able to create an&lt;BR /&gt;expression that will do the accumulation without having “Full Accumulation”&lt;BR /&gt;checked and then have it calc for only the current qtr:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;RangeSum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;[CY Qtr Current&lt;BR /&gt;Flag]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;={1}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;Units&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;[CY Qtr Current&lt;BR /&gt;Flag]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;={1}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;Total&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;Units&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;),0,&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;RowNo&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;())) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;If you change to a straight&lt;BR /&gt;table and sort by quarter, you will see that it works the same as your original&lt;BR /&gt;accumulated expression.&amp;nbsp; My thought was that I could then use this as the&lt;BR /&gt;first (invisible) expression along with Dimension Limits to stop showing values&lt;BR /&gt;when the expression reaches 95% for example.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I also tried some iteration of&lt;BR /&gt;using Fractile around an Aggr statement, but didn’t get anywhere.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I am not having luck closing the&lt;BR /&gt;deal and have run out of hours to spend on this.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;That’s a tough one.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 14:47:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-X-Axis-in-Line-Chart/m-p/420137#M156315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-08T14:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic X-Axis in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-X-Axis-in-Line-Chart/m-p/420138#M156316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kaushik - First thank you for your time looking into this challenge.&amp;nbsp; Great idea but unfortunetely not the solution.&amp;nbsp; If we wanted to only show 95% of the average on the X axis this would be the solution but we need 95% fractile on the X axis.&amp;nbsp; I constantly struggle with average vs fractile but this site explains it well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://firechief.com/mag/firefighting_performance_standards_mean"&gt;http://firechief.com/mag/firefighting_performance_standards_mean&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So using a 95% average for market "LEZ" you get 494, what we are trying to get is the fractile for that which I would estimate to be around 300 (looking at the other charts).&amp;nbsp; Your solution would be perfect if somehow we could replace average with fractile ... would you know how to do this?&amp;nbsp; Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 16:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-X-Axis-in-Line-Chart/m-p/420138#M156316</guid>
      <dc:creator />
      <dc:date>2013-03-08T16:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic X-Axis in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-X-Axis-in-Line-Chart/m-p/420139#M156317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw. Maybe that's closer to what you're looking for. It's based on &lt;A _jive_internal="true" href="https://community.qlik.com/message/31365#31365"&gt;this post&lt;/A&gt;. Mind, perfomance may not be all that wonderful. YMMV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 17:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-X-Axis-in-Line-Chart/m-p/420139#M156317</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-08T17:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic X-Axis in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-X-Axis-in-Line-Chart/m-p/420140#M156318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert thank you.&amp;nbsp; Interesting creating a new distinct PriceN field in the load and then using that in your aggr() expression.&amp;nbsp; Unfortunetely this isn't what I was looking for either.&amp;nbsp; Check out Market "Fkpis" in you solution, X axis goes past 1000.&amp;nbsp; I would want it to be the 95 percentile for the current quarter, which is somewhere around 210.&amp;nbsp; It works great for some combinations and doesn't for others ... depending on the nature of the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use a combination of aggr() and fractile() with set analysis below to limit on current quarter and Price under 1000 but couldn't nail it.&amp;nbsp; Again I really appreciated the feedback you provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[CY Year Current Flag]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'1'},Price ={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=1000"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 18:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-X-Axis-in-Line-Chart/m-p/420140#M156318</guid>
      <dc:creator />
      <dc:date>2013-03-08T18:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic X-Axis in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-X-Axis-in-Line-Chart/m-p/420141#M156319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert - Honestly I need some time to soak your idea in, I think it will work but I need more time to understand exactly what is going on.&amp;nbsp; One thing weird I noticed is that "Gbmwd" Market does not return a value for the expression you created below.&amp;nbsp; The nature of the data this selling price is very high but again why would it not even return a value like all the other ones.&amp;nbsp; This is something I need to look into, also the post you referred to above.&amp;nbsp; THANKS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=1 - sum(aggr(sum({&amp;lt;[CY Year Qtr]={'CY2012 Q3'}&amp;gt;} if(Price&amp;lt;=PriceN,Units))/sum({&amp;lt;[CY Year Qtr]={'CY2012 Q3'}&amp;gt;} total &amp;lt;[CY Year Qtr]&amp;gt; Units)&amp;lt;0.90,PriceN)))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 19:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-X-Axis-in-Line-Chart/m-p/420141#M156319</guid>
      <dc:creator />
      <dc:date>2013-03-08T19:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic X-Axis in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-X-Axis-in-Line-Chart/m-p/420142#M156320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It took me some time to understand what was going on but I finally got it.&amp;nbsp; Thank you so much for this solution and the link you provided.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 19:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-X-Axis-in-Line-Chart/m-p/420142#M156320</guid>
      <dc:creator />
      <dc:date>2013-03-18T19:28:44Z</dc:date>
    </item>
  </channel>
</rss>

