<?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: Complicated structure table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Complicated-structure-table/m-p/1575304#M740849</link>
    <description>&lt;P&gt;PSA&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2019 19:14:14 GMT</pubDate>
    <dc:creator>Qrishna</dc:creator>
    <dc:date>2019-04-30T19:14:14Z</dc:date>
    <item>
      <title>Complicated structure table</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-structure-table/m-p/1571019#M740844</link>
      <description>&lt;P&gt;Hello there. I've got some crosstable with sophisticated attribute structure (I'll better show the actual table then explain (see excel file)). I've tried to load that using GENERIC parameter, but the system just makes hundreds of separate tables, which is not what I really need. Tried to join them with some script but without much success.&lt;/P&gt;&lt;P&gt;I've also tried another thing. Written a script:&lt;/P&gt;&lt;P&gt;MortalityIndicatorsByGender_temp:&lt;BR /&gt;CrossTable(Attributes, Data, 1)&lt;BR /&gt;LOAD&lt;BR /&gt;// F1 as Region,&lt;BR /&gt;Country,&lt;BR /&gt;imr95,&lt;BR /&gt;mimr95,&lt;BR /&gt;fimr95,&lt;BR /&gt;mort1to495,&lt;BR /&gt;mmort1to495,&lt;BR /&gt;fmort1to495,&lt;BR /&gt;mortlt595,&lt;BR /&gt;mmortlt595,&lt;BR /&gt;fmortlt595,&lt;BR /&gt;life95,&lt;BR /&gt;mlife95,&lt;BR /&gt;flife95,&lt;BR /&gt;imr96,&lt;BR /&gt;mimr96,&lt;BR /&gt;fimr96,&lt;BR /&gt;mort1to496,&lt;BR /&gt;mmort1to496,&lt;BR /&gt;fmort1to496,&lt;BR /&gt;mortlt596,&lt;BR /&gt;mmortlt596,&lt;BR /&gt;fmortlt596,&lt;BR /&gt;life96,&lt;BR /&gt;mlife96,&lt;BR /&gt;flife96,&lt;BR /&gt;imr97,&lt;BR /&gt;mimr97,&lt;BR /&gt;fimr97,&lt;BR /&gt;mort1to497,&lt;BR /&gt;mmort1to497,&lt;BR /&gt;fmort1to497,&lt;BR /&gt;mortlt597,&lt;BR /&gt;mmortlt597,&lt;BR /&gt;fmortlt597,&lt;BR /&gt;life97,&lt;BR /&gt;mlife97,&lt;BR /&gt;flife97,&lt;BR /&gt;imr98,&lt;BR /&gt;mimr98,&lt;BR /&gt;fimr98,&lt;BR /&gt;mort1to498,&lt;BR /&gt;mmort1to498,&lt;BR /&gt;fmort1to498,&lt;BR /&gt;mortlt598,&lt;BR /&gt;mmortlt598,&lt;BR /&gt;fmortlt598,&lt;BR /&gt;life98,&lt;BR /&gt;mlife98,&lt;BR /&gt;flife98,&lt;BR /&gt;imr99,&lt;BR /&gt;mimr99,&lt;BR /&gt;fimr99,&lt;BR /&gt;mort1to499,&lt;BR /&gt;mmort1to499,&lt;BR /&gt;fmort1to499,&lt;BR /&gt;mortlt599,&lt;BR /&gt;mmortlt599,&lt;BR /&gt;fmortlt599,&lt;BR /&gt;life99,&lt;BR /&gt;mlife99,&lt;BR /&gt;flife99,&lt;BR /&gt;imr00,&lt;BR /&gt;mimr00,&lt;BR /&gt;fimr00,&lt;BR /&gt;mort1to400,&lt;BR /&gt;mmort1to400,&lt;BR /&gt;fmort1to400,&lt;BR /&gt;mortlt500,&lt;BR /&gt;mmortlt500,&lt;BR /&gt;fmortlt500,&lt;BR /&gt;life00,&lt;BR /&gt;mlife00,&lt;BR /&gt;flife00,&lt;BR /&gt;imr01,&lt;BR /&gt;mimr01,&lt;BR /&gt;fimr01,&lt;BR /&gt;mort1to401,&lt;BR /&gt;mmort1to401,&lt;BR /&gt;fmort1to401,&lt;BR /&gt;mortlt501,&lt;BR /&gt;mmortlt501,&lt;BR /&gt;fmortlt501,&lt;BR /&gt;life01,&lt;BR /&gt;mlife01,&lt;BR /&gt;flife01,&lt;BR /&gt;imr02,&lt;BR /&gt;mimr02,&lt;BR /&gt;fimr02,&lt;BR /&gt;mort1to402,&lt;BR /&gt;mmort1to402,&lt;BR /&gt;fmort1to402,&lt;BR /&gt;mortlt502,&lt;BR /&gt;mmortlt502,&lt;BR /&gt;fmortlt502,&lt;BR /&gt;life02,&lt;BR /&gt;mlife02,&lt;BR /&gt;flife02,&lt;BR /&gt;imr03,&lt;BR /&gt;mimr03,&lt;BR /&gt;fimr03,&lt;BR /&gt;mort1to403,&lt;BR /&gt;mmort1to403,&lt;BR /&gt;fmort1to403,&lt;BR /&gt;mortlt503,&lt;BR /&gt;mmortlt503,&lt;BR /&gt;fmortlt503,&lt;BR /&gt;life03,&lt;BR /&gt;mlife03,&lt;BR /&gt;flife03,&lt;BR /&gt;imr04,&lt;BR /&gt;mimr04,&lt;BR /&gt;fimr04,&lt;BR /&gt;mort1to404,&lt;BR /&gt;mmort1to404,&lt;BR /&gt;fmort1to404,&lt;BR /&gt;mortlt504,&lt;BR /&gt;mmortlt504,&lt;BR /&gt;fmortlt504,&lt;BR /&gt;life04,&lt;BR /&gt;mlife04,&lt;BR /&gt;flife04,&lt;BR /&gt;imr05,&lt;BR /&gt;mimr05,&lt;BR /&gt;fimr05,&lt;BR /&gt;mort1to405,&lt;BR /&gt;mmort1to405,&lt;BR /&gt;fmort1to405,&lt;BR /&gt;mortlt505,&lt;BR /&gt;mmortlt505,&lt;BR /&gt;fmortlt505,&lt;BR /&gt;life05,&lt;BR /&gt;mlife05,&lt;BR /&gt;flife05,&lt;BR /&gt;imr06,&lt;BR /&gt;mimr06,&lt;BR /&gt;fimr06,&lt;BR /&gt;mort1to406,&lt;BR /&gt;mmort1to406,&lt;BR /&gt;fmort1to406,&lt;BR /&gt;mortlt506,&lt;BR /&gt;mmortlt506,&lt;BR /&gt;fmortlt506,&lt;BR /&gt;life06,&lt;BR /&gt;mlife06,&lt;BR /&gt;flife06,&lt;BR /&gt;imr07,&lt;BR /&gt;mimr07,&lt;BR /&gt;fimr07,&lt;BR /&gt;mort1to407,&lt;BR /&gt;mmort1to407,&lt;BR /&gt;fmort1to407,&lt;BR /&gt;mortlt507,&lt;BR /&gt;mmortlt507,&lt;BR /&gt;fmortlt507,&lt;BR /&gt;life07,&lt;BR /&gt;mlife07,&lt;BR /&gt;flife07,&lt;BR /&gt;imr08,&lt;BR /&gt;mimr08,&lt;BR /&gt;fimr08,&lt;BR /&gt;mort1to408,&lt;BR /&gt;mmort1to408,&lt;BR /&gt;fmort1to408,&lt;BR /&gt;mortlt508,&lt;BR /&gt;mmortlt508,&lt;BR /&gt;fmortlt508,&lt;BR /&gt;life08,&lt;BR /&gt;mlife08,&lt;BR /&gt;flife08,&lt;BR /&gt;imr09,&lt;BR /&gt;mimr09,&lt;BR /&gt;fimr09,&lt;BR /&gt;mort1to409,&lt;BR /&gt;mmort1to409,&lt;BR /&gt;fmort1to409,&lt;BR /&gt;mortlt509,&lt;BR /&gt;mmortlt509,&lt;BR /&gt;fmortlt509,&lt;BR /&gt;life09,&lt;BR /&gt;mlife09,&lt;BR /&gt;flife09,&lt;BR /&gt;imr10,&lt;BR /&gt;mimr10,&lt;BR /&gt;fimr10,&lt;BR /&gt;mort1to410,&lt;BR /&gt;mmort1to410,&lt;BR /&gt;fmort1to410,&lt;BR /&gt;mortlt510,&lt;BR /&gt;mmortlt510,&lt;BR /&gt;fmortlt510,&lt;BR /&gt;life10,&lt;BR /&gt;mlife10,&lt;BR /&gt;flife10,&lt;BR /&gt;imr11,&lt;BR /&gt;mimr11,&lt;BR /&gt;fimr11,&lt;BR /&gt;mort1to411,&lt;BR /&gt;mmort1to411,&lt;BR /&gt;fmort1to411,&lt;BR /&gt;mortlt511,&lt;BR /&gt;mmortlt511,&lt;BR /&gt;fmortlt511,&lt;BR /&gt;life11,&lt;BR /&gt;mlife11,&lt;BR /&gt;flife11,&lt;BR /&gt;imr12,&lt;BR /&gt;mimr12,&lt;BR /&gt;fimr12,&lt;BR /&gt;mort1to412,&lt;BR /&gt;mmort1to412,&lt;BR /&gt;fmort1to412,&lt;BR /&gt;mortlt512,&lt;BR /&gt;mmortlt512,&lt;BR /&gt;fmortlt512,&lt;BR /&gt;life12,&lt;BR /&gt;mlife12,&lt;BR /&gt;flife12&lt;BR /&gt;FROM&lt;BR /&gt;SourceData\MortalityIndicatorsByGender.xlsx&lt;BR /&gt;(ooxml, embedded labels, header is 2 lines, table is data);&lt;BR /&gt;STORE MortalityIndicatorsByGender_temp INTO 'Stored\mortality.qvd' (qvd);&lt;BR /&gt;DROP Table MortalityIndicatorsByGender_temp;&lt;/P&gt;&lt;P&gt;inner join&lt;BR /&gt;LOAD Country,&lt;BR /&gt;//Attributes,&lt;BR /&gt;//Data,&lt;BR /&gt;If(&lt;BR /&gt;right(Attributes, 2)&amp;gt;90,&lt;BR /&gt;19&amp;amp;right(Attributes, 2),&lt;BR /&gt;20&amp;amp;right(Attributes, 2)&lt;BR /&gt;)&lt;BR /&gt;as Year,&lt;BR /&gt;If(&lt;BR /&gt;Left(Attributes, 3)='imr',&lt;BR /&gt;Data&lt;BR /&gt;)&lt;BR /&gt;as InfantMortBoth,&lt;BR /&gt;If(&lt;BR /&gt;Left(Attributes, 4)='mimr',&lt;BR /&gt;Data&lt;BR /&gt;)&lt;BR /&gt;as InfantMortMale,&lt;BR /&gt;If(&lt;BR /&gt;Left(Attributes, 4)='fimr',&lt;BR /&gt;Data&lt;BR /&gt;)&lt;BR /&gt;as InfantMortFem,&lt;BR /&gt;If(&lt;BR /&gt;Left(Attributes, 8)='mort1to4',&lt;BR /&gt;Data&lt;BR /&gt;)&lt;BR /&gt;as InfantMort1to4Both,&lt;BR /&gt;If(&lt;BR /&gt;Left(Attributes, 9)='mmort1to4',&lt;BR /&gt;Data&lt;BR /&gt;)&lt;BR /&gt;as InfantMort1to4Male,&lt;BR /&gt;If(&lt;BR /&gt;Left(Attributes, 9)='fmort1to4',&lt;BR /&gt;Data&lt;BR /&gt;)&lt;BR /&gt;as InfantMort1to4Fem,&lt;BR /&gt;If(&lt;BR /&gt;Left(Attributes, 7)='mortlt5',&lt;BR /&gt;Data&lt;BR /&gt;)&lt;BR /&gt;as InfantMortUnder5Both,&lt;BR /&gt;If(&lt;BR /&gt;Left(Attributes, 8)='mmortlt5',&lt;BR /&gt;Data&lt;BR /&gt;)&lt;BR /&gt;as InfantMortUnder5Male,&lt;BR /&gt;If(&lt;BR /&gt;Left(Attributes, 8)='fmortlt5',&lt;BR /&gt;Data&lt;BR /&gt;)&lt;BR /&gt;as InfantMortUnder5Fem,&lt;BR /&gt;If(&lt;BR /&gt;Left(Attributes, 4)='life',&lt;BR /&gt;Data&lt;BR /&gt;)&lt;BR /&gt;as LifeExpBoth,&lt;BR /&gt;If(&lt;BR /&gt;Left(Attributes, 5)='mlife',&lt;BR /&gt;Data&lt;BR /&gt;)&lt;BR /&gt;as LifeExpMale,&lt;BR /&gt;If(&lt;BR /&gt;Left(Attributes, 5)='flife',&lt;BR /&gt;Data&lt;BR /&gt;)&lt;BR /&gt;as LifeExpFem&lt;BR /&gt;FROM&lt;BR /&gt;Stored\mortality.qvd&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But what I've got in the end is table with a lot of empty cells (see the picture attached). I'm wondering is there any chance to "compact" that table so there is only one "Year" record corresponding with the rest of dimensions? Hopefully it's somewhat clear, what I'm trying to say... Or any other ideas, guys?&lt;/P&gt;&lt;P&gt;Many thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-structure-table/m-p/1571019#M740844</guid>
      <dc:creator>Leo2</dc:creator>
      <dc:date>2024-11-16T03:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated structure table</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-structure-table/m-p/1572900#M740845</link>
      <description>Add in your load:&lt;BR /&gt;&lt;BR /&gt;From ....&lt;BR /&gt;Where 1 = 1; // &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;</description>
      <pubDate>Wed, 24 Apr 2019 17:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-structure-table/m-p/1572900#M740845</guid>
      <dc:creator>lfetensini</dc:creator>
      <dc:date>2019-04-24T17:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated structure table</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-structure-table/m-p/1572962#M740846</link>
      <description>&lt;P&gt;Something like this??&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1571019 - Cross Table snip.PNG" style="width: 760px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10819i4282FCD53E6ECCFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="1571019 - Cross Table snip.PNG" alt="1571019 - Cross Table snip.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 20:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-structure-table/m-p/1572962#M740846</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2019-04-24T20:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated structure table</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-structure-table/m-p/1574403#M740847</link>
      <description>&lt;P&gt;Sorry, not very clear how.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 11:37:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-structure-table/m-p/1574403#M740847</guid>
      <dc:creator>Leo2</dc:creator>
      <dc:date>2019-04-29T11:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated structure table</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-structure-table/m-p/1574404#M740848</link>
      <description>&lt;P&gt;How have you done that???&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 11:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-structure-table/m-p/1574404#M740848</guid>
      <dc:creator>Leo2</dc:creator>
      <dc:date>2019-04-29T11:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated structure table</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-structure-table/m-p/1575304#M740849</link>
      <description>&lt;P&gt;PSA&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 19:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-structure-table/m-p/1575304#M740849</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2019-04-30T19:14:14Z</dc:date>
    </item>
  </channel>
</rss>

