<?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: Fix a Value to a Sample Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fix-a-Value-to-a-Sample-Load/m-p/1960218#M1220071</link>
    <description>&lt;P&gt;You could either generate this sample in SQL itself or use the QlikView prefix First rather than Sample, maybe sorting by a random value you generate in your initial load.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2022/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/First.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2022/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/First.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2022 20:29:50 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2022-07-25T20:29:50Z</dc:date>
    <item>
      <title>Fix a Value to a Sample Load</title>
      <link>https://community.qlik.com/t5/QlikView/Fix-a-Value-to-a-Sample-Load/m-p/1959811#M1220055</link>
      <description>&lt;P&gt;Hello everyone !&lt;/P&gt;
&lt;P&gt;I have a task where I need to create a sample table which as 40 random rows in it from an existing tab and I have already this script using Sample() but sample doesn't return a fix value and I would like to know if it is possible to have it return only 40 values (for now it returns between 30 and 60 rows).&lt;/P&gt;
&lt;P&gt;[App_Name]:&lt;BR /&gt;DT_MAJ,&lt;BR /&gt;ID_APL as ID,&lt;BR /&gt;LB_APL as Name,&lt;BR /&gt;MC_MAJ;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM "LUAU_UCR".dbo."TB_Application";&lt;/P&gt;
&lt;P&gt;LET vTotalRows = NoOfRows('App_Name');&lt;BR /&gt;LET vPercent = (100 * 40 / $(vTotalRows)) / 100 ;&lt;/P&gt;
&lt;P&gt;[Sample_Table]: &lt;BR /&gt;QUALIFY *;&lt;BR /&gt;Sample $(vPercent) LOAD * Resident App_Name;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 07:55:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fix-a-Value-to-a-Sample-Load/m-p/1959811#M1220055</guid>
      <dc:creator>444sofiane</dc:creator>
      <dc:date>2022-07-25T07:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fix a Value to a Sample Load</title>
      <link>https://community.qlik.com/t5/QlikView/Fix-a-Value-to-a-Sample-Load/m-p/1960218#M1220071</link>
      <description>&lt;P&gt;You could either generate this sample in SQL itself or use the QlikView prefix First rather than Sample, maybe sorting by a random value you generate in your initial load.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2022/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/First.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2022/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/First.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 20:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fix-a-Value-to-a-Sample-Load/m-p/1960218#M1220071</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-07-25T20:29:50Z</dc:date>
    </item>
  </channel>
</rss>

