<?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: Resolving multiple (bool) columns into one field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Resolving-multiple-bool-columns-into-one-field/m-p/1302806#M842536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would probably transform the Tbl_Data per&lt;A href="https://community.qlik.com/qlik-blogpost/3628"&gt;The Crosstable Load&lt;/A&gt; and then joining/mapping or associating it with the Tbl_Attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Apr 2017 17:07:45 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2017-04-11T17:07:45Z</dc:date>
    <item>
      <title>Resolving multiple (bool) columns into one field</title>
      <link>https://community.qlik.com/t5/QlikView/Resolving-multiple-bool-columns-into-one-field/m-p/1302805#M842535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've spent some time browsing through the forum but couldn't find a solution for my problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm connecting to a Oracle database to consum among others 2 tables: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tbl_Data: &lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;A1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;A2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;A3&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;A4&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;true&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;(null)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;true&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Germany&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;true&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;true&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;(null)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Spain&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Tbl_Attributes:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;DataCOL&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Area.Highway&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;a1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Weather.Sunny&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;a2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Weather.Rain&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;a3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Country&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;a4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Almost all columns in Tbl_Data are something A1-A(n) with either a boolean value or a string. Tbl_Attributes is providing a mapping for A(n) to actual column name/content. Especially demanding is the fact that those tables still dynamically grow and I can't really map it hardcoded i.e. not all A(n) columns are already assigned in Tbl_Attributes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As of now I'm checking wether a column has a true value via if Statements and then joining belonging entries into one field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Weather&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(A5 = 'true', 'Clear',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(A11 = 'true', 'Cloudy',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(A12 = 'true', 'Rain',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(A16 = 'true', 'Spray',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(A17 = 'true', 'Sun',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(A18 = 'true', 'Fog',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(A19 = 'true', 'Snow',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(A20 = 'true', 'Extreme'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )))))))) As Weather&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to that I also map columns with string values to Display the correct field name:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mapping:&lt;/P&gt;&lt;P&gt;Mapping Load &lt;BR /&gt; DataCOL,&lt;BR /&gt; NAME;&lt;BR /&gt;SQL SELECT DataCOL,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAME&lt;BR /&gt;FROM Tbl_Attributes;&lt;/P&gt;&lt;P&gt;Rename Fields using Mapping;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question: is there anyway to map this in a dynamic way based on Tbl_Attributes and also join columns with true into one field e.g. Weather.Rain / Weather.Snow to a field Weather containing: rain, snow etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resolving-multiple-bool-columns-into-one-field/m-p/1302805#M842535</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving multiple (bool) columns into one field</title>
      <link>https://community.qlik.com/t5/QlikView/Resolving-multiple-bool-columns-into-one-field/m-p/1302806#M842536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would probably transform the Tbl_Data per&lt;A href="https://community.qlik.com/qlik-blogpost/3628"&gt;The Crosstable Load&lt;/A&gt; and then joining/mapping or associating it with the Tbl_Attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 17:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resolving-multiple-bool-columns-into-one-field/m-p/1302806#M842536</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-04-11T17:07:45Z</dc:date>
    </item>
  </channel>
</rss>

