<?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: How can i map field value to values based on combination in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-i-map-field-value-to-values-based-on-combination/m-p/1885829#M1217059</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;I have a field/column with name as market. It has values like Primary and Secondary&lt;/P&gt;
&lt;TABLE border="1" width="10.210876726017204%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%" height="26px"&gt;
&lt;P&gt;&lt;STRONG&gt;Market&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="24px"&gt;Primary&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="24px"&gt;Secondary&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We want a new field with name as UserType and it should be like&lt;/P&gt;
&lt;P&gt;If Market is Primary and Secondary then userType shall be Primary&lt;/P&gt;
&lt;P&gt;and UserType shall be Secondary when market is Secondary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can we achieve this. i.e.&amp;nbsp; Primary User shall be mapped with Primary and Secondary Markets and Secondary User shall be mapped with only Secondary market&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/332"&gt;@JonnyPoole&lt;/a&gt;&amp;nbsp;&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/28038"&gt;@marcus_sommer&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;&amp;nbsp;&lt;A href="https://www.tellthebell.run/" target="_self"&gt;official Tellthebell Survey&lt;/A&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Is it two rows or both values on the same row? Can you post a screenshot of your data model?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jan 2022 03:52:34 GMT</pubDate>
    <dc:creator>Sherman99</dc:creator>
    <dc:date>2022-01-28T03:52:34Z</dc:date>
    <item>
      <title>How can i map field value to values based on combination</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-map-field-value-to-values-based-on-combination/m-p/1884830#M1217015</link>
      <description>&lt;P&gt;I have a field/column with name as market. It has values like Primary and Secondary&lt;/P&gt;
&lt;TABLE border="1" width="10.210876726017204%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%" height="26px"&gt;
&lt;P&gt;&lt;STRONG&gt;Market&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="24px"&gt;Primary&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="24px"&gt;Secondary&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We want a new field with name as UserType and it should be like&lt;/P&gt;
&lt;P&gt;If Market is Primary and Secondary then userType shall be Primary&lt;/P&gt;
&lt;P&gt;and UserType shall be Secondary when market is Secondary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can we achieve this. i.e.&amp;nbsp; Primary User shall be mapped with Primary and Secondary Markets and Secondary User shall be mapped with only Secondary market&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/332"&gt;@JonnyPoole&lt;/a&gt;&amp;nbsp;&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/28038"&gt;@marcus_sommer&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;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 06:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-map-field-value-to-values-based-on-combination/m-p/1884830#M1217015</guid>
      <dc:creator>SRT10</dc:creator>
      <dc:date>2022-01-25T06:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can i map field value to values based on combination</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-map-field-value-to-values-based-on-combination/m-p/1884844#M1217017</link>
      <description>&lt;P&gt;Market,UserType&lt;/P&gt;
&lt;P&gt;Primary,Primary&lt;/P&gt;
&lt;P&gt;Secondart,Primary&lt;/P&gt;
&lt;P&gt;Seconday,Secondary&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 07:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-map-field-value-to-values-based-on-combination/m-p/1884844#M1217017</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2022-01-25T07:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can i map field value to values based on combination</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-map-field-value-to-values-based-on-combination/m-p/1884916#M1217020</link>
      <description>&lt;P&gt;tried this but it is not working. Only Primary is getting exposed and no secondary is available in usertype field&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 09:59:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-map-field-value-to-values-based-on-combination/m-p/1884916#M1217020</guid>
      <dc:creator>SRT10</dc:creator>
      <dc:date>2022-01-25T09:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can i map field value to values based on combination</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-map-field-value-to-values-based-on-combination/m-p/1885207#M1217032</link>
      <description>&lt;P&gt;When Market is both Primary and Secondary, how does that appear? Is it two rows or both values on the same row? Can you post a screenshot of your data model?&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 17:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-map-field-value-to-values-based-on-combination/m-p/1885207#M1217032</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-01-25T17:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can i map field value to values based on combination</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-map-field-value-to-values-based-on-combination/m-p/1885216#M1217033</link>
      <description>&lt;P&gt;MarketType is field/column name which has values like&lt;/P&gt;
