<?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 Selecting a value based on another field's value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-a-value-based-on-another-field-s-value/m-p/1810031#M1212499</link>
    <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I'm fairly new to Qlikview and I'm currently stuck on this, so I'd appreciate any help given.&lt;/P&gt;&lt;P&gt;I have some fields from 2 different databases and I want to relate them. For example, let's say &lt;STRONG&gt;Serial No. A&lt;/STRONG&gt; and &lt;STRONG&gt;Serial No. B&lt;/STRONG&gt; are from 2 distinct databases, and these are their values. There are also other fields in the database, that are all related.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Serial No. A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1000&lt;/P&gt;&lt;P&gt;2000&lt;/P&gt;&lt;P&gt;3000&lt;/P&gt;&lt;P&gt;4000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Serial No. B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Test1&lt;/P&gt;&lt;P&gt;Test2&lt;/P&gt;&lt;P&gt;Test3&lt;/P&gt;&lt;P&gt;Test4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Serial No. A&lt;/STRONG&gt; and&lt;STRONG&gt; Serial No. B&lt;/STRONG&gt; are related to each other, corresponding &lt;STRONG&gt;Serial No. A&lt;/STRONG&gt; 1000 to &lt;STRONG&gt;Serial No. B&lt;/STRONG&gt; Test 1, &lt;STRONG&gt;Serial No. A&lt;/STRONG&gt; 2000 to Test 2, and so on.&lt;/P&gt;&lt;P&gt;How can I associate them so that later, in a pivot table, I can select &lt;STRONG&gt;Serial No. A&lt;/STRONG&gt; and get &lt;STRONG&gt;Serial No. B&lt;/STRONG&gt; back, and all other field data associated to &lt;STRONG&gt;Serial No. B&lt;/STRONG&gt; and its database? I'm leaving an example of what I want it to be.&lt;/P&gt;&lt;P&gt;I can imagine this being hard to comprehend, as it's not easy to explain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Mon, 24 May 2021 12:02:12 GMT</pubDate>
    <dc:creator>AFigueiredo</dc:creator>
    <dc:date>2021-05-24T12:02:12Z</dc:date>
    <item>
      <title>Selecting a value based on another field's value</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-value-based-on-another-field-s-value/m-p/1810031#M1212499</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I'm fairly new to Qlikview and I'm currently stuck on this, so I'd appreciate any help given.&lt;/P&gt;&lt;P&gt;I have some fields from 2 different databases and I want to relate them. For example, let's say &lt;STRONG&gt;Serial No. A&lt;/STRONG&gt; and &lt;STRONG&gt;Serial No. B&lt;/STRONG&gt; are from 2 distinct databases, and these are their values. There are also other fields in the database, that are all related.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Serial No. A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1000&lt;/P&gt;&lt;P&gt;2000&lt;/P&gt;&lt;P&gt;3000&lt;/P&gt;&lt;P&gt;4000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Serial No. B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Test1&lt;/P&gt;&lt;P&gt;Test2&lt;/P&gt;&lt;P&gt;Test3&lt;/P&gt;&lt;P&gt;Test4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Serial No. A&lt;/STRONG&gt; and&lt;STRONG&gt; Serial No. B&lt;/STRONG&gt; are related to each other, corresponding &lt;STRONG&gt;Serial No. A&lt;/STRONG&gt; 1000 to &lt;STRONG&gt;Serial No. B&lt;/STRONG&gt; Test 1, &lt;STRONG&gt;Serial No. A&lt;/STRONG&gt; 2000 to Test 2, and so on.&lt;/P&gt;&lt;P&gt;How can I associate them so that later, in a pivot table, I can select &lt;STRONG&gt;Serial No. A&lt;/STRONG&gt; and get &lt;STRONG&gt;Serial No. B&lt;/STRONG&gt; back, and all other field data associated to &lt;STRONG&gt;Serial No. B&lt;/STRONG&gt; and its database? I'm leaving an example of what I want it to be.&lt;/P&gt;&lt;P&gt;I can imagine this being hard to comprehend, as it's not easy to explain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 12:02:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-value-based-on-another-field-s-value/m-p/1810031#M1212499</guid>
      <dc:creator>AFigueiredo</dc:creator>
      <dc:date>2021-05-24T12:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a value based on another field's value</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-value-based-on-another-field-s-value/m-p/1810170#M1212517</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/142234"&gt;@AFigueiredo&lt;/a&gt;&amp;nbsp;, if there is no relation between fields, you can create a table with the different expected combinations, and then use &lt;STRONG&gt;&lt;FONT color="#339966"&gt;mapping&lt;/FONT&gt; &lt;/STRONG&gt;to get the second field for every single row:&lt;/P&gt;&lt;P&gt;A:&lt;BR /&gt;Load * INLINE [&lt;BR /&gt;Serial No. A&lt;BR /&gt;1000&lt;BR /&gt;2000&lt;BR /&gt;3000&lt;BR /&gt;4000&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;B:&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;mapping&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;Load * INLINE [&lt;BR /&gt;A, B&lt;BR /&gt;1000, Test1&lt;BR /&gt;2000, Test2&lt;BR /&gt;3000, Test3&lt;BR /&gt;4000, Test4&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Result:&lt;BR /&gt;Load&lt;BR /&gt;[Serial No. A],&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;applymap&lt;/STRONG&gt;&lt;/FONT&gt;('B', [Serial No. A]) as [Serial No. B]&lt;BR /&gt;Resident A;&lt;/P&gt;&lt;P&gt;drop table A;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 23:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-value-based-on-another-field-s-value/m-p/1810170#M1212517</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2021-05-24T23:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a value based on another field's value</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-value-based-on-another-field-s-value/m-p/1810193#M1212522</link>
      <description>&lt;P&gt;Try like this,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tab1:
Load RowNo() As Key,* INLINE [
Serial No. A
1000
2000
3000
4000
];

Left Join(tab1)
Load RowNo() As Key,* INLINE [
Serial No. B
Test1
Test2
Test3
Test4
];&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 24 May 2021 23:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-value-based-on-another-field-s-value/m-p/1810193#M1212522</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-05-24T23:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a value based on another field's value</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-value-based-on-another-field-s-value/m-p/1810195#M1212523</link>
      <description>&lt;P&gt;Data Model:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV72.PNG" style="width: 113px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55585i5EB19748EC446305/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV72.PNG" alt="commQV72.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 23:50:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-value-based-on-another-field-s-value/m-p/1810195#M1212523</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-05-24T23:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a value based on another field's value</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-value-based-on-another-field-s-value/m-p/1810416#M1212549</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;The fields are related. Whenever I select my Serial No. A, I get the corresponding Serial No. B (as intended). However, B has other related fields, and I'm getting all of them, not only the ones that are related to both B and A (i.e, they're related to B which is dependent on A).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;Is there a way I can filter these latter fields? As in some sort of "If A = 100 and B = Test 1, C = 200" ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for answering!&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 15:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-value-based-on-another-field-s-value/m-p/1810416#M1212549</guid>
      <dc:creator>AFigueiredo</dc:creator>
      <dc:date>2021-05-25T15:31:54Z</dc:date>
    </item>
  </channel>
</rss>

