<?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 Re: How can 'inherited' be used for an alternate state in a variable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303557#M838309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried this and it worked for me&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=$(fTotalDuration('$'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=$(fTotalDuration($(=Chr(36))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 May 2017 14:55:59 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-05-08T14:55:59Z</dc:date>
    <item>
      <title>How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303554#M838306</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;In Thread &lt;A href="https://community.qlik.com/thread/238174" target="_blank"&gt;How to use a parameter in a variable to use an alternate state in set analysis&lt;/A&gt; I ask a question about using alternate states in variables. This question is answered and it is working for named alternate states:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;The following syntax ist working:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;set fTotalDuration=(sum({$1} Duration)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;In the diagrams you can use the formular like &lt;EM&gt;=$(fTotalDuration('Machine1')).&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'Machine1'&lt;/EM&gt; is the defined alternate state.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But now I face the problem that I cannot use this formula with inherited alternate states.&lt;/P&gt;&lt;P&gt;That means instead of using the named alternate state &lt;EM&gt;'Machine1'&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;I want to use the alternate state &lt;EM&gt;&amp;lt;inherited&amp;gt;&lt;/EM&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I could not find any possibility to use &lt;EM&gt;&amp;lt;inherited&amp;gt;&lt;/EM&gt; as parameter. I tried the following combinations:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;EM&gt;Variable without parameter:&amp;nbsp; =$(fTotalDuration)&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;&lt;EM&gt;Variable with empty parameter:&amp;nbsp; =$(fTotalDuration(''))&lt;/EM&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;Variable with parameter '&amp;lt;inherited&amp;gt;':&amp;nbsp; =$(fTotalDuration('&amp;lt;inherited&amp;gt;'))&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;Variable with parameter &amp;lt;inherited&amp;gt;:&amp;nbsp; =$(fTotalDuration(&amp;lt;inherited&amp;gt;'))&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;Variable with parameter '$':&amp;nbsp; =$(fTotalDuration('$'))&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;Variable with parameter $:&amp;nbsp; =$(fTotalDuration($))&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the final question remains: How can 'inherited' be used for an alternate state in a variable?&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;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303554#M838306</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303555#M838307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=$(fTotalDuration(&lt;SPAN style="color: #ff0000;"&gt;Chr(36)&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 14:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303555#M838307</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-08T14:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303556#M838308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for you answer, but this doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 14:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303556#M838308</guid>
      <dc:creator />
      <dc:date>2017-05-08T14:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303557#M838309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried this and it worked for me&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=$(fTotalDuration('$'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=$(fTotalDuration($(=Chr(36))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 14:55:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303557#M838309</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-08T14:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303558#M838310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK, the dollar sign denotes the default state, not inherited state.&lt;/P&gt;&lt;P&gt;Inherited state would be a void set identifier, i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// default set&lt;/P&gt;&lt;P&gt;Sum( &lt;STRONG&gt;{$&amp;lt;&lt;/STRONG&gt;Field = {'A'}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// inherited set&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum( &lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;Field = {'A'}&amp;gt;} Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303558#M838310</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-08T15:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303559#M838311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But seems to be working with selection in inherited state.... for what I have seen, I have never seen difference between Inherited state and default state. There may be some difference, but don't think it is $&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162502_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection in Inherited and Default state list box go hands in hand....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303559#M838311</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-08T15:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303560#M838312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like you inherited from default state...&lt;/P&gt;&lt;P&gt;Try using an alternate state in your sheet properties, then the text object will inherit from that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303560#M838312</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-08T15:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303561#M838313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both do not work, see attached file.&lt;/P&gt;&lt;P&gt;I forgot to mentioned, that sheet belongs to an alternate state 'Mac !hine 1'.&lt;/P&gt;&lt;P&gt;If you change this, then inherited won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303561#M838313</guid>
      <dc:creator />
      <dc:date>2017-05-08T15:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303562#M838314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to work with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(fTotalDuration(&amp;lt;Field&amp;gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// used Field as a dummy field to create a valid syntax, would be better to create another variable proper syntax to avoid this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303562#M838314</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-08T15:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303563#M838315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand, would you be able to modify my script to show how inherited state and default state differ? I always thought they are the same thing, but might have always been mistaken &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:13:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303563#M838315</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-08T15:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303564#M838316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I see what Stefan was trying to point out... So the inherited state is inheriting the state from the sheet properties. So inherited state here is also Machine 1.... why not use Default state in that case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303564#M838316</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-08T15:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303565#M838317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dirk,&lt;/P&gt;&lt;P&gt;I prefer to set variable&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;($1 Duration) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and Expression&lt;/P&gt;&lt;P&gt;Sum(({'State'}) Duration)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Sum(( ) Duration&lt;/P&gt;&lt;P&gt;or Sum(({$}) Duration)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303565#M838317</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-05-08T15:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303566#M838318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a hierarchy, document level -&amp;gt; sheet level -&amp;gt; chart object level where you can set the state (well, not sure about the document state, I think it's always default state). So if you set a different alternate state on sheet level, chart objects may inherit the state (or you can explicitely define the state in chart properties).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303566#M838318</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-08T15:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303567#M838319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sense now.... and clarify the difference between Inherited and Default state now....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303567#M838319</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-08T15:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303568#M838320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See also:&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikboard.com/2012/12/04/set-analysis-alternate-states-quick-tip/" title="http://qlikboard.com/2012/12/04/set-analysis-alternate-states-quick-tip/"&gt;Set Analysis &amp;amp; Alternate States – Quick Tip » The Qlik Board!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303568#M838320</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-08T15:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303569#M838321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;according to the referenced article $ indicates the default state and '' (nothing)&amp;nbsp; means inherited:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Additionally, any expression in any object can either inherit the state of the object or be controlled via set analysis. And this is the &lt;STRONG&gt;key point&lt;/STRONG&gt;: &lt;CODE&gt;sum({ $ } Sales)&lt;/CODE&gt; and&amp;nbsp; &lt;CODE&gt;sum(Sales)&lt;/CODE&gt; now have potentially different meanings.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;By hard-coding the $ in the set, we are explicitly choosing the good old-fashioned default state – all user selections. This ignores the alternate states. In fact, even if the object is assigned to an alternate state, by placing the $ in the set expression we are ignoring that alternate.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Contrast this to omitting the dollar-sign: &lt;CODE&gt;sum(Sales)&lt;/CODE&gt; In this case we are accepting whatever state the object is in. That &lt;EM&gt;could be&lt;/EM&gt; the default set &lt;CODE&gt;$&lt;/CODE&gt; … or it could be an alternate state, if indeed the object is assigned to an alternate state.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case I should omit the $-sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this before:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;OL&gt;
