<?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 selections please in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-selections-please/m-p/504953#M1146244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe better this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='('&amp;amp;Concat(aggr(only({&amp;lt;[Hours worked]={'&amp;gt;=1000001'}&amp;gt;}[Billing Code]), [Billing Code]), '|')&amp;amp;')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you don't have to create a second dimension, although I think you might see the performance reduced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Aug 2013 09:13:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-20T09:13:24Z</dc:date>
    <item>
      <title>Help with selections please</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-selections-please/m-p/504951#M1146242</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;I'm trying to select a range of 'Billing codes' where the 'Hours worked' x 20 is over 1000001 (£). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do this on a Select in Field action when a user enters a sheet. They are clicking on a text box that says that they have X projects over 100k in value, when they select it, it'll open the sleet with those projects preselected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My attempt is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;If&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;((&lt;/SPAN&gt;[Hours Worked]&lt;SPAN class="s1"&gt;*&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; 20&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;)&amp;gt;=100001,&lt;/SPAN&gt;[Billing code]&lt;SPAN class="s1"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which doesn't do anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I hardcode it to test it, the selection would look like this:&amp;nbsp; (10002203 | 22933445 | 33355444) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 08:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-selections-please/m-p/504951#M1146242</guid>
      <dc:creator />
      <dc:date>2013-08-20T08:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with selections please</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-selections-please/m-p/504952#M1146243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create in the script a second Billing Code dimension, but only with those billings higher than the amount you want. Then, in the text box that the user will click on, paste this action selection for the billing code field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='('&amp;amp;concat(DISTINCT [High Billing code],'|')&amp;amp;')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this way it will select all the billing codes that appear on that dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*[High Billing code] is the second dimension I´ve told you about*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 09:08:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-selections-please/m-p/504952#M1146243</guid>
      <dc:creator />
      <dc:date>2013-08-20T09:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with selections please</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-selections-please/m-p/504953#M1146244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe better this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='('&amp;amp;Concat(aggr(only({&amp;lt;[Hours worked]={'&amp;gt;=1000001'}&amp;gt;}[Billing Code]), [Billing Code]), '|')&amp;amp;')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you don't have to create a second dimension, although I think you might see the performance reduced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 09:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-selections-please/m-p/504953#M1146244</guid>
      <dc:creator />
      <dc:date>2013-08-20T09:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with selections please</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-selections-please/m-p/504954#M1146245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Losu, I see what you're doing by building the string and concating the billing codes with the |&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's returning blank at the moment, I've created a text object to show what's happening and I get ()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='('&amp;amp;&lt;SPAN class="s1"&gt;Concat&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;aggr&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;only&lt;/SPAN&gt;({&amp;lt;&lt;SPAN class="s2"&gt;[Hours worked]&lt;/SPAN&gt;*20={'&amp;gt;=1'}&amp;gt;}&lt;SPAN class="s2"&gt;[Billing Code]&lt;/SPAN&gt;), &lt;SPAN class="s2"&gt;[Billing Code]&lt;/SPAN&gt;), '|')&amp;amp;')' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which should return all billing codes with £1 or more against them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you know how I'd break this bit down further:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;aggr&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;only&lt;/SPAN&gt;({&amp;lt;&lt;SPAN class="s2"&gt;[Hours worked]&lt;/SPAN&gt;*20={'&amp;gt;=50000'}&amp;gt;}&lt;SPAN class="s2"&gt;[Billing Code]&lt;/SPAN&gt;), &lt;SPAN class="s2"&gt;[Billing Code]&lt;/SPAN&gt;) &lt;/P&gt;&lt;P&gt;so I can try and diagnose why it's not returning any values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this code working elsewhere:&lt;/P&gt;&lt;P&gt;=&lt;SPAN class="s1"&gt;sum&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;aggr&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;DISTINCT&lt;/SPAN&gt; &lt;BR /&gt; &lt;SPAN class="s1"&gt;If&lt;/SPAN&gt;(&lt;BR /&gt; &lt;SPAN class="s1"&gt;Sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN class="s2"&gt;[Year]&lt;/SPAN&gt;={&lt;SPAN class="s3"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vCurrentYear)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;}, &lt;SPAN class="s2"&gt;[Project Status]&lt;/SPAN&gt;={'In Progress', 'Complete or Cancelled', 'On hold or stalled'}&amp;gt;} &lt;SPAN class="s2"&gt;[Hours Worked]&lt;/SPAN&gt;*&lt;SPAN class="s1"&gt;if&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;IsNull&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;Rate&lt;/SPAN&gt;), 20, &lt;SPAN class="s2"&gt;Rate&lt;/SPAN&gt;))&amp;gt;=1000&lt;BR /&gt; &lt;SPAN class="s1"&gt;AND&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="s1"&gt;Sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN class="s2"&gt;[Year]&lt;/SPAN&gt;={&lt;SPAN class="s3"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vCurrentYear)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;},&amp;nbsp; &lt;SPAN class="s2"&gt;[Project Status]&lt;/SPAN&gt;={'In Progress', 'Complete or Cancelled', 'On hold or stalled'}&amp;gt;} &lt;SPAN class="s2"&gt;[Hours Worked]&lt;/SPAN&gt;*&lt;SPAN class="s1"&gt;if&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;IsNull&lt;/SPAN&gt;(&lt;SPAN class="s2"&gt;Rate&lt;/SPAN&gt;), 20, &lt;SPAN class="s2"&gt;Rate&lt;/SPAN&gt;))&amp;lt;=2000,&lt;BR /&gt; 1, 0)&lt;BR /&gt; ,&lt;SPAN class="s2"&gt;[Billing code]&lt;/SPAN&gt;)) &lt;BR /&gt; &amp;amp; ' projects £1k-£20k' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which does a successful count, so I know that it can see and count the billing codes where the spend is &amp;gt;= £1 and that they exist as I get over 300 returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 09:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-selections-please/m-p/504954#M1146245</guid>
      <dc:creator />
      <dc:date>2013-08-20T09:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with selections please</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-selections-please/m-p/504955#M1146246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the problem is here:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&amp;lt;&lt;SPAN class="s2"&gt;[Hours worked]&lt;/SPAN&gt;*20={'&amp;gt;=1'}&amp;gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;You can not multiply field selections this way on a set analysis. It should be:&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;SPAN class="s2"&gt;[Hours worked]&lt;/SPAN&gt;={"&amp;lt;=$(=80*2)"}&amp;gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 10:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-selections-please/m-p/504955#M1146246</guid>
      <dc:creator />
      <dc:date>2013-08-20T10:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with selections please</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-selections-please/m-p/504956#M1146247</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;That's confused me a bit, where's the 80*2 come from? Where would I do the &amp;gt;= check?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to see [Hours worked] x 20 &amp;gt;= 1000 for example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 10:42:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-selections-please/m-p/504956#M1146247</guid>
      <dc:creator />
      <dc:date>2013-08-20T10:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help with selections please</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-selections-please/m-p/504957#M1146248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, the 80*2 was just an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Hours worked] x 20 &amp;gt;= 1000&amp;nbsp;&amp;nbsp; is the same as&amp;nbsp; [Hours worked] &amp;gt;= 1000/20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the set analysis would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;SPAN class="s2"&gt;[Hours worked]&lt;/SPAN&gt;={"&amp;gt;=$(=1000/20)"}&amp;gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 10:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-selections-please/m-p/504957#M1146248</guid>
      <dc:creator />
      <dc:date>2013-08-20T10:44:56Z</dc:date>
    </item>
  </channel>
</rss>