&lt;P&gt;1.Primary&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.Secondary&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both are seperate values but under same column name i.e. MarketType&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What we want here is we need to generate/derive new field called as UserType which will have values like Primary and Secondary. But here if Primary is selected from UserType then under Market both values shall be allowed to be selected. But if secondary is selected then only Secondary shall be allowed and Primary shall be greyed out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If(MarketType = 'Primary' and MarketType = 'Secondary' , 'Primary', ) as UserType&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If MarketType=Secondary then Secondary as UserType&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Script are wrong here...but this is what is expected here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Away from laptop to share screenshot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 17:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-map-field-value-to-values-based-on-combination/m-p/1885216#M1217033</guid>
      <dc:creator>SRT10</dc:creator>
      <dc:date>2022-01-25T17:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can i map field value to values based on combination</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-map-field-value-to-values-based-on-combination/m-p/1885361#M1217035</link>
      <description>&lt;P&gt;Hi - If i understood your question correctly, then i believe you gotta&amp;nbsp; group the 'Market Types' and assign a key to that group and call that group id with your 'UserType' Selections. Check below:&lt;/P&gt;
&lt;P&gt;Step1: in your script&lt;/P&gt;
&lt;P&gt;data:&lt;BR /&gt;load * inline [&lt;BR /&gt;GroupID, MarketType &lt;BR /&gt;1, Primary &lt;BR /&gt;1, Secondary&lt;BR /&gt;2, Secondary&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;usr_type:&lt;BR /&gt;Load * inline [&lt;BR /&gt;GroupID, UserType &lt;BR /&gt;1, Primary &lt;BR /&gt;2, Secondary&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;//no need to join as the table key is same&lt;/P&gt;
&lt;P&gt;UI:&lt;/P&gt;
&lt;P&gt;With No Selection:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 575px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/70981iE4180D5BE7743251/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With 'Primary' in UserType Selection:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.JPG" style="width: 554px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/70983i01A9C9CD43B96E81/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.JPG" alt="Capture1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With 'Secondary' in UserType Selection:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 600px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/70984i0DF353AEF8F02C52/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.JPG" alt="Capture2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 02:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-map-field-value-to-values-based-on-combination/m-p/1885361#M1217035</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2022-01-26T02:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can i map field value to values based on combination</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-map-field-value-to-values-based-on-combination/m-p/1885829#M1217059</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;I have a field/column with name as market. It has values like Primary and Secondary&lt;/P&gt;
&lt;TABLE border="1" width="10.210876726017204%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%" height="26px"&gt;
&lt;P&gt;&lt;STRONG&gt;Market&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="24px"&gt;Primary&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%" height="24px"&gt;Secondary&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We want a new field with name as UserType and it should be like&lt;/P&gt;
&lt;P&gt;If Market is Primary and Secondary then userType shall be Primary&lt;/P&gt;
&lt;P&gt;and UserType shall be Secondary when market is Secondary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can we achieve this. i.e.&amp;nbsp; Primary User shall be mapped with Primary and Secondary Markets and Secondary User shall be mapped with only Secondary market&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/332"&gt;@JonnyPoole&lt;/a&gt;&amp;nbsp;&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/28038"&gt;@marcus_sommer&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;&amp;nbsp;&lt;A href="https://www.tellthebell.run/" target="_self"&gt;official Tellthebell Survey&lt;/A&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Is it two rows or both values on the same row? Can you post a screenshot of your data model?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 03:52:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-map-field-value-to-values-based-on-combination/m-p/1885829#M1217059</guid>
      <dc:creator>Sherman99</dc:creator>
      <dc:date>2022-01-28T03:52:34Z</dc:date>
    </item>
  </channel>
</rss>

