<?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 Creating login and reducing(filtering) data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-login-and-reducing-filtering-data/m-p/167528#M39058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will be really grateful if there is anyone who could (and is willing to) help me.&lt;BR /&gt;&lt;BR /&gt;Items and Sales are the two tables which i have loaded in to qlikview. Now i wanted to create login(userid and password available in items table) and reduce the data according to account(i.c_account_code as account) and mfaccode(i.c_mfac_code as mfaccode).&lt;BR /&gt;&lt;BR /&gt;First let know how i can create login with username and password to be entered by the user. Secondly how to reduce(filter) the data according to account and mfaccode.&lt;BR /&gt;&lt;BR /&gt;Below is the structure of table which i have loaded into the application. Hope some one can help me out.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;items:&lt;BR /&gt;SQL select i.c_account_code as account,i.c_item_code as itemcode,c_pack as pack,&lt;BR /&gt;i.c_mfac_code as mfaccode,rtrim(i.c_name)+' '+rtrim(i.c_pack) as itemname,&lt;BR /&gt;rtrim(i.c_account_code)+rtrim(i.c_mfac_code) as userid,rtrim(m.c_password) as password,&lt;BR /&gt;i.n_mrp as MRP,i.n_newflag as recentitem,i.c_Scheme as schemes,m.c_name as mfacname,&lt;BR /&gt;c.c_name as contentname,c.c_note as contentname1&lt;BR /&gt;from item_mst i inner join mfac_mst m on i.c_mfac_code=m.c_mfac_code&lt;BR /&gt;left outer join content_mst c on i.c_content_code=c.c_content_code;&lt;BR /&gt;&lt;BR /&gt;sales:&lt;BR /&gt;SQL select stk_sales.c_ac_code as account,Year(d_date) as Year,Month(d_date) as Month,stk_sales.c_item_code as itemcode,&lt;BR /&gt;n_purqty as PurQty,n_pur_Sch_qty as PurSch,n_purvalue as PurValue,&lt;BR /&gt;n_salqty as SalQty,n_sal_sch_qty as SalSch,n_salvalue as SalValue,&lt;BR /&gt;n_crqty as RtnQty,n_cr_sch_qty as RtnSch,n_crvalue as RtnValue,&lt;BR /&gt;n_clqty as StkQty,n_clvalue as StkValue from stk_sales,item_mst, mfac_mst&lt;BR /&gt;where stk_sales.c_item_code=item_mst.c_item_code and item_mst.c_mfac_code=mfac_mst.c_mfac_code;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Nov 2009 14:15:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-27T14:15:46Z</dc:date>
    <item>
      <title>Creating login and reducing(filtering) data</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-login-and-reducing-filtering-data/m-p/167528#M39058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will be really grateful if there is anyone who could (and is willing to) help me.&lt;BR /&gt;&lt;BR /&gt;Items and Sales are the two tables which i have loaded in to qlikview. Now i wanted to create login(userid and password available in items table) and reduce the data according to account(i.c_account_code as account) and mfaccode(i.c_mfac_code as mfaccode).&lt;BR /&gt;&lt;BR /&gt;First let know how i can create login with username and password to be entered by the user. Secondly how to reduce(filter) the data according to account and mfaccode.&lt;BR /&gt;&lt;BR /&gt;Below is the structure of table which i have loaded into the application. Hope some one can help me out.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;items:&lt;BR /&gt;SQL select i.c_account_code as account,i.c_item_code as itemcode,c_pack as pack,&lt;BR /&gt;i.c_mfac_code as mfaccode,rtrim(i.c_name)+' '+rtrim(i.c_pack) as itemname,&lt;BR /&gt;rtrim(i.c_account_code)+rtrim(i.c_mfac_code) as userid,rtrim(m.c_password) as password,&lt;BR /&gt;i.n_mrp as MRP,i.n_newflag as recentitem,i.c_Scheme as schemes,m.c_name as mfacname,&lt;BR /&gt;c.c_name as contentname,c.c_note as contentname1&lt;BR /&gt;from item_mst i inner join mfac_mst m on i.c_mfac_code=m.c_mfac_code&lt;BR /&gt;left outer join content_mst c on i.c_content_code=c.c_content_code;&lt;BR /&gt;&lt;BR /&gt;sales:&lt;BR /&gt;SQL select stk_sales.c_ac_code as account,Year(d_date) as Year,Month(d_date) as Month,stk_sales.c_item_code as itemcode,&lt;BR /&gt;n_purqty as PurQty,n_pur_Sch_qty as PurSch,n_purvalue as PurValue,&lt;BR /&gt;n_salqty as SalQty,n_sal_sch_qty as SalSch,n_salvalue as SalValue,&lt;BR /&gt;n_crqty as RtnQty,n_cr_sch_qty as RtnSch,n_crvalue as RtnValue,&lt;BR /&gt;n_clqty as StkQty,n_clvalue as StkValue from stk_sales,item_mst, mfac_mst&lt;BR /&gt;where stk_sales.c_item_code=item_mst.c_item_code and item_mst.c_mfac_code=mfac_mst.c_mfac_code;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 14:15:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-login-and-reducing-filtering-data/m-p/167528#M39058</guid>
      <dc:creator />
      <dc:date>2009-11-27T14:15:46Z</dc:date>
    </item>
    <item>
      <title>Creating login and reducing(filtering) data</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-login-and-reducing-filtering-data/m-p/167529#M39059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the handbook for restriction of access, basically you should have a script like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SECTION Access;&lt;BR /&gt;&lt;BR /&gt; LOAD * INLINE [&lt;BR /&gt; ACCESS, USERID, PASSWORD&lt;BR /&gt; ADMIN, ADMIN, PW0&lt;BR /&gt; USER, Mike, PW1&lt;BR /&gt; USER, Joe, PW2];&lt;BR /&gt;SECTION Application;&lt;BR /&gt;&lt;BR /&gt; STAR IS *;&lt;BR /&gt; LOAD * INLINE [USERID, account&lt;BR /&gt; ADMIN, *&lt;BR /&gt; Mike, 0001&lt;BR /&gt; Mike, 0002&lt;BR /&gt; Joe, 0001&lt;BR /&gt; Joe, 0002&lt;BR /&gt; Joe, 0003];&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This would give ADMIN right to see all accounts, Mike can see account 1+2, Joe 1-3. (Might make sense to probably group the accounts).&lt;BR /&gt;You also need to check for Document Properties -&amp;gt; Opening -&amp;gt; Initial Data Reduction ...&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 17:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-login-and-reducing-filtering-data/m-p/167529#M39059</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-11-27T17:26:37Z</dc:date>
    </item>
    <item>
      <title>Creating login and reducing(filtering) data</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-login-and-reducing-filtering-data/m-p/167530#M39060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;Now i have created the login. But the problem now is if I load the data using the Inline data wizard. It loads only the distinct values. Problem is for few userid the password is same. As it loads only the distinct values it has loaded the password for the first record and rest of the record are blank. Due to this rest of users(records) when they enter the userid it doesn't ask for the password field. I mean it is allowing those user to enter without password being entered.&lt;BR /&gt;&lt;BR /&gt;Give some solution for this problem.&lt;BR /&gt;&lt;BR /&gt;Once i get the solution i need to reduce the data according the account and mfaccode. Help for this also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Nov 2009 13:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-login-and-reducing-filtering-data/m-p/167530#M39060</guid>
      <dc:creator />
      <dc:date>2009-11-28T13:29:25Z</dc:date>
    </item>
    <item>
      <title>Creating login and reducing(filtering) data</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-login-and-reducing-filtering-data/m-p/167531#M39061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter Rieper &amp;amp; Vittaly!&lt;/P&gt;&lt;P&gt;Can you please write the load script according to the table structure which is attached with my question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 19:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-login-and-reducing-filtering-data/m-p/167531#M39061</guid>
      <dc:creator />
      <dc:date>2009-11-30T19:06:46Z</dc:date>
    </item>
  </channel>
</rss>

