<?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: select in field using macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/select-in-field-using-macro/m-p/1237598#M393444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Philipp, you can try with:&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Year Quarter").Select ActiveDocument.Evaluate("&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(Year(addmonths(vToday,-3))&amp;amp;'Q'&amp;amp;Num(Ceil(Num(Month(addmonths(vToday,-3)))/3)) )&lt;/SPAN&gt;")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to comment: This sentence can be easily done with actions, consider if you can avoid the use of macros for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2016 15:30:46 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2016-11-28T15:30:46Z</dc:date>
    <item>
      <title>select in field using macro</title>
      <link>https://community.qlik.com/t5/QlikView/select-in-field-using-macro/m-p/1237597#M393443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wonder if its possible to select a value in a field, but instead using the field's value, use an expression that calculates the desired value to be selected...so instead of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.doc.Fields("Year Quarter").Select "2016Q3"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do something like this:&lt;/P&gt;&lt;P&gt;.doc.Fields("Year Quarter").Select "=(Year(addmonths(vToday,-3))&amp;amp;'Q'&amp;amp;Num(Ceil(Num(Month(addmonths(vToday,-3)))/3)) )"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advise ?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;PS I should mention that i do not want to use a variable that might contain the desired value...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 15:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/select-in-field-using-macro/m-p/1237597#M393443</guid>
      <dc:creator />
      <dc:date>2016-11-28T15:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: select in field using macro</title>
      <link>https://community.qlik.com/t5/QlikView/select-in-field-using-macro/m-p/1237598#M393444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Philipp, you can try with:&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Year Quarter").Select ActiveDocument.Evaluate("&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(Year(addmonths(vToday,-3))&amp;amp;'Q'&amp;amp;Num(Ceil(Num(Month(addmonths(vToday,-3)))/3)) )&lt;/SPAN&gt;")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to comment: This sentence can be easily done with actions, consider if you can avoid the use of macros for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 15:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/select-in-field-using-macro/m-p/1237598#M393444</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-11-28T15:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: select in field using macro</title>
      <link>https://community.qlik.com/t5/QlikView/select-in-field-using-macro/m-p/1237599#M393445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Each valid expression like: activedocument.fields("Class").select "=count(Member)&amp;gt;200" or valid search-strings like in here: &lt;A href="https://community.qlik.com/docs/DOC-15671"&gt;Compound Search - demystified&lt;/A&gt;‌ will work. But like Ruben mentioned: try to avoid macros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 16:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/select-in-field-using-macro/m-p/1237599#M393445</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-11-28T16:10:35Z</dc:date>
    </item>
  </channel>
</rss>

