<?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 User selected x-axis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926700#M12784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;afternoon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created an Inline table as:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Date_Num,Date_Group&lt;/P&gt;&lt;P&gt;1,'Date'&lt;/P&gt;&lt;P&gt;2,'Week'&lt;/P&gt;&lt;P&gt;3,'Month'&lt;/P&gt;&lt;P&gt;4,'Quarter'&lt;/P&gt;&lt;P&gt;5,'Year'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and would like the user to select an option from the drop down and have it change the grouping of a chart.&lt;/P&gt;&lt;P&gt;I created the Master Item:&lt;/P&gt;&lt;P&gt;IF(Date_Num=1,Active_Date,IF(Date_Num=2,Active_Week.... etc.&lt;/P&gt;&lt;P&gt;but when nothing is selected, it shows all groupings on the x-axis (once the user selects a single option it works as expected)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried adding a MIN(Date_Num) in - but I don't think the x-axis likes that&lt;/P&gt;&lt;P&gt;IF(MIN(Date_Num)=1,Active_Date,IF(MIN(Date_Num)=2,Active_Week....etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone got something like this working before?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Nov 2015 12:30:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-03T12:30:33Z</dc:date>
    <item>
      <title>User selected x-axis</title>
      <link>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926700#M12784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;afternoon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created an Inline table as:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Date_Num,Date_Group&lt;/P&gt;&lt;P&gt;1,'Date'&lt;/P&gt;&lt;P&gt;2,'Week'&lt;/P&gt;&lt;P&gt;3,'Month'&lt;/P&gt;&lt;P&gt;4,'Quarter'&lt;/P&gt;&lt;P&gt;5,'Year'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and would like the user to select an option from the drop down and have it change the grouping of a chart.&lt;/P&gt;&lt;P&gt;I created the Master Item:&lt;/P&gt;&lt;P&gt;IF(Date_Num=1,Active_Date,IF(Date_Num=2,Active_Week.... etc.&lt;/P&gt;&lt;P&gt;but when nothing is selected, it shows all groupings on the x-axis (once the user selects a single option it works as expected)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried adding a MIN(Date_Num) in - but I don't think the x-axis likes that&lt;/P&gt;&lt;P&gt;IF(MIN(Date_Num)=1,Active_Date,IF(MIN(Date_Num)=2,Active_Week....etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone got something like this working before?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 12:30:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926700#M12784</guid>
      <dc:creator />
      <dc:date>2015-11-03T12:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: User selected x-axis</title>
      <link>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926701#M12785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something similar using an extension have a look at this &lt;A href="https://community.qlik.com/docs/DOC-9077"&gt;Makes Sense to go round in circles&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and see if it can work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the context of my chart using a variable and this extension (qsVariable).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 13:05:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926701#M12785</guid>
      <dc:creator>ogster1974</dc:creator>
      <dc:date>2015-11-03T13:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: User selected x-axis</title>
      <link>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926702#M12786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for that - hadn't thought to use a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was hoping to do it without extensions - it seems like it should be possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried assigning MIN(Date_Num) to a variable and using PICK(MATCH($(vDateNum),1,2,3.....etc. but same problem when using the calculation on an x-axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;guessing aggregation isn't allowed on an x-axis!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 13:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926702#M12786</guid>
      <dc:creator />
      <dc:date>2015-11-03T13:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: User selected x-axis</title>
      <link>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926703#M12787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange I've been able to use this method to alter the chart from fiscal to reporting quarter in my dashboard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 13:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926703#M12787</guid>
      <dc:creator>ogster1974</dc:creator>
      <dc:date>2015-11-03T13:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: User selected x-axis</title>
      <link>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926704#M12788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works when I use the extension, but wondered if it was possible without an extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like I said - as soon as I use MIN(), the x-axis stops rendering.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 13:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926704#M12788</guid>
      <dc:creator />
      <dc:date>2015-11-03T13:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: User selected x-axis</title>
      <link>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926705#M12789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Selecting a filtered value doesn't SET the variable that's why it doesn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 13:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926705#M12789</guid>
      <dc:creator>ogster1974</dc:creator>
      <dc:date>2015-11-03T13:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: User selected x-axis</title>
      <link>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926706#M12790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have set the variable definition to MIN(Date_Num) which sets the variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doesn't work when i reference the variable in the x-axis though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 13:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926706#M12790</guid>
      <dc:creator />
      <dc:date>2015-11-03T13:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: User selected x-axis</title>
      <link>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926707#M12791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes but i'm assuming you set that in the load script so you will be setting it once on load not each time the min(date_num) changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is your issue.&amp;nbsp; The Variable extension allows the user to set the variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 13:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926707#M12791</guid>
      <dc:creator>ogster1974</dc:creator>
      <dc:date>2015-11-03T13:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: User selected x-axis</title>
      <link>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926708#M12792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have attached a simple example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can see that selecting a "Date_Group" from the filter, correctly sets the text box in the top left, but the chart using MIN will not render&lt;/P&gt;&lt;P&gt;the other chart, not using MIN will render, but if multiple values are selected in the drop down box it doesn't chart the x-axis correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 14:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/User-selected-x-axis/m-p/926708#M12792</guid>
      <dc:creator />
      <dc:date>2015-11-03T14:02:30Z</dc:date>
    </item>
  </channel>
</rss>

