<?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: Create field based on count in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-field-based-on-count-in-script/m-p/1678776#M728629</link>
    <description>&lt;P&gt;Did Ruben's post get you what you needed for your use case?&amp;nbsp; If so, please do not forget to return to your thread and on his post, use the Accept as Solution button to give him credit for the help and let other Members know that worked for you.&amp;nbsp; If you did something else, consider posting that and mark it to close the thread, and if you are still working on things, please leave an update with what you still need.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2020 22:02:02 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2020-02-24T22:02:02Z</dc:date>
    <item>
      <title>Create field based on count in script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-field-based-on-count-in-script/m-p/1671272#M728627</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have created a script to see how many of each order no. there are - this works (example 1&amp;nbsp;below) .&amp;nbsp; I now want to add a formula in script so that if the [Order count] equals 1 &amp;amp; the [Load. point (Name1)] equals a 'specific location' then to identify as whether to include or exclude but I can't seem to work out how to do it.&amp;nbsp; Can anyone help please?&amp;nbsp; Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;Example 1&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Ext. order number] as [Order no.],&lt;/P&gt;&lt;P&gt;[Load. point (Name1)],&lt;/P&gt;&lt;P&gt;From location;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Order no.],&lt;/P&gt;&lt;P&gt;Count(Order no.]) as [Order count]&lt;/P&gt;&lt;P&gt;Resident table1 group by [Order no.]&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-field-based-on-count-in-script/m-p/1671272#M728627</guid>
      <dc:creator>tinapullen1</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create field based on count in script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-field-based-on-count-in-script/m-p/1671517#M728628</link>
      <description>&lt;P&gt;Hi, maybe you are looking to something like this?:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table1:
Load
[Ext. order number] as [Order no.],
[Load. point (Name1)]
From location;

Table2:
LOAD
  [Order no.],
  [Order count],
  If([Order count]=1 and checkLoadPoint='Specific Location', 1, 0) as flagOrder // This to flag and exclude/include using set analysis
where [Order count]&amp;lt;&amp;gt;1 or checkLoadPoint&amp;lt;&amp;gt;'Specific Location'; // this to exclude, maybe you don't want it here, it's just to show possibilities
Load
[Order no.],
MaxString([Load. point (Name1)]) as checkLoadPoint
Count(Order no.]) as [Order count]
Resident table1 group by [Order no.]&lt;/LI-CODE&gt;&lt;P&gt;The 'where' clause in the preceding load is optional, just to show how can be used.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2020 18:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-field-based-on-count-in-script/m-p/1671517#M728628</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-02-01T18:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create field based on count in script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-field-based-on-count-in-script/m-p/1678776#M728629</link>
      <description>&lt;P&gt;Did Ruben's post get you what you needed for your use case?&amp;nbsp; If so, please do not forget to return to your thread and on his post, use the Accept as Solution button to give him credit for the help and let other Members know that worked for you.&amp;nbsp; If you did something else, consider posting that and mark it to close the thread, and if you are still working on things, please leave an update with what you still need.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 22:02:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-field-based-on-count-in-script/m-p/1678776#M728629</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-02-24T22:02:02Z</dc:date>
    </item>
  </channel>
</rss>

