<?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 How to select multiple conditions within a single field via macros in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-select-multiple-conditions-within-a-single-field-via/m-p/150680#M28656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I find how:&lt;/P&gt;&lt;P&gt;sub SelectAandB&lt;BR /&gt;set f = ActiveDocument.Fields("Field1")&lt;BR /&gt;set fv = f.GetNoValues&lt;BR /&gt;fv.Add&lt;BR /&gt;fv.Add&lt;BR /&gt;fv(0).Text = "A"&lt;BR /&gt;fv(0).IsNumeric = false&lt;BR /&gt;fv(1).Text = "B"&lt;BR /&gt;fv(1).IsNumeric = false&lt;/P&gt;&lt;P&gt;f.SelectValues fv&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2009 15:34:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-30T15:34:33Z</dc:date>
    <item>
      <title>How to select multiple conditions within a single field via macros</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-multiple-conditions-within-a-single-field-via/m-p/150679#M28655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now I have macro:&lt;/P&gt;&lt;P&gt;sub SelectA&lt;BR /&gt; ActiveDocument.ClearAll&lt;BR /&gt; call ActiveDocument.Fields("Field1").Select("A")&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;it works.&lt;/P&gt;&lt;P&gt;I need&lt;/P&gt;&lt;P&gt;SelectAandB&lt;/P&gt;&lt;P&gt;sub SelectA&lt;BR /&gt; ActiveDocument.ClearAll&lt;BR /&gt; call ActiveDocument.Fields("Field1").Select("A,B")&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;It does not work.&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;P.S. I found the same posts in archive but it not helps me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 14:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-multiple-conditions-within-a-single-field-via/m-p/150679#M28655</guid>
      <dc:creator />
      <dc:date>2009-07-30T14:56:25Z</dc:date>
    </item>
    <item>
      <title>How to select multiple conditions within a single field via macros</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-multiple-conditions-within-a-single-field-via/m-p/150680#M28656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I find how:&lt;/P&gt;&lt;P&gt;sub SelectAandB&lt;BR /&gt;set f = ActiveDocument.Fields("Field1")&lt;BR /&gt;set fv = f.GetNoValues&lt;BR /&gt;fv.Add&lt;BR /&gt;fv.Add&lt;BR /&gt;fv(0).Text = "A"&lt;BR /&gt;fv(0).IsNumeric = false&lt;BR /&gt;fv(1).Text = "B"&lt;BR /&gt;fv(1).IsNumeric = false&lt;/P&gt;&lt;P&gt;f.SelectValues fv&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 15:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-multiple-conditions-within-a-single-field-via/m-p/150680#M28656</guid>
      <dc:creator />
      <dc:date>2009-07-30T15:34:33Z</dc:date>
    </item>
    <item>
      <title>How to select multiple conditions within a single field via macros</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-multiple-conditions-within-a-single-field-via/m-p/150681#M28657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Artur,&lt;/P&gt;&lt;P&gt;here are some more examples:&lt;/P&gt;&lt;P&gt;sub SelectDates&lt;BR /&gt;&lt;BR /&gt;startdate = ActiveDocument.Variables("vStartDate").GetContent.String&lt;BR /&gt;enddate = ActiveDocument.Variables("vEndDate").GetContent.String&lt;BR /&gt;selectstring = "&amp;gt;=" &amp;amp; startdate &amp;amp; " &amp;lt;=" &amp;amp; enddate&lt;BR /&gt;ActiveDocument.Fields("SelektDatum").Select selectstring&lt;BR /&gt;'ActiveDocument.Fields("DateSelection").Select "&amp;gt;=34374 &amp;lt;=39499"&lt;BR /&gt;msgbox selectstring&lt;BR /&gt;&lt;BR /&gt;end sub&lt;BR /&gt;&lt;BR /&gt;Sub SelectYears&lt;BR /&gt;set y=ActiveDocument.GetField("Year")&lt;BR /&gt;y.Select "&amp;gt;=" &amp;amp; 2007 &amp;amp; "&amp;lt;=" &amp;amp; 2008&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'set y=ActiveDocument.GetField("Year")&lt;BR /&gt;'y.Select 2009&lt;BR /&gt;&lt;BR /&gt;'or:&lt;BR /&gt;'y.Select ActiveDocument.Evaluate("year(today())")&lt;BR /&gt;&lt;BR /&gt;'or:&lt;BR /&gt;'y.Select "&amp;gt;=" &amp;amp; 2007 &amp;amp; "&amp;lt;=" &amp;amp; 2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 15:45:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-multiple-conditions-within-a-single-field-via/m-p/150681#M28657</guid>
      <dc:creator />
      <dc:date>2009-07-30T15:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to select multiple conditions within a single field via macros</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-multiple-conditions-within-a-single-field-via/m-p/150682#M28658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's very useful for me! That's I was looking for!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 18:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-multiple-conditions-within-a-single-field-via/m-p/150682#M28658</guid>
      <dc:creator>gilbertomedeiro</dc:creator>
      <dc:date>2016-06-09T18:30:20Z</dc:date>
    </item>
  </channel>
</rss>

