<?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: Qlik Data modeling converting table in desired Table Format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlik-Data-modeling-converting-table-in-desired-Table-Format/m-p/1755661#M720102</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48909"&gt;@chandu441&lt;/a&gt;, using crosstable and set analysis for each expression you can create that table.&lt;/P&gt;&lt;P&gt;Crosstable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CrossTable(Category, Data)
LOAD UniqueID, 
     Current_Bucket, 
     Proposed_Bucket, 
     Action_Bucket
FROM
[.\Copy of Crosstabledatamodel.xlsx]
(ooxml, embedded labels, header is 1 lines, table is Sheet1);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then create a table with Category as dimension and a expression for each column, each one with the needed set analysis:&amp;nbsp;Count({&amp;lt;Data={'CeX'}&amp;gt;} UniqueID)&lt;/P&gt;&lt;P&gt;Or a pivot table with Data as vertical dimension and just&amp;nbsp;Count(UniqueID) as expression, but in this case you will need add some fixed table to sort vertical dimension, by default it will show as:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura.PNG" style="width: 729px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42970i04A1780F0E1BC42D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura.PNG" alt="Captura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 24 Oct 2020 16:56:08 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2020-10-24T16:56:08Z</dc:date>
    <item>
      <title>Qlik Data modeling converting table in desired Table Format</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-Data-modeling-converting-table-in-desired-Table-Format/m-p/1755634#M720101</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am having one scenario which I need to convert from Table_A to Table_B format in Data modelling using Qlik Script.&lt;/P&gt;&lt;P&gt;Attached Excel sheet for reference.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chandu441_0-1603528736606.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42966i14ABF1C414AC6526/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chandu441_0-1603528736606.png" alt="chandu441_0-1603528736606.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks In Advance&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-Data-modeling-converting-table-in-desired-Table-Format/m-p/1755634#M720101</guid>
      <dc:creator>chandu441</dc:creator>
      <dc:date>2024-11-16T17:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Data modeling converting table in desired Table Format</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-Data-modeling-converting-table-in-desired-Table-Format/m-p/1755661#M720102</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48909"&gt;@chandu441&lt;/a&gt;, using crosstable and set analysis for each expression you can create that table.&lt;/P&gt;&lt;P&gt;Crosstable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CrossTable(Category, Data)
LOAD UniqueID, 
     Current_Bucket, 
     Proposed_Bucket, 
     Action_Bucket
