<?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: What is wrong with my If condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-If-condition/m-p/1891944#M1217329</link>
    <description>&lt;P&gt;There are two things which may be adjusted and/checked. First is to apply the values from MARKETTYPE (within the section access as well as in the normal data-model) in upper() and second is a check on the values which you have within NTNAME and how the users are identified within the app - this could be checked with a textbox() with osuser() as expression.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 12:39:18 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2022-02-11T12:39:18Z</dc:date>
    <item>
      <title>What is wrong with my If condition</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-If-condition/m-p/1888640#M1217177</link>
      <description>&lt;P&gt;Code -&lt;/P&gt;
&lt;P&gt;Section Access;&lt;/P&gt;
&lt;P&gt;USERS:&lt;BR /&gt;LOAD [ACCESS], &lt;BR /&gt;UPPER(TRIM(NTNAME)) as NTNAME,&lt;BR /&gt;IF(MARKETTYPE='Primary','Primary','Secondary') AS MARKETTYPE&lt;BR /&gt;REGIONS&amp;nbsp;&lt;BR /&gt;FROM QVD\ADMIN_ACCESS.qvd (qvd)&lt;BR /&gt;Where 1=1;&lt;/P&gt;
&lt;P&gt;Section Application;&lt;/P&gt;
&lt;P&gt;By default Secondary is getting selected even if we have primary as MARKETTYPE.&lt;/P&gt;
&lt;P&gt;Why is this happening ?&lt;/P&gt;
&lt;P&gt;Data in MARKETTYPE column looks like -&lt;/P&gt;
&lt;TABLE border="1" width="53.05642916516841%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="19.46959896507115%" height="23px"&gt;ACCESS&lt;/TD&gt;
&lt;TD width="18.27296248382924%" height="23px"&gt;NTNAME&lt;/TD&gt;
&lt;TD width="15.297542043984478%" height="23px"&gt;&lt;STRONG&gt;MARKETTYPE&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="19.46959896507115%" height="23px"&gt;USER&lt;/TD&gt;
&lt;TD width="18.27296248382924%" height="23px"&gt;123&lt;/TD&gt;
&lt;TD width="15.297542043984478%" height="23px"&gt;Primary&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="19.46959896507115%" height="23px"&gt;ADMIN&lt;/TD&gt;
&lt;TD width="18.27296248382924%" height="23px"&gt;456&lt;/TD&gt;
&lt;TD width="15.297542043984478%" height="23px"&gt;Secondary&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="19.46959896507115%" height="23px"&gt;USER&lt;/TD&gt;
&lt;TD width="18.27296248382924%" height="23px"&gt;789&lt;/TD&gt;
&lt;TD width="15.297542043984478%" height="23px"&gt;Secondary&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="19.46959896507115%"&gt;ADMIN&lt;/TD&gt;
&lt;TD width="18.27296248382924%"&gt;111&lt;/TD&gt;
&lt;TD width="15.297542043984478%"&gt;Primary&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If we are directly using&amp;nbsp;&lt;STRONG&gt;MARKETTYPE &lt;/STRONG&gt;column as -&lt;/P&gt;
&lt;P&gt;Section Access;&lt;/P&gt;
&lt;P&gt;USERS:&lt;BR /&gt;LOAD [ACCESS], &lt;BR /&gt;UPPER(TRIM(NTNAME)) as NTNAME,&lt;BR /&gt;MARKETTYPE&lt;BR /&gt;REGIONS&amp;nbsp;&lt;BR /&gt;FROM QVD\ADMIN_ACCESS.qvd (qvd)&lt;BR /&gt;Where 1=1;&lt;/P&gt;
&lt;P&gt;Section Application;&lt;/P&gt;
&lt;P&gt;Using above I am not able to open dashboard and it tells you don't have access to this document.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If we are using &lt;STRONG&gt;If Condition&lt;/STRONG&gt;&amp;nbsp;then Secondary is directly getting selected after opening dashboard and its same across all users.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="QlikView" id="qlikView"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Experts advise -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/152210"&gt;@robsommer&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/98956"&gt;@DW&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp; &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/332"&gt;@JonnyPoole&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 14:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-If-condition/m-p/1888640#M1217177</guid>
      <dc:creator>SRT10</dc:creator>
      <dc:date>2022-02-03T14:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with my If condition</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-If-condition/m-p/1888751#M1217187</link>
      <description>&lt;P&gt;Just comment the &lt;STRONG&gt;section access;&lt;/STRONG&gt; to load the table visible within the data-model. Are there any synthetic keys or circular loops? If yes then change it appropriate - maybe at first by using only one field for reduction and then the other to check if they work on this level as expected and later you may combine both field into a single-field because it's usually the simplest way to get rid of the synthetic keys / circular loops.&lt;/P&gt;
