<?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: E() function doesn't work as expected. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/E-function-doesn-t-work-as-expected/m-p/1364541#M829129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil. It doesn't work either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jun 2017 09:29:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-27T09:29:58Z</dc:date>
    <item>
      <title>E() function doesn't work as expected.</title>
      <link>https://community.qlik.com/t5/QlikView/E-function-doesn-t-work-as-expected/m-p/1364537#M829125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, hope somebody can help. First of all, let me excuse myself for the title of the question, but I wasn't able to find out anything enough describable.&lt;/P&gt;&lt;P&gt;I got stuck at certain point I don't know which direction to take. Let me explain.&lt;/P&gt;&lt;P&gt;I got a table loaded with multiple records of several fields, mainly &lt;EM&gt;OrderNo, Worker, Room&lt;/EM&gt;. So I have &lt;EM&gt;Room1&lt;/EM&gt; and &lt;EM&gt;Room2&lt;/EM&gt;, and an order can be made with items from one room or from both, and it can be made by one worker or by two.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168160_Captura.JPG" style="height: 244px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is&amp;nbsp; a straigth table like in the picture. I've been trying&amp;nbsp; with the E Function like this&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14985494340741423" jivemacro_uid="_14985494340741423"&gt;
&lt;P&gt;Count( DISTINCT {$&amp;lt; OrderNo = E({$&amp;lt;Room={1}&amp;gt;})&amp;gt;}&amp;nbsp; OrderNo)&lt;/P&gt;



&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get the Orders of the &lt;EM&gt;Room2&lt;/EM&gt; that doesn't have &lt;EM&gt;Room1&lt;/EM&gt; but I don't get what I want. How can I get all the orders of a certain worker that just have &lt;EM&gt;Room2&lt;/EM&gt; for that worker, No matters if the same order have another worker in &lt;EM&gt;Room1&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Having 4 records like these, the result should be:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/168179_Captura2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Any direction to follow would be much appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance for your time&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/E-function-doesn-t-work-as-expected/m-p/1364537#M829125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: E() function doesn't work as expected.</title>
      <link>https://community.qlik.com/t5/QlikView/E-function-doesn-t-work-as-expected/m-p/1364538#M829126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you could create a combined key of order and worker in your script and use that field instead of OrderNo alone in your set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 08:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/E-function-doesn-t-work-as-expected/m-p/1364538#M829126</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-06-27T08:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: E() function doesn't work as expected.</title>
      <link>https://community.qlik.com/t5/QlikView/E-function-doesn-t-work-as-expected/m-p/1364539#M829127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why you want that complex either we can use this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Room -= {1}&amp;gt;} DISTINCT OrderNo)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 08:58:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/E-function-doesn-t-work-as-expected/m-p/1364539#M829127</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-27T08:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: E() function doesn't work as expected.</title>
      <link>https://community.qlik.com/t5/QlikView/E-function-doesn-t-work-as-expected/m-p/1364540#M829128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean something like this?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14985541283584115" jivemacro_uid="_14985541283584115" modifiedtitle="true"&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;note&amp;amp;'-'&amp;amp;UserId AS CustomKey,&lt;/P&gt;
&lt;P&gt;//&lt;/P&gt;
&lt;P&gt;RESIDENT TABLE;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then use it this way to get the orders made in the &lt;EM&gt;Room2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count( DISTINCT {$&amp;lt;CustomKey=P({$&amp;lt;Room={"2"}&amp;gt;})&amp;gt;} CustomKey)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I've tried it but it doesn´t work because If I have the following records&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura3.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168187_Captura3.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;It will return 2 as result (2000 and 2001) and I just want the 2001 order. Because is doesn't have Room1 for the same order and same worker, Is any way to evaluate at order &lt;EM&gt;level&lt;/EM&gt; and say: &lt;EM&gt;Count this order if it doesn`t have Room1 for this worker (same worker)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks for you time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 09:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/E-function-doesn-t-work-as-expected/m-p/1364540#M829128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-27T09:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: E() function doesn't work as expected.</title>
      <link>https://community.qlik.com/t5/QlikView/E-function-doesn-t-work-as-expected/m-p/1364541#M829129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil. It doesn't work either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 09:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/E-function-doesn-t-work-as-expected/m-p/1364541#M829129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-27T09:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: E() function doesn't work as expected.</title>
      <link>https://community.qlik.com/t5/QlikView/E-function-doesn-t-work-as-expected/m-p/1364542#M829130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I was talking about just replacing OrderNo with your new field in your original expression, something like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; font-size: 10pt;"&gt;Count( DISTINCT {$&amp;lt; &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt;"&gt;CustomKey&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; font-size: 10pt;"&gt;= E({$&amp;lt;Room={1}&amp;gt;})&amp;gt;}&amp;nbsp; OrderNo)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 10:09:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/E-function-doesn-t-work-as-expected/m-p/1364542#M829130</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-06-27T10:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: E() function doesn't work as expected.</title>
      <link>https://community.qlik.com/t5/QlikView/E-function-doesn-t-work-as-expected/m-p/1364543#M829131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right!! Thank you very much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 10:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/E-function-doesn-t-work-as-expected/m-p/1364543#M829131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-27T10:58:11Z</dc:date>
    </item>
  </channel>
</rss>