FROM
[.\Copy of Crosstabledatamodel.xlsx]
(ooxml, embedded labels, header is 1 lines, table is Sheet1);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then create a table with Category as dimension and a expression for each column, each one with the needed set analysis:&amp;nbsp;Count({&amp;lt;Data={'CeX'}&amp;gt;} UniqueID)&lt;/P&gt;&lt;P&gt;Or a pivot table with Data as vertical dimension and just&amp;nbsp;Count(UniqueID) as expression, but in this case you will need add some fixed table to sort vertical dimension, by default it will show as:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura.PNG" style="width: 729px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42970i04A1780F0E1BC42D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura.PNG" alt="Captura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2020 16:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-Data-modeling-converting-table-in-desired-Table-Format/m-p/1755661#M720102</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-10-24T16:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Data modeling converting table in desired Table Format</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-Data-modeling-converting-table-in-desired-Table-Format/m-p/1755666#M720103</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48909"&gt;@chandu441&lt;/a&gt;&amp;nbsp;;&lt;/P&gt;&lt;P&gt;try this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;TABLE_A:&lt;BR /&gt;CrossTable(CATEGORIE, ITEM)&lt;BR /&gt;LOAD UniqueID,&lt;BR /&gt;Current_Bucket,&lt;BR /&gt;Proposed_Bucket,&lt;BR /&gt;Action_Bucket&lt;BR /&gt;FROM&amp;nbsp; &amp;nbsp; [......\Crosstabledatamodel.xlsx]&amp;nbsp; &amp;nbsp;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;ITEMS:&lt;BR /&gt;LOAD DISTINCT ITEM AS ITEMVALUE RESIDENT TABLE_A;&lt;/P&gt;&lt;P&gt;SUM_TOTAL:&lt;BR /&gt;LOAD CATEGORIE, COUNT(DISTINCT UniqueID) AS SUM_TOTAL RESIDENT TABLE_A GROUP BY CATEGORIE;&lt;/P&gt;&lt;P&gt;TABLE_B_tmp:&lt;BR /&gt;LOAD&lt;BR /&gt;CATEGORIE&lt;BR /&gt;RESIDENT TABLE_A;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;GENERIC_Table:&lt;/P&gt;&lt;P&gt;GENERIC LOAD CATEGORIE,ITEM,UniqueID RESIDENT TABLE_A;&lt;BR /&gt;DROP TABLE TABLE_A;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FOR i = 0 to NoOfTables()&lt;BR /&gt;TableList:&lt;BR /&gt;LOAD TableName($(i)) as Tablename AUTOGENERATE 1&lt;BR /&gt;WHERE WildMatch(TableName($(i)), 'GENERIC_Table.*');&lt;BR /&gt;NEXT i&lt;/P&gt;&lt;P&gt;FOR i = 1 to FieldValueCount('Tablename')&lt;BR /&gt;LET vTable = FieldValue('Tablename', $(i));&lt;BR /&gt;LEFT JOIN (TABLE_B_tmp) LOAD * RESIDENT [$(vTable)];&lt;BR /&gt;DROP TABLE [$(vTable)];&lt;BR /&gt;NEXT i&lt;/P&gt;&lt;P&gt;DROP TABLE TableList;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FOR i = 1 to FieldValueCount('ITEMVALUE')&lt;BR /&gt;LET CULOMN=FieldValue('ITEMVALUE', $(i));&lt;BR /&gt;IF i = 1 THEN&lt;BR /&gt;TABLE_B:&lt;BR /&gt;LOAD CATEGORIE,&lt;BR /&gt;COUNT(DISTINCT $(CULOMN)) AS $(CULOMN)&lt;BR /&gt;RESIDENT TABLE_B_tmp GROUP BY CATEGORIE;&lt;BR /&gt;ELSE&lt;BR /&gt;LEFT JOIN(TABLE_B)&lt;BR /&gt;LOAD CATEGORIE,&lt;BR /&gt;COUNT(DISTINCT $(CULOMN)) AS $(CULOMN)&lt;BR /&gt;RESIDENT TABLE_B_tmp GROUP BY CATEGORIE;&lt;BR /&gt;END IF&lt;BR /&gt;NEXT i&lt;/P&gt;&lt;P&gt;DROP TABLE TABLE_B_tmp;&lt;BR /&gt;DROP TABLE ITEMS;&lt;/P&gt;&lt;P&gt;LEFT JOIN(TABLE_B)&lt;BR /&gt;LOAD&lt;BR /&gt;CATEGORIE,&lt;BR /&gt;SUM_TOTAL&lt;BR /&gt;RESIDENT SUM_TOTAL;&lt;/P&gt;&lt;P&gt;DROP TABLE SUM_TOTAL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2020 17:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-Data-modeling-converting-table-in-desired-Table-Format/m-p/1755666#M720103</guid>
      <dc:creator>JMAROUF</dc:creator>
      <dc:date>2020-10-24T17:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Data modeling converting table in desired Table Format</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-Data-modeling-converting-table-in-desired-Table-Format/m-p/1757715#M720104</link>
      <description>&lt;P&gt;H rubenmarin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your solution which it works well in front end. But I need to create the table in back end so as per my requirement I've created the script as below.&lt;/P&gt;&lt;P&gt;Table_A:&lt;BR /&gt;LOAD UniqueID,&lt;BR /&gt;Current_Bucket,&lt;BR /&gt;Proposed_Bucket,&lt;BR /&gt;Action_Bucket&lt;BR /&gt;FROM&lt;BR /&gt;[E:\Qlikview_Main\Source Documents\17_Admin\Crosstable_datamodel.xlsx] (ooxml, embedded labels, table is Table_A);&lt;/P&gt;&lt;P&gt;Table_B:&lt;BR /&gt;crosstable (Category, Bucket, 1) LOAD * Resident Table_A;&lt;BR /&gt;Drop table Table_A;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;Table_A:&lt;BR /&gt;Load *&lt;BR /&gt;Where not Match(CeX, '',' ',null()) or len(CeX)&amp;lt;&amp;gt;'0'&lt;BR /&gt;;&lt;BR /&gt;Load&lt;BR /&gt;Count(UniqueID) as CeX,&lt;BR /&gt;Category&lt;BR /&gt;//, UniqueID&lt;BR /&gt;Resident Table_B&lt;BR /&gt;Where Bucket='CeX'&lt;BR /&gt;Group by Category&lt;BR /&gt;//, UniqueID&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;/* -------------------------------- */&lt;BR /&gt;Concatenate(Table_A)&lt;BR /&gt;Mainstream:&lt;BR /&gt;Load *&lt;BR /&gt;Where not Match(Mainstream, '',' ',null()) or len(Mainstream)&amp;lt;&amp;gt;'0' ;&lt;BR /&gt;Load&lt;BR /&gt;Count(UniqueID) as Mainstream,&lt;BR /&gt;Category&lt;BR /&gt;//, UniqueID&lt;BR /&gt;Resident Table_B&lt;BR /&gt;Where Bucket='Mainstream'&lt;BR /&gt;Group by Category&lt;BR /&gt;//, UniqueID&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Concatenate(Table_A)&lt;BR /&gt;NUCMainstream:&lt;BR /&gt;Load *&lt;BR /&gt;Where not Match(NUCMainstream, '',' ',null()) or len(NUCMainstream)&amp;lt;&amp;gt;'0' ;&lt;BR /&gt;Load&lt;BR /&gt;Count(UniqueID) as NUCMainstream,&lt;BR /&gt;Category&lt;BR /&gt;//, UniqueID&lt;BR /&gt;Resident Table_B&lt;BR /&gt;Where Bucket='NUCMainstream'&lt;BR /&gt;Group by Category&lt;BR /&gt;//, UniqueID&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Concatenate(Table_A)&lt;BR /&gt;Online:&lt;BR /&gt;Load *&lt;BR /&gt;Where not Match(Online, '',' ',null()) or len(Online)&amp;lt;&amp;gt;'0' ;&lt;BR /&gt;Load&lt;BR /&gt;Count(UniqueID) as Online,&lt;BR /&gt;Category&lt;BR /&gt;//, UniqueID&lt;BR /&gt;Resident Table_B&lt;BR /&gt;Where Bucket='Online'&lt;BR /&gt;Group by Category&lt;BR /&gt;//, UniqueID&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Concatenate(Table_A)&lt;BR /&gt;NA:&lt;BR /&gt;Load *&lt;BR /&gt;Where not Match(NA, '',' ',null()) or len(NA)&amp;lt;&amp;gt;'0' ;&lt;BR /&gt;Load&lt;BR /&gt;Count(UniqueID) as NA,&lt;BR /&gt;Category&lt;BR /&gt;//, UniqueID&lt;BR /&gt;Resident Table_B&lt;BR /&gt;Where Bucket='NA'&lt;BR /&gt;Group by Category&lt;BR /&gt;//, UniqueID&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Drop table Table_B;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;Table_B:&lt;BR /&gt;Load&lt;BR /&gt;Category&lt;BR /&gt;//, Sum(Category) as Category&lt;BR /&gt;, Sum(CeX) as CeX&lt;BR /&gt;, Sum(Mainstream) as Mainstream&lt;BR /&gt;, Sum(NUCMainstream) as NUCMainstream&lt;BR /&gt;, Sum(Online) as Online&lt;BR /&gt;, Sum(NA) as NA&lt;BR /&gt;Resident Table_A&lt;BR /&gt;Group by Category;&lt;/P&gt;&lt;P&gt;Drop table Table_A;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;chandu&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 09:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-Data-modeling-converting-table-in-desired-Table-Format/m-p/1757715#M720104</guid>
      <dc:creator>chandu441</dc:creator>
      <dc:date>2020-11-02T09:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Data modeling converting table in desired Table Format</title>
      <link>https://community.qlik.com/t5/QlikView/Qlik-Data-modeling-converting-table-in-desired-Table-Format/m-p/1757945#M720105</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48909"&gt;@chandu441&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried my solution in back end? it will work even with dynamic fields ( without knowing values) .&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 20:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlik-Data-modeling-converting-table-in-desired-Table-Format/m-p/1757945#M720105</guid>
      <dc:creator>JMAROUF</dc:creator>
      <dc:date>2020-11-02T20:19:03Z</dc:date>
    </item>
  </channel>
</rss>

