<?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 Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro/m-p/624197#M229710</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 need a macro which, when vDoor1 = 1, selects one random data depending on its name. I have no knowledge of VBS, and I haven't found any guides either... I could imagine it being something like this: IF(variable=1) THEN SELECT if(Rand&amp;lt;=0.5 AND Name=*text) THEN Field[Data] ELSE Field[Data2]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance,&lt;/P&gt;&lt;P&gt;Lucas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Mar 2014 13:23:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-11T13:23:17Z</dc:date>
    <item>
      <title>Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Macro/m-p/624197#M229710</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 need a macro which, when vDoor1 = 1, selects one random data depending on its name. I have no knowledge of VBS, and I haven't found any guides either... I could imagine it being something like this: IF(variable=1) THEN SELECT if(Rand&amp;lt;=0.5 AND Name=*text) THEN Field[Data] ELSE Field[Data2]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance,&lt;/P&gt;&lt;P&gt;Lucas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 13:23:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro/m-p/624197#M229710</guid>
      <dc:creator />
      <dc:date>2014-03-11T13:23:17Z</dc:date>
    </item>
  </channel>
</rss>

