<?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 Can a user hide an expression in a chart? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-a-user-hide-an-expression-in-a-chart/m-p/151322#M29197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay,&lt;BR /&gt;It is possible using macro. You'll need a button for each expression which you want to hide/show. Macros will be like these:&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sub Test&lt;BR /&gt; set chart = ActiveDocument.GetSheetObject("CH01")&lt;BR /&gt; cp = chart.GetProperties&lt;BR /&gt; set expr = cp.Expressions.Item(0).Item(0).Data.ExpressionData&lt;BR /&gt; if expr.Enable = 0 then&lt;BR /&gt; expr.Enable = true&lt;BR /&gt; else&lt;BR /&gt; expr.Enable = false&lt;BR /&gt; end if&lt;BR /&gt; chart.SetProperties cp&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2009 03:34:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-08-07T03:34:14Z</dc:date>
    <item>
      <title>Can a user hide an expression in a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-a-user-hide-an-expression-in-a-chart/m-p/151321#M29196</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;I have a chart which has 4 expressions:&lt;/P&gt;&lt;P&gt;Total (Displayed as a Bar)&lt;/P&gt;&lt;P&gt;% X of total (Displayed as a Line)&lt;/P&gt;&lt;P&gt;% Y of total (Displayed as a Line)&lt;/P&gt;&lt;P&gt;total X of total (i.e. if Total = 200 and '% X of total' = 50% then 'total X of total' would = 100) (Displayed as a Line)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to be able to do is allow the end user to select which expressions are visible on the chart. Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 23:23:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-a-user-hide-an-expression-in-a-chart/m-p/151321#M29196</guid>
      <dc:creator>jedgson</dc:creator>
      <dc:date>2009-08-06T23:23:35Z</dc:date>
    </item>
    <item>
      <title>Can a user hide an expression in a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-a-user-hide-an-expression-in-a-chart/m-p/151322#M29197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay,&lt;BR /&gt;It is possible using macro. You'll need a button for each expression which you want to hide/show. Macros will be like these:&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sub Test&lt;BR /&gt; set chart = ActiveDocument.GetSheetObject("CH01")&lt;BR /&gt; cp = chart.GetProperties&lt;BR /&gt; set expr = cp.Expressions.Item(0).Item(0).Data.ExpressionData&lt;BR /&gt; if expr.Enable = 0 then&lt;BR /&gt; expr.Enable = true&lt;BR /&gt; else&lt;BR /&gt; expr.Enable = false&lt;BR /&gt; end if&lt;BR /&gt; chart.SetProperties cp&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 03:34:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-a-user-hide-an-expression-in-a-chart/m-p/151322#M29197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-07T03:34:14Z</dc:date>
    </item>
    <item>
      <title>Can a user hide an expression in a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-a-user-hide-an-expression-in-a-chart/m-p/151323#M29198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is the approach we're using. It's probably overkill for your situation, but you may be able to mine information from it. I haven't checked if it works in 9.0, but it works in 8.5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 07:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-a-user-hide-an-expression-in-a-chart/m-p/151323#M29198</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-08-07T07:26:34Z</dc:date>
    </item>
    <item>
      <title>Can a user hide an expression in a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-a-user-hide-an-expression-in-a-chart/m-p/151324#M29199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is perfect for what I need thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am tryin to ammend the Macro to set properties for the Dimensions in the Chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to set the 'Suppress Null values' and change the sort to 'Load Order'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For suppress Null Values I have added this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;BR /&gt;chartDimensionMax = chart.GetColumnCount - 1&lt;BR /&gt;set dims = chartProperties.Dimensions&lt;BR /&gt;for i = chartDimensionMax to 0 step -1 'remove existing dimensions&lt;BR /&gt; chart.removeDimension(i)&lt;BR /&gt;next&lt;BR /&gt;for j = 0 to selectedDimensionMax 'add selected dimensions&lt;BR /&gt; chart.addDimension(selectedDimensions.Item(j).Text)&lt;BR /&gt; dims(j).NullSuppression = true&lt;BR /&gt;next&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Unfortunately this keeps failing with 'Invalid procedure call or argument'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you see where I am going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 18:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-a-user-hide-an-expression-in-a-chart/m-p/151324#M29199</guid>
      <dc:creator>jedgson</dc:creator>
      <dc:date>2009-08-07T18:07:23Z</dc:date>
    </item>
    <item>
      <title>Can a user hide an expression in a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-a-user-hide-an-expression-in-a-chart/m-p/151325#M29200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have managed to do this now. Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 20:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-a-user-hide-an-expression-in-a-chart/m-p/151325#M29200</guid>
      <dc:creator>jedgson</dc:creator>
      <dc:date>2009-08-07T20:08:02Z</dc:date>
    </item>
  </channel>
</rss>

