<?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 Enable/Disable Expression from Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141745#M21346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour Philippe,&lt;/P&gt;&lt;P&gt;This is a work around implemented for one of our projects, to change dynamically a column content, depending on dynamic criterias :&lt;/P&gt;&lt;P&gt;This expression will show different calculations, depending on IdColumn dimension value :&lt;/P&gt;&lt;P style="font-weight: bold"&gt;=pick(match(only(IdColumn),'A-1','N','O','M','A','A/A-1','A/O'),&lt;BR /&gt;num(sum(Turnover*_Y1*Change),'# ##0,0;-# ##0,0'),&lt;BR /&gt;num(sum(Turnover*_FM*Change),'# ##0,0;-# ##0,0'),&lt;BR /&gt;num(sum(Turnover*_F0*Change),'# ##0,0;-# ##0,0'),&lt;BR /&gt;num(sum(Turnover*_M0*Change),'# ##0,0;-# ##0,0'),&lt;BR /&gt;num(sum(Turnover*_Y0*Change),'# ##0,0;-# ##0,0'),&lt;BR /&gt;num((sum(Turnover*_Y0)/sum(CA*_Y1))-1,'0,0%'),&lt;BR /&gt;num((sum(Turnover*_Y0)/sum(CA*_F0))-1,'0,0%'))&lt;/P&gt;&lt;P&gt;In this example, IdColumn is last dimension of the pivot table, and loaded from an InLine table as an unliked table (called a "logical" island in QV documentation) :&lt;/P&gt;&lt;P style="font-weight: bold"&gt;LOAD * INLINE [&lt;BR /&gt; IdColumn, ColumnName&lt;BR /&gt; A-1, Réalisation A-1&lt;BR /&gt; N, Objectif mois&lt;BR /&gt; O, Objectif cumulé&lt;BR /&gt; M, Réalisé mois&lt;BR /&gt; A, Réalisé cumulé&lt;BR /&gt; A/A-1, Ecart réalisé / A-1&lt;BR /&gt; A/O, Ecart réalisé / Objectif&lt;BR /&gt;];&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You may use same kind of work around, replacing IdColumn dimension values, i.e by a calculated dimension using ValueList or ValueLoop.&lt;/P&gt;&lt;P&gt;note however that you can change dynamically your table content, but you will always have the same number of columns displayed.&lt;/P&gt;&lt;P&gt;Bon courage&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2009 23:53:27 GMT</pubDate>
    <dc:creator>yblake</dc:creator>
    <dc:date>2009-05-13T23:53:27Z</dc:date>
    <item>
      <title>Enable/Disable Expression from Script</title>
      <link>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141739#M21340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to enable or disable expressions from the script? I know this can be done from creating a macro to run OnOpen..however, I don't want to prolong the opening of the document. I also want to avoid using IF statements in my expressions. Any ideas? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 23:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141739#M21340</guid>
      <dc:creator />
      <dc:date>2009-04-17T23:52:26Z</dc:date>
    </item>
    <item>
      <title>Enable/Disable Expression from Script</title>
      <link>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141740#M21341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, Enable/Disable property cannot be defined with an expression, and therefore the only way to change it is via macro. I think I saw something about improving it in version 9, but I'm not totally sure...&lt;/P&gt;&lt;P&gt;The only work around that I could suggest is to keep duplicate copies of your charts/objects and play with the "Show condition" for those objects - those conditions can be calculated via expressions, and therefore you can control them from the script.&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Apr 2009 01:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141740#M21341</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-04-18T01:49:48Z</dc:date>
    </item>
    <item>
      <title>Enable/Disable Expression from Script</title>
      <link>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141741#M21342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response. I'll take your suggestion into consideration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Apr 2009 01:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141741#M21342</guid>
      <dc:creator />
      <dc:date>2009-04-18T01:58:25Z</dc:date>
    </item>
    <item>
      <title>Enable/Disable Expression from Script</title>
      <link>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141742#M21343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can, however, drop a FIELD from a script... and you can do this based on the particular user using Section Access. Check out &lt;B&gt;30.8Dynamic Data Reduction&lt;/B&gt; in the manual&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Apr 2009 02:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141742#M21343</guid>
      <dc:creator />
      <dc:date>2009-04-18T02:03:08Z</dc:date>
    </item>
    <item>
      <title>Enable/Disable Expression from Script</title>
      <link>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141743#M21344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anthony,&lt;/P&gt;&lt;P&gt;good catch, I haven't thought about it!&lt;/P&gt;&lt;P&gt;What happens to the expressions, thought? If we DROP or even OMIT the field [Cost], based on Section Access, and we have an expression for Margins:&lt;/P&gt;&lt;P&gt;=(sum(Sales) - sum(Cost))/sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is going to happen to the expression? Is it going to be automatically removed or would just show nulls ?&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Apr 2009 02:18:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141743#M21344</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-04-18T02:18:53Z</dc:date>
    </item>
    <item>
      <title>Enable/Disable Expression from Script</title>
      <link>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141744#M21345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it will just show nulls and will not disable the expression from the graph ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 21:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141744#M21345</guid>
      <dc:creator />
      <dc:date>2009-05-07T21:33:43Z</dc:date>
    </item>
    <item>
      <title>Enable/Disable Expression from Script</title>
      <link>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141745#M21346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour Philippe,&lt;/P&gt;&lt;P&gt;This is a work around implemented for one of our projects, to change dynamically a column content, depending on dynamic criterias :&lt;/P&gt;&lt;P&gt;This expression will show different calculations, depending on IdColumn dimension value :&lt;/P&gt;&lt;P style="font-weight: bold"&gt;=pick(match(only(IdColumn),'A-1','N','O','M','A','A/A-1','A/O'),&lt;BR /&gt;num(sum(Turnover*_Y1*Change),'# ##0,0;-# ##0,0'),&lt;BR /&gt;num(sum(Turnover*_FM*Change),'# ##0,0;-# ##0,0'),&lt;BR /&gt;num(sum(Turnover*_F0*Change),'# ##0,0;-# ##0,0'),&lt;BR /&gt;num(sum(Turnover*_M0*Change),'# ##0,0;-# ##0,0'),&lt;BR /&gt;num(sum(Turnover*_Y0*Change),'# ##0,0;-# ##0,0'),&lt;BR /&gt;num((sum(Turnover*_Y0)/sum(CA*_Y1))-1,'0,0%'),&lt;BR /&gt;num((sum(Turnover*_Y0)/sum(CA*_F0))-1,'0,0%'))&lt;/P&gt;&lt;P&gt;In this example, IdColumn is last dimension of the pivot table, and loaded from an InLine table as an unliked table (called a "logical" island in QV documentation) :&lt;/P&gt;&lt;P style="font-weight: bold"&gt;LOAD * INLINE [&lt;BR /&gt; IdColumn, ColumnName&lt;BR /&gt; A-1, Réalisation A-1&lt;BR /&gt; N, Objectif mois&lt;BR /&gt; O, Objectif cumulé&lt;BR /&gt; M, Réalisé mois&lt;BR /&gt; A, Réalisé cumulé&lt;BR /&gt; A/A-1, Ecart réalisé / A-1&lt;BR /&gt; A/O, Ecart réalisé / Objectif&lt;BR /&gt;];&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You may use same kind of work around, replacing IdColumn dimension values, i.e by a calculated dimension using ValueList or ValueLoop.&lt;/P&gt;&lt;P&gt;note however that you can change dynamically your table content, but you will always have the same number of columns displayed.&lt;/P&gt;&lt;P&gt;Bon courage&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 23:53:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141745#M21346</guid>
      <dc:creator>yblake</dc:creator>
      <dc:date>2009-05-13T23:53:27Z</dc:date>
    </item>
    <item>
      <title>Enable/Disable Expression from Script</title>
      <link>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141746#M21347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yves,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merci beaucoup.&lt;/P&gt;&lt;P&gt;That works perfectly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 01:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141746#M21347</guid>
      <dc:creator />
      <dc:date>2009-05-14T01:07:05Z</dc:date>
    </item>
    <item>
      <title>Enable/Disable Expression from Script</title>
      <link>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141747#M21348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;very nice work around.&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;Greetz, Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 13:08:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enable-Disable-Expression-from-Script/m-p/141747#M21348</guid>
      <dc:creator />
      <dc:date>2010-11-03T13:08:27Z</dc:date>
    </item>
  </channel>
</rss>

