<?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 Show only current selection in x axis label in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-only-current-selection-in-x-axis-label/m-p/707064#M540375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been searching around and have found some variations on this subject but would like to know if there is a definitive answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bunch of products on the x axis (which will show all products even on a specific product selection). Depending on my product selection, I would like to be able to show that particular product name in the x axis label and then blank out the rest of the product names. There are several attempts that I have done so far, the most successful being attempt number 1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) Created new expression with the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(productname='$(vproductname)',productname,' ')&lt;/P&gt;&lt;P&gt;Where vproductname is the following: =GetFieldSelections(productname)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works but the product names are being half cut off from the bottom of the graph, is there a way to extend the distance between the x axis and the edge of the graph area so that it wont cut off the product name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) A more dynamic way would be to change the font colour depending on the current selection, so go to axes-&amp;gt;axis color-&amp;gt;font-&amp;gt;colour-&amp;lt;calculation expression and then using something like:&lt;/P&gt;&lt;P&gt;productname='$(vproductname)' but this doesnt seem to work? Any suggestions as this would be the preferred method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Aug 2014 08:15:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-04T08:15:16Z</dc:date>
    <item>
      <title>Show only current selection in x axis label</title>
      <link>https://community.qlik.com/t5/QlikView/Show-only-current-selection-in-x-axis-label/m-p/707064#M540375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been searching around and have found some variations on this subject but would like to know if there is a definitive answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bunch of products on the x axis (which will show all products even on a specific product selection). Depending on my product selection, I would like to be able to show that particular product name in the x axis label and then blank out the rest of the product names. There are several attempts that I have done so far, the most successful being attempt number 1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) Created new expression with the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(productname='$(vproductname)',productname,' ')&lt;/P&gt;&lt;P&gt;Where vproductname is the following: =GetFieldSelections(productname)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works but the product names are being half cut off from the bottom of the graph, is there a way to extend the distance between the x axis and the edge of the graph area so that it wont cut off the product name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) A more dynamic way would be to change the font colour depending on the current selection, so go to axes-&amp;gt;axis color-&amp;gt;font-&amp;gt;colour-&amp;lt;calculation expression and then using something like:&lt;/P&gt;&lt;P&gt;productname='$(vproductname)' but this doesnt seem to work? Any suggestions as this would be the preferred method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 08:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-only-current-selection-in-x-axis-label/m-p/707064#M540375</guid>
      <dc:creator />
      <dc:date>2014-08-04T08:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Show only current selection in x axis label</title>
      <link>https://community.qlik.com/t5/QlikView/Show-only-current-selection-in-x-axis-label/m-p/707065#M540376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about creating a mapping table, so I have a mapping table something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProductMap&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Product, Number&lt;/P&gt;&lt;P&gt;Oranges, 1&lt;/P&gt;&lt;P&gt;Apple, 2&lt;/P&gt;&lt;P&gt;Pears, 3&lt;/P&gt;&lt;P&gt;Bananas, 4];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProductNumberTable:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT Product&lt;/P&gt;&lt;P&gt;RESIDENT ProductTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Product,&lt;/P&gt;&lt;P&gt;ApplyMap('ProductMap',Product,"N/A") As ProductNumber_&lt;/P&gt;&lt;P&gt;RESIDENT ProductNumberTable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then could I somehow use an if statement to ensure that the if(Product=v(ProductSelection),v(ProductSelection),ProductNumber_)&lt;/P&gt;&lt;P&gt;I have tried this but it just deletes information if you put it as a dimension. And using it as an expression works but again, it cuts off the bottom of the product names. Is there a way to extend the area below the x-axis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 14:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-only-current-selection-in-x-axis-label/m-p/707065#M540376</guid>
      <dc:creator />
      <dc:date>2014-08-04T14:52:53Z</dc:date>
    </item>
  </channel>
</rss>