&lt;P&gt;If not then create a tablebox in which you put all relevant fields to see if belonging data from the formatting, data-quality and the association between them are loaded properly.&lt;/P&gt;
&lt;P&gt;- Marcus&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 15:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-If-condition/m-p/1888751#M1217187</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-02-03T15:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with my If condition</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-If-condition/m-p/1891927#M1217328</link>
      <description>&lt;P&gt;Its working fine if we look at this data/logic outside of section access. It doesn't works when we place it with section access. what can be the issue here. Is it the data set which is causing this issue. Association also looks good&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 11:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-If-condition/m-p/1891927#M1217328</guid>
      <dc:creator>SRT10</dc:creator>
      <dc:date>2022-02-11T11:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with my If condition</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-If-condition/m-p/1891944#M1217329</link>
      <description>&lt;P&gt;There are two things which may be adjusted and/checked. First is to apply the values from MARKETTYPE (within the section access as well as in the normal data-model) in upper() and second is a check on the values which you have within NTNAME and how the users are identified within the app - this could be checked with a textbox() with osuser() as expression.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 12:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-If-condition/m-p/1891944#M1217329</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-02-11T12:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with my If condition</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-If-condition/m-p/1892362#M1217353</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/154844"&gt;@SRT10&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Code -&lt;/P&gt;
&lt;P&gt;Section Access;&lt;/P&gt;
&lt;P&gt;USERS:&lt;BR /&gt;LOAD [ACCESS], &lt;BR /&gt;UPPER(TRIM(NTNAME)) as NTNAME,&lt;BR /&gt;IF(MARKETTYPE='Primary','Primary','Secondary') AS MARKETTYPE&lt;BR /&gt;REGIONS&amp;nbsp;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;A href="https://www.indigocard.org/" target="_self"&gt;&lt;FONT color="#999999"&gt;myindigocard&lt;/FONT&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;FROM QVD\ADMIN_ACCESS.qvd (qvd)&lt;BR /&gt;Where 1=1;&lt;/P&gt;
&lt;P&gt;Section Application;&lt;/P&gt;
&lt;P&gt;By default Secondary is getting selected even if we have primary as MARKETTYPE.&lt;/P&gt;
&lt;P&gt;Why is this happening ?&lt;/P&gt;
&lt;P&gt;Data in MARKETTYPE column looks like -&lt;/P&gt;
&lt;TABLE border="1" width="53.05642916516841%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="19.46959896507115%" height="23px"&gt;ACCESS&lt;/TD&gt;
&lt;TD width="18.27296248382924%" height="23px"&gt;NTNAME&lt;/TD&gt;
&lt;TD width="15.297542043984478%" height="23px"&gt;&lt;STRONG&gt;MARKETTYPE&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="19.46959896507115%" height="23px"&gt;USER&lt;/TD&gt;
&lt;TD width="18.27296248382924%" height="23px"&gt;123&lt;/TD&gt;
&lt;TD width="15.297542043984478%" height="23px"&gt;Primary&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="19.46959896507115%" height="23px"&gt;ADMIN&lt;/TD&gt;
&lt;TD width="18.27296248382924%" height="23px"&gt;456&lt;/TD&gt;
&lt;TD width="15.297542043984478%" height="23px"&gt;Secondary&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="19.46959896507115%" height="23px"&gt;USER&lt;/TD&gt;
&lt;TD width="18.27296248382924%" height="23px"&gt;789&lt;/TD&gt;
&lt;TD width="15.297542043984478%" height="23px"&gt;Secondary&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="19.46959896507115%"&gt;ADMIN&lt;/TD&gt;
&lt;TD width="18.27296248382924%"&gt;111&lt;/TD&gt;
&lt;TD width="15.297542043984478%"&gt;Primary&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If we are directly using&amp;nbsp;&lt;STRONG&gt;MARKETTYPE &lt;/STRONG&gt;column as -&lt;/P&gt;
&lt;P&gt;Section Access;&lt;/P&gt;
&lt;P&gt;USERS:&lt;BR /&gt;LOAD [ACCESS], &lt;BR /&gt;UPPER(TRIM(NTNAME)) as NTNAME,&lt;BR /&gt;MARKETTYPE&lt;BR /&gt;REGIONS&amp;nbsp;&lt;BR /&gt;FROM QVD\ADMIN_ACCESS.qvd (qvd)&lt;BR /&gt;Where 1=1;&lt;/P&gt;
&lt;P&gt;Section Application;&lt;/P&gt;
&lt;P&gt;Using above I am not able to open dashboard and it tells you don't have access to this document.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If we are using &lt;STRONG&gt;If Condition&lt;/STRONG&gt;&amp;nbsp;then Secondary is directly getting selected after opening dashboard and its same across all users.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A class="lia-product-mention" href="https://community.qlik.com/t5/c-cyjdu72974/QlikView/pd-p/qlikView" target="_blank" rel="noopener" data-product="1-1"&gt;QlikView&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Experts advise -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/152210"&gt;@robsommer&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/98956"&gt;@DW&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp; &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/332"&gt;@JonnyPoole&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;It doesn't works when we place it with section access. what can be the issue here. Is it the data set which is causing this issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 03:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-If-condition/m-p/1892362#M1217353</guid>
      <dc:creator>Scott9733</dc:creator>
      <dc:date>2022-02-15T03:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with my If condition</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-If-condition/m-p/1892404#M1217355</link>
      <description>&lt;P&gt;IMO very helpful is to start with a simple dummy-app. Just a few inline-records for the section access and the section application. It excludes all relations to your existing app and their data-model and data(-quality). If it worked like expected you may step by step switch a bit more in the direction of your real scenario.&lt;/P&gt;
&lt;P&gt;A lot of information could you also find here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Section-Access/ta-p/1493681" target="_blank"&gt;Section Access - Qlik Community - 1493681&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 08:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-If-condition/m-p/1892404#M1217355</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-02-14T08:24:25Z</dc:date>
    </item>
  </channel>
</rss>

