<?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: Splitting IDs and assign numbers to first ID in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Splitting-IDs-and-assign-numbers-to-first-ID/m-p/1744880#M57144</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table:
LOAD Customer,
	 SubField(ID, ',') as ID,
	 If(AutoNumber(RowNo(), Customer) = 1, Targets, 0) as Targets,
	 If(AutoNumber(RowNo(), Customer) = 1, Actuals, 0) as Actuals;
LOAD * INLINE [
    Customer, ID, Targets, Actuals
    C1, "C1_ID1,C1_ID2,C1_ID3", 2500000, 4500000
    C2, "C2_ID1,C2_ID2,C2_ID3", 321000, 423000
];&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 17 Sep 2020 18:08:49 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2020-09-17T18:08:49Z</dc:date>
    <item>
      <title>Splitting IDs and assign numbers to first ID</title>
      <link>https://community.qlik.com/t5/App-Development/Splitting-IDs-and-assign-numbers-to-first-ID/m-p/1744873#M57143</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I hope you are doing well.&lt;/P&gt;&lt;P&gt;My question is as follows:&lt;/P&gt;&lt;P&gt;As shown below, i have a table (Source Table) that i have to load into QS. However, the ID column has multiple IDs in it and we want to split that. However, if i split it, the targets also get split and we have duplicates. Is there a way to have the source table where the targets/actuals are only assign to 1 ID (doesnt matter which one) and the rest are 0.&lt;/P&gt;&lt;P&gt;Source Table:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="24px"&gt;Customer&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;ID&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;Targets&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;Actuals&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="24px"&gt;C1&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;C1_ID1,C1_ID2,C1_ID3&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;2500000&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;4500000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="24px"&gt;C2&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;C2_ID1,C2_ID2,C2_ID3&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;321000&lt;/TD&gt;&lt;TD width="25%" height="24px"&gt;423000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result Table:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="160.909px" height="24px"&gt;Customer&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;ID&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;Targets&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;Actuals&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="160.909px" height="24px"&gt;C1&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;C1_ID1&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;2500000&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;4500000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="160.909px" height="24px"&gt;C1&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;C1_ID2&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;0&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="160.909px" height="24px"&gt;C1&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;C1_ID3&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;0&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="160.909px" height="24px"&gt;C2&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;C2_ID1&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;321000&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;423000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="160.909px" height="24px"&gt;C2&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;C2_ID2&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;0&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="160.909px" height="24px"&gt;C2&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;C2_ID3&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&gt;0&lt;/TD&gt;&lt;TD width="160.909px" height="24px"&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;Please ask if you have any questions.&lt;/P&gt;&lt;P&gt;Thank you for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Splitting-IDs-and-assign-numbers-to-first-ID/m-p/1744873#M57143</guid>
      <dc:creator>waleeed_mahmood</dc:creator>
      <dc:date>2024-11-16T18:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting IDs and assign numbers to first ID</title>
      <link>https://community.qlik.com/t5/App-Development/Splitting-IDs-and-assign-numbers-to-first-ID/m-p/1744880#M57144</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table:
LOAD Customer,
	 SubField(ID, ',') as ID,
	 If(AutoNumber(RowNo(), Customer) = 1, Targets, 0) as Targets,
	 If(AutoNumber(RowNo(), Customer) = 1, Actuals, 0) as Actuals;
LOAD * INLINE [
    Customer, ID, Targets, Actuals
    C1, "C1_ID1,C1_ID2,C1_ID3", 2500000, 4500000
    C2, "C2_ID1,C2_ID2,C2_ID3", 321000, 423000
];&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 17 Sep 2020 18:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Splitting-IDs-and-assign-numbers-to-first-ID/m-p/1744880#M57144</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-17T18:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting IDs and assign numbers to first ID</title>
      <link>https://community.qlik.com/t5/App-Development/Splitting-IDs-and-assign-numbers-to-first-ID/m-p/1744903#M57148</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 20:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Splitting-IDs-and-assign-numbers-to-first-ID/m-p/1744903#M57148</guid>
      <dc:creator>waleeed_mahmood</dc:creator>
      <dc:date>2020-09-17T20:55:17Z</dc:date>
    </item>
  </channel>
</rss>

