<?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 to convert multiple fields into one single field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-convert-multiple-fields-into-one-single-field/m-p/1700729#M53653</link>
    <description>&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Hi thanhng,&lt;/P&gt;&lt;P&gt;Here is the solution for your query.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="solution.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33349i062991D9CFBECFE4/image-size/large?v=v2&amp;amp;px=999" role="button" title="solution.png" alt="solution.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;SPAN&gt;&lt;FONT face="Calibri"&gt;Steps i followed to achieve the above scenario:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;-&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT face="Calibri"&gt;I have used crosstable function that &amp;nbsp;transform the table and that will convert 3 fields into one field&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Calibri"&gt;(institution)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT face="Calibri"&gt;Load 0 and 1 values as a Status&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT face="Calibri"&gt;Noconcatenate will not concatenate two tables&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT face="Calibri"&gt;I Loaded all fields into Temp table using resident(Status=1).&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Then drop the initial table and status field.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;here is the script&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3 filed into 1 transformation.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33350i3AD13847129DE547/image-size/large?v=v2&amp;amp;px=999" role="button" title="3 filed into 1 transformation.png" alt="3 filed into 1 transformation.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;raji&lt;/P&gt;</description>
    <pubDate>Mon, 11 May 2020 14:39:19 GMT</pubDate>
    <dc:creator>raji6763</dc:creator>
    <dc:date>2020-05-11T14:39:19Z</dc:date>
    <item>
      <title>How to convert multiple fields into one single field</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-multiple-fields-into-one-single-field/m-p/1700628#M53649</link>
      <description>&lt;P&gt;Hello community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently working on my company's client repository.&lt;BR /&gt;There are three fields that determine whether a person is a client of an institution belonging to my company:&lt;/P&gt;&lt;P&gt;- PersonIsClientAGRI: if the person is a client of AGRI -&amp;gt; "1", otherwise "0".&lt;BR /&gt;- PersonIsClientCCPMA: if the person is a client of CCPMA -&amp;gt; "1", otherwise "0".&lt;BR /&gt;- PersonIsClientCPCEA: if the person is a client of CPCEA -&amp;gt; "1", otherwise "0".&lt;/P&gt;&lt;P&gt;There are many people who are clients of 2 or even 3 institutions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My need: &lt;STRONG&gt;I would like to "group" the three fields mentioned above into a single field called "Institution",&lt;/STRONG&gt; to use it later as a dimension.&lt;BR /&gt;For example, for a person who is a client of two institutions "AGRI" and "CCPMA", I will have two lines with the same information relating to this person: a line with "Institution" = "AGRI" and a line with "Institution" = "CCPMA",&lt;/P&gt;&lt;P&gt;instead of a single line with "PersonIsClientAGRI" = "1" and "PersonIsClientCCPMA" = "1" as now.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Before :&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;TABLE border="1" width="85.28940842327641%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="11.11111111111111%" height="26px"&gt;ID&lt;/TD&gt;&lt;TD width="11.11111111111111%" height="26px"&gt;personFirstName&lt;/TD&gt;&lt;TD width="11.11111111111111%" height="26px"&gt;personLastName&lt;/TD&gt;&lt;TD width="11.11111111111111%" height="26px"&gt;personDateofBirth&lt;/TD&gt;&lt;TD width="11.11111111111111%" height="26px"&gt;personSex&lt;/TD&gt;&lt;TD width="11.11111111111111%" height="26px"&gt;personIsClientAGRI&lt;/TD&gt;&lt;TD width="11.11111111111111%" height="26px"&gt;personIsClienCCPMA&lt;/TD&gt;&lt;TD width="11.11111111111111%" height="26px"&gt;personIsClientCPCEA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="11.11111111111111%" height="25px"&gt;001&lt;/TD&gt;&lt;TD width="11.11111111111111%" height="25px"&gt;Laura&lt;/TD&gt;&lt;TD width="11.11111111111111%" height="25px"&gt;Dubois&lt;/TD&gt;&lt;TD width="11.11111111111111%" height="25px"&gt;15/05/1984&lt;/TD&gt;&lt;TD width="11.11111111111111%" height="25px"&gt;Female&lt;/TD&gt;&lt;TD width="11.11111111111111%" height="25px"&gt;1&lt;/TD&gt;&lt;TD width="11.11111111111111%" height="25px"&gt;1&lt;/TD&gt;&lt;TD width="11.11111111111111%" height="25px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;After :&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;TABLE border="1" width="51.86746987951807%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="12.5%" height="25px"&gt;ID&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;personFirstName&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;personLastName&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;personDateofBirth&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;personSex&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;Institution&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%" height="25px"&gt;001&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;Laura&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;Dubois&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;15/05/1984&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;Female&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;AGRI&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="12.5%" height="25px"&gt;001&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;Laura&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;Dubois&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;15/05/1984&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;Female&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;CCPMA&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-multiple-fields-into-one-single-field/m-p/1700628#M53649</guid>
      <dc:creator>thanhng34</dc:creator>
      <dc:date>2024-11-16T18:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert multiple fields into one single field</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-multiple-fields-into-one-single-field/m-p/1700729#M53653</link>
      <description>&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Hi thanhng,&lt;/P&gt;&lt;P&gt;Here is the solution for your query.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="solution.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33349i062991D9CFBECFE4/image-size/large?v=v2&amp;amp;px=999" role="button" title="solution.png" alt="solution.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;SPAN&gt;&lt;FONT face="Calibri"&gt;Steps i followed to achieve the above scenario:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;-&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT face="Calibri"&gt;I have used crosstable function that &amp;nbsp;transform the table and that will convert 3 fields into one field&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Calibri"&gt;(institution)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT face="Calibri"&gt;Load 0 and 1 values as a Status&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT face="Calibri"&gt;Noconcatenate will not concatenate two tables&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT face="Calibri"&gt;I Loaded all fields into Temp table using resident(Status=1).&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Then drop the initial table and status field.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;here is the script&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3 filed into 1 transformation.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33350i3AD13847129DE547/image-size/large?v=v2&amp;amp;px=999" role="button" title="3 filed into 1 transformation.png" alt="3 filed into 1 transformation.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;raji&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 14:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-multiple-fields-into-one-single-field/m-p/1700729#M53653</guid>
      <dc:creator>raji6763</dc:creator>
      <dc:date>2020-05-11T14:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert multiple fields into one single field</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-multiple-fields-into-one-single-field/m-p/1700906#M53667</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/11742"&gt;@raji6763&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you so much for your solution, it works great ! Thanks for sharing the script which did facilitate my understanding of how the crosstable does work.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 06:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-multiple-fields-into-one-single-field/m-p/1700906#M53667</guid>
      <dc:creator>thanhng34</dc:creator>
      <dc:date>2020-05-12T06:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert multiple fields into one single field</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-multiple-fields-into-one-single-field/m-p/1700915#M53669</link>
      <description>&lt;P&gt;Thank you&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 06:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-multiple-fields-into-one-single-field/m-p/1700915#M53669</guid>
      <dc:creator>raji6763</dc:creator>
      <dc:date>2020-05-12T06:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert multiple fields into one single field</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-multiple-fields-into-one-single-field/m-p/1909081#M74945</link>
      <description>&lt;P&gt;Hopefully this finds raji6763 after 2 years... Can you please display the code above crosstable?&amp;nbsp; I'm not sure what you did with the Status field "&lt;SPAN&gt;Load 0 and 1 values as a Status&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 01:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-multiple-fields-into-one-single-field/m-p/1909081#M74945</guid>
      <dc:creator>msshawn3019</dc:creator>
      <dc:date>2022-03-24T01:06:37Z</dc:date>
    </item>
  </channel>
</rss>

