<?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: Generating Yes/No values in fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generating-Yes-No-values-in-fields/m-p/557359#M208086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can do it using RAND() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( RAND() &amp;lt; 0.3, 'Yes','No') as Answer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Recno() as AnswerID&lt;/P&gt;&lt;P&gt;Autogenerate 1000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: This creates a 30% chance for a Yes answer (using 0.3). Just compare to different values between 0 and 1 to create other distributions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Sep 2013 17:49:48 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-09-01T17:49:48Z</dc:date>
    <item>
      <title>Generating Yes/No values in fields</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-Yes-No-values-in-fields/m-p/557358#M208085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm creating data for a demo and trying to generate a Yes or No entry during a load into a bunch of fields in a LOAD. Is there any way do this using rand() or another function? Ideally, I'd like to not have an even distribution of Y/N if that's possible. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Sep 2013 17:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-Yes-No-values-in-fields/m-p/557358#M208085</guid>
      <dc:creator />
      <dc:date>2013-09-01T17:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Yes/No values in fields</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-Yes-No-values-in-fields/m-p/557359#M208086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can do it using RAND() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( RAND() &amp;lt; 0.3, 'Yes','No') as Answer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Recno() as AnswerID&lt;/P&gt;&lt;P&gt;Autogenerate 1000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: This creates a 30% chance for a Yes answer (using 0.3). Just compare to different values between 0 and 1 to create other distributions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Sep 2013 17:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-Yes-No-values-in-fields/m-p/557359#M208086</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-01T17:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Yes/No values in fields</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-Yes-No-values-in-fields/m-p/557360#M208087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks 'swuehl' - that was exactly what I was looking for!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Sep 2013 18:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-Yes-No-values-in-fields/m-p/557360#M208087</guid>
      <dc:creator />
      <dc:date>2013-09-01T18:25:26Z</dc:date>
    </item>
  </channel>
</rss>

