<?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: help with an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/help-with-an-expression/m-p/579715#M215481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never used the part:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{1&amp;lt;Article = p(Article)&amp;gt;} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this it seems my date selection is not taken in to account (didn't mentioned this in the example, but there is also a date involved).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgrds Anita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Mar 2014 08:54:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-03-31T08:54:31Z</dc:date>
    <item>
      <title>help with an expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-an-expression/m-p/579713#M215479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I'm overlooking something ... maybe someone can help me get on the track again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table which looks something like this:&lt;/P&gt;&lt;P&gt;Servicefact.ServiceOrderNo&lt;/P&gt;&lt;P&gt;Servicefact.RowNo&lt;/P&gt;&lt;P&gt;Servicefact.ArticleCode&lt;/P&gt;&lt;P&gt;Servicefact.Article&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A ServiceOrderNo only has 1 Article (so no different articles)&lt;/P&gt;&lt;P&gt;A ServiceOrderNo zero or more ArticleCode (Parts that are used)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ServiceOrderNo&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;RowNo&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ArticleCode&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Article&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;SO1234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;CR3032&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;PP01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;SO1234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;IP20102/R&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;PP01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;SO1235&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;CR3032&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;PP02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;SP1236&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;AT212/R2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;PP01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;SP1237&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;CR3023&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;PP02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;SP1237&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;AT2112/R2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;PP02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;SP1238&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;CR3023&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;PP03&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have overviews for:&lt;/P&gt;&lt;P&gt;Article - ArticleCode ... number of ServiceOrderNo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I'm looking for the opposite, but then a little different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArticleCode - total number of ServiceOrderNo for Article (on which the ArticleCode is used)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; also the ServiceOrderNo which have the same Article but not the ArticleCode!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ArticleCode&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;NumberOfSO&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;P&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;&lt;EM&gt;explanation&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;CR3032&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;is used in articles PP01/PP02/PP03 -- sum of all article (also where ArticleCode is not used)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;IP20102/R&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;is used in article PP01 -- sum PP01 serviceorderno&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;AT212/R2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;is used in article PP01/PP02 -- sum of PP01 / PP02 serviceorderno&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone got a good suggestion how to fix this one??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx in advance!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 08:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-an-expression/m-p/579713#M215479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-31T08:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: help with an expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-an-expression/m-p/579714#M215480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Untested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isnull(ArticleCode) = 0 and isnull(ArticleCode) = 0, count(ServiceOrderNo), 0) for counting where article where ArticleCode is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isnull(ArticleCode) = 0, count({1&amp;lt;Article = p(Article)&amp;gt;}ServiceOrderNo)) for the second one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 08:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-an-expression/m-p/579714#M215480</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2014-03-31T08:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: help with an expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-an-expression/m-p/579715#M215481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never used the part:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{1&amp;lt;Article = p(Article)&amp;gt;} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this it seems my date selection is not taken in to account (didn't mentioned this in the example, but there is also a date involved).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgrds Anita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 08:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-an-expression/m-p/579715#M215481</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-31T08:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: help with an expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-an-expression/m-p/579716#M215482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about 1 to $ to use other filters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{$&amp;lt;Article = p(Article)&amp;gt;} &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 09:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-an-expression/m-p/579716#M215482</guid>
      <dc:creator />
      <dc:date>2014-03-31T09:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: help with an expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-an-expression/m-p/579717#M215483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not just use an open declaration for the ArticleCode and then the possible for article.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it would be Count({&amp;lt;ArticleCode = , Article = P(Article)&amp;gt;}ServiceOrderNo).&lt;/P&gt;&lt;P&gt;Also are you trying to use this for a table or just as a one off expression, since the dimensions of the table may mean you need different expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 09:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-an-expression/m-p/579717#M215483</guid>
      <dc:creator />
      <dc:date>2014-03-31T09:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: help with an expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-an-expression/m-p/579718#M215484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a date selection (e.g. year/month) ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the only dimension used is ArticleCode ... but the expression needs the Article count ... &lt;/P&gt;&lt;P&gt;I already tried to use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;Count({&amp;lt;ArticleCode = , Article = P(Article)&amp;gt;}ServiceOrderNo)&lt;/EM&gt; but this didn't do the trick.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgrds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 09:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-an-expression/m-p/579718#M215484</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-31T09:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: help with an expression</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-an-expression/m-p/579719#M215485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to pull the value into a table then it's much easier to just calculate it in the back end. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just use the group function in your script to get a number, mine looked like this:&lt;/P&gt;&lt;P&gt;NumberOfSO:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Article,&lt;/P&gt;&lt;P&gt;Count(ServiceOrderNo) as NumberOfSO&lt;/P&gt;&lt;P&gt;Resident Data&lt;/P&gt;&lt;P&gt;Group By Article;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously you would need to use whatever resident you are holding the data in. To get the value you are after then just use sum(NumberOfSO). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 10:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-an-expression/m-p/579719#M215485</guid>
      <dc:creator />
      <dc:date>2014-03-31T10:11:12Z</dc:date>
    </item>
  </channel>
</rss>