&lt;LI&gt;&lt;EM&gt;Variable without parameter:&amp;nbsp; =$(fTotalDuration)&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;&lt;EM&gt;Variable with empty parameter:&amp;nbsp; =$(fTotalDuration(''))&lt;/EM&gt;&lt;/EM&gt;&lt;/LI&gt;
&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But both options give me the result of 0 instead of the correct result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the main question is how do the variables handle the parameter $1 and is there a parameter for 'nothing'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;set fTotalDuration=(sum({$1} Duration)&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:40:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303569#M838321</guid>
      <dc:creator />
      <dc:date>2017-05-08T15:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303570#M838322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum( {} Duration)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does not seem to be valid syntax. So either create a resulting expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( Duration)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get the inherited state applied, or as I suggested above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {&amp;lt;DummyField&amp;gt;} Duration)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;&amp;gt;} Duration) does not seem to be correct too..)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's up to you how you define your variables and variable calls to end up with a valid syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303570#M838322</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-08T15:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303571#M838323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;according to you explanation this will work then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;set fTotalDuration= sum({$1} Duration)&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;set fTotalDuration= if(len($1)&amp;gt;0, sum({$1} Duration), sum(Duration))&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the correct syntax with this formula is then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(fTotalDuration('Machine1'),&amp;nbsp; when using alternate state Machine1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= $(fTotalDuration(''), when using the inherited state. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are absolutely right, I have to ensure the right syntax in the variables. For me this&amp;nbsp; was not an obvious solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 16:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303571#M838323</guid>
      <dc:creator />
      <dc:date>2017-05-08T16:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303572#M838324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the correct syntax with this formula is then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(fTotalDuration('Machine1'),&amp;nbsp; when using alternate state Machine1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= $(fTotalDuration(''), when using the inherited state. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 16:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303572#M838324</guid>
      <dc:creator />
      <dc:date>2017-05-08T16:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can 'inherited' be used for an alternate state in a variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303573#M838325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Derk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have a dashboard with three sheets, the user asked selection of same dimension in one sheet should not affect other two sheets.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So i created three alternate state name from document properties and applied for each of the sheets. &lt;BR /&gt;Now i have a date range text box (action-&amp;gt;select in field-&amp;gt; for a date dimension field) with logic as&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&amp;nbsp; &lt;/SPAN&gt;= '&amp;gt;=$(=date($(vStartDateNxtAD))) &amp;lt;=$(=date($(vEndDateNxtAD)))'&amp;nbsp; Note: i used two calendar objects and stored the value in variables&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This logic worked before applying the alternate state. But after applying it stopped working i.e the charts and other associated object values in that particular sheet is not changing&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The dashboard is in prod. &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I tried using the variable as per the thread link&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;All the objects of my third dashboard sheet been changed to alternate state 'AccountDetail'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and changed the text box search logic as&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px;"&gt;= '&amp;gt;=$(=date($(vStartDateNxtAD('AccountDetail')))) &amp;lt;=$(=date($(vEndDateNxtAD('AccountDetail'))))' &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px;"&gt;Still the values are not getting changed for the date dimension (Action_due_date)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px;"&gt;Thanks in advance&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 07:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-inherited-be-used-for-an-alternate-state-in-a-variable/m-p/1303573#M838325</guid>
      <dc:creator>dwhanand</dc:creator>
      <dc:date>2017-05-09T07:13:46Z</dc:date>
    </item>
  </channel>
</rss>

